Code edit (1 edits merged)
Please save this source code
Code edit (22 edits merged)
Please save this source code
User prompt
Add a full width full height background on the back of everything
User prompt
Remove the Player: ... AI: ... score text elements. Instead, use the PLAYER and AI which are at -160 to also show the score like PLAYER(10) AI(2)
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
No sorry, I want two background assets - one for the AI background and one for the player background
Code edit (7 edits merged)
Please save this source code
User prompt
Add a background asset that is full screen covering the back of my screen
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix: gray lines disappear. They should never nor for the player nor for the ai
User prompt
No, remove the controls of the pieces for the player (rotation, moving down, moving left, moving right). Instead, on the bottom of the game screen, place 4 widgets, 1 per rotate clockwise, one to move left, one to move right, one to move down. Full width, like on the bottom on the screen after the AI and PLayer screens.
User prompt
Change a little the controls for the player: - You rotate a piece if you click on it. - You move left a piece if you click on the left of a piece or left above the piece, but never left below. - You move right a piece if you click on the right of a piece or right above the piece, but never right below.
User prompt
There is a bug: if I have lines that I got from my competitor, when a new piece lands they are translated to my competitor screen. That is not right. Lines that appeared in my screen from my competitor stay forever in my screen.
User prompt
Only move pieces right or left on down, if the y position of the tap is more or less the same as the y of the currently moving piece. Don't move left or right a piece if it's above or below the piece.
User prompt
Can you make it so that every line achieved by the player appears on the bottom of the AI pushing all pieces up, and the same from the player if the AI achieves a line? Kind of a "competitive" mode.
User prompt
For the fast drop mode - can It be only while I'm holding the mouse button / tapping the screen? If I release it it goes out from the fast mode. Thank you.
User prompt
For the player: if I click below the piece, the piece goes quicker down.
User prompt
For the player, If I click on the right of the current moving piece, the piece moves right. If I click on the left, the piece moves left. If I click exactly on the piece, the piece rotates.
Code edit (1 edits merged)
Please save this source code
User prompt
Blank Canvas
Initial prompt
An empty game
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});