User prompt
Add background
User prompt
Don't expand the point just paint a line
User prompt
Make a point asset for cursor when it's moving expand the point to draw a line.
User prompt
Please fix the bug: 'LK.Graphics is not a constructor' in or related to this line: 'var path = new LK.Graphics();' Line Number: 19
User prompt
Make the mouse the player in this game. If i click and move the cursor paint a color following the movement of the cursor.
User prompt
Remove maze
User prompt
Remove player and its movment from game
User prompt
If i click and hold on the player object in the screen and moved it make the player move with it smoothly.
User prompt
Make the player moves only if i hold cursor on it not when i click anywhere on the screen.
User prompt
Make player follow the cursor exact same time.
Code edit (1 edits merged)
Please save this source code
User prompt
Increase speed of player
Code edit (8 edits merged)
Please save this source code
User prompt
reduce distance between player and cursor
User prompt
Let the player follow the mouse arrow after clicking on the player.
User prompt
don't push player from cursor after mouse button clicked on it
User prompt
Regenerate a hexagon maze in exact same position of the image background1.
Code edit (1 edits merged)
Please save this source code
User prompt
Remove all walls from the game
User prompt
Make the middle of each wall1 2 3 4 in the middle of there sides
User prompt
Make the center of each wall in the middle of its side
User prompt
Center the walls each side
User prompt
Make each wall in the middle of its side
User prompt
Set each wall with same size of its side of the screen outlines.
User prompt
Make all 4 walls taller to the corners
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ // Create a point asset for the cursor var point = LK.getAsset('point', { anchorX: 0.5, anchorY: 0.5 }); game.addChild(point); // Handle mouse movement // Add background to the game var background = LK.getAsset('Background1', { anchorX: 0.5, anchorY: 0.5 }); game.addChild(background); background.x = 2048 / 2; background.y = 2732 / 2; game.move = function (x, y, obj) { // Position the point asset at the current mouse position point.x = x; point.y = y; };
===================================================================
--- original.js
+++ change.js
@@ -14,8 +14,16 @@
anchorY: 0.5
});
game.addChild(point);
// Handle mouse movement
+// Add background to the game
+var background = LK.getAsset('Background1', {
+ anchorX: 0.5,
+ anchorY: 0.5
+});
+game.addChild(background);
+background.x = 2048 / 2;
+background.y = 2732 / 2;
game.move = function (x, y, obj) {
// Position the point asset at the current mouse position
point.x = x;
point.y = y;