From eb13d99cbffbaba4853d2facbed0e35f6dee316e Mon Sep 17 00:00:00 2001 From: Nathan Date: Sat, 16 Mar 2024 23:45:01 -0700 Subject: [PATCH] restored feed function --- js/game/stage.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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