User prompt
Put inventory button Vertically to the middle, horizontally to the right.
User prompt
Please fix the bug: 'Uncaught TypeError: LK.now is not a function' in or related to this line: 'self.lastCollectTime = LK.now();' Line Number: 193
User prompt
Fix the error
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'length')' in or related to this line: 'var icon = self.attachAsset(self.iconId, {' Line Number: 139
Code edit (1 edits merged)
Please save this source code
User prompt
Resource Collector: Inventory Rush
Initial prompt
There will be 5 buttons on the screen. One is cow, one is fish, one is wheat, one is ore, one is wood. And also there should be an inventory button at the right up corner. When we click the 5 buttons, the item that we have tapped should be increased. And when we tap inventory button, there will pop up an inventory screen and we should be able to see the amounts of the items we have collected. Also there should be a time limit for each of the 5 buttons. Player shouldn't be able to tap the buttons consecutively, 30 seconds would be enough.
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
Merchant. In-Game asset. 2d. High contrast. No shadows
Coin, "m" sign. In-Game asset. 2d. High contrast. No shadows
Frame. In-Game asset. 2d. High contrast. No shadows
My farm, wheat, cow, ore, pickaxe. Starting screen style. In-Game asset. 2d. High contrast. No shadows
Movement button, item moving button. In-Game asset. 2d. High contrast. No shadows
A cute middle eastern farmer character. In-Game asset. 2d. High contrast. No shadows
Mowing sickle. In-Game asset. 2d. High contrast. No shadows
Watering waterdrops watering can. In-Game asset. 2d. High contrast. No shadows
Historical frame with beige interior.