BlueGit

blue-star speeltuin

Files

speeltuin / src / objects / menus / btnFruit.js

btnFruit.js

good luck
timfa wsadhelios · pushed by timfa · 4 years ago
f1aab4e6 History
btnFruit.js 332 B Download Raw
1class BtnFruit extends BaseMenuButton
2{
3 fruitInventory = null;
4
5 addedToScene ()
6 {
7 this.fruitInventory = this.scene.addObject(new FruitInventory(352, -500, this.scene.game.images.fruitInventory));
8 }
9
10 onClick (btns)
11 {
12 MainMenu.Instance.close();
13 this.fruitInventory.moveToOpen();
14 }
15}