User prompt
remove drag item fucntion
User prompt
items should be dragged on tick
User prompt
orderbubble should not be visible until player touches on customer for the first time
User prompt
add a visible yes no property to the bubble off the customer
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'target')' in or related to this line: 'var item = obj.event.target;' Line Number: 116
User prompt
create an array that will store the currently selected item.
User prompt
when items is held down it can be dragged
User prompt
items should be dragablle
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'target')' in or related to this line: 'if (items[i].intersects(obj.event.target)) {' Line Number: 154
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'target')' in or related to this line: 'if (items[i].intersects(obj.event.target)) {' Line Number: 154
Code edit (1 edits merged)
Please save this source code
User prompt
add more space between items
User prompt
move items to the bottom center of the screen
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'target')' in or related to this line: 'if (items[i].intersects(obj.event.target)) {' Line Number: 154
User prompt
stop spawning customer after 5 are inthe screen
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'length')' in or related to this line: 'self.orderAsset2 = self.attachAsset(order[1], {' Line Number: 59
User prompt
if customer has more than 1 item in the order, they should be in the same bubble, not have 2 bubbles
User prompt
customer can have one or two items ins their order
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'target')' in or related to this line: 'if (items[i].intersects(obj.event.target)) {' Line Number: 124
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'target')' in or related to this line: 'if (items[i].intersects(obj.event.target)) {' Line Number: 124
User prompt
order bubble should be attached visually to customer
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'target')' in or related to this line: 'if (items[i].intersects(obj.event.target)) {' Line Number: 124
User prompt
order should be displayed inside of a bubble next to the customer
User prompt
show asset of order instead of text
User prompt
when customer is clicked show his order next to hime
===================================================================
--- original.js
+++ change.js
@@ -142,28 +142,8 @@
createCustomer();
}
// Event listeners for item drag and drop
var dragItem = null;
-game.down = function (x, y, obj) {
- for (var i = 0; i < items.length; i++) {
- if (items[i].intersects(obj.event.target)) {
- dragItem = items[i];
- break;
- }
- }
-};
-game.move = function (x, y, obj) {
- if (dragItem) {
- dragItem.x = x;
- dragItem.y = y;
- }
-};
-game.up = function (x, y, obj) {
- if (dragItem) {
- handleItemDrop(x, y, dragItem);
- dragItem = null;
- }
-};
// Update function
game.update = function () {
if (LK.ticks % 300 == 0 && customers.length < 5) {
createCustomer();
8bit. cartoon. icecream. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon and 8 bit message. reads: Time's Up!. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8bit. cartoon. palm tree.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.