User prompt
You are doing a terrible job with getGridCoords. Please remove it. What you are going to do is checking the click / tap position on the screen. If it's bigger on x and you can move to the next adjacent cell on the right on x, you do. If it's smaller, then you move to the right on x. Same with y.
Code edit (3 edits merged)
Please save this source code
User prompt
The getGridCoords is still borked. I'm clicking on col1, row 4 and it's showing col1, row 5. No way it's detecting row 4. Why?
Code edit (1 edits merged)
Please save this source code
User prompt
GetGridCoords is still having a weird behaviour, sometimes it detects the correct cell, sometimes it detects the previous or next. What I suggest you is that you probably return a list of possible cells and then you detect if any of those is adjacent and if so, you move to the adjacent one (if many, the first one)
Code edit (1 edits merged)
Please save this source code
User prompt
Ok, I don't lke the bomb button you created. Remove it. Instead, to place a bomb, I want you to check if I am clicking on the same cell the player is. If so, it places a bomb.
Code edit (3 edits merged)
Please save this source code
User prompt
getGridCoords is not working at all. Please redo it with other logic. When I click on 1,1 it shows 2,2. When I click on 2,1 it shows 3,2. And the worst: when I click on 3,1 it shows 5,2 !!! It's skipping 4. Please redo completely the logic.
User prompt
getGridCoords is not working properly. When I click on col 3, row 1 it shows col 4 row 1. And many cells have issues.
Code edit (1 edits merged)
Please save this source code
User prompt
player.isMoving is not being set to false after the movement finishes ↪💡 Consider importing and using the following plugins: @upit/tween.v1
Code edit (7 edits merged)
Please save this source code
User prompt
After I've moved my player, I can't move it anymore! Fix it!
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Something is not working with the movement. I click / tap on a cell and it's not walking to it. Please check and fix.
User prompt
Ok the movement seems borked. What I need you to do is, if I click / tap on a free cell adjacent cell, the player should move to it. Ignore the movement if it's not adjacent or not free (there is a wall, a brick or a bomb)
Code edit (1 edits merged)
Please save this source code
User prompt
Grid Blast Mania
Initial prompt
Bomberman, the retro arcarde
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
concrete floor tile, retro, pixel style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
bomb, pixel style, retro. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
a demonic strawberry, pixel style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
a demonic cherry, pixel style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
a demonic kiwi, pixel style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
A human character, player from an arcade retro game, looking like in the 80s 90s, hair, male, looking right, pixel style. In-Game asset. 2d. High contrast. No shadows
fire texture pixel style retro square. In-Game asset. 2d. High contrast. No shadows
powerup icon for an additional charge of a bomb, retro arcade game. In-Game asset. 2d. High contrast. No shadows
powerup icon for an additional range of the bomb explosion you can throw, retro arcade game. In-Game asset. 2d. High contrast. No shadows