User prompt
write the player name above the board not on the board please
User prompt
just fix the error with the player name and make it random again
User prompt
add a "undo" button to game to let the player to take his last movement back. add the player name on top of the board and center it. when the the player gets 50 gold he/ she can swap any tiles for 5 times to get a higher score o to halt ending the game.
User prompt
make the player name can be entered by the user.
User prompt
add the dual score again just remove the gold symbol
User prompt
remove the gold sign just wirte the score
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'toGlobal')' in or related to this line: 'var localPos = self.toLocal(obj.parent.toGlobal(obj.position));' Line Number: 334
Code edit (1 edits merged)
Please save this source code
User prompt
2048 Gold Rush
Initial prompt
create 2048 game before the game starts ask the player to write his name or nickname add a menu to choose "4x4" or "5x5" board. if clicked "4x4" start the game with 4x4 board and if clicked "5x5" the game starts with 5x5 board. the score must be on the top right and next to the score there is gold sign with another score panel starting with "0" which increases during game. the rules for the second score bar is simple; when the player gets his first "128" he gets +2 gold , write a pop-up message on the screen "Good job Dude you got 2 gold" and show it for 3 seconds than continue the game; when the player gets his first "256" +4 gold, write a pop-up message on the screen "Well done man you got 4 more gold, Go on! " and show it for 3 seconds tham continue the game; when the player gets his first "512" he gets +8 gold , write a pop-up message on the screen " Crazy!!! 8 more gold," and show it for 3 seconds than continue the game; when the player gets his first "1024" he gets +16 gold, write a pop-up message on the screen " So close to the end go on don't give up now !! 16 more gold for you"and show it for 3 seconds than continue the game; when the player gets his first "2048" he gets +32 gold, write a pop-up message on the screen " congratulations You won here is your big prize 32 more gold "and show it for 3 seconds than continue the game;
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
}); /****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});