diff --git a/js/game/stage.js b/js/game/stage.js index bed299f..c03fb04 100644 --- a/js/game/stage.js +++ b/js/game/stage.js @@ -22,8 +22,13 @@ import { PointBar } from "./ui/pointBar.js"; export class ComfyPetsStage extends ComfyNode { constructor() { super() - + ;(this.title = 'Comfy Pet'), + (this.feedButton = this.addButton('Feed pet', {}, () => { + this.addFood() + addFoodEvent() + })) this.gutter = 8; + this.feedButton.x = this.gutter; this.feedButton.y = this.gutter; this.feedButton.fontSize = 14