User prompt
The bounce of the ball depends on the arc of the Air hockey mallet, in which direction it bounces.
User prompt
move the table down with 500 units
User prompt
Add to the game a white background asset.
User prompt
Change the player paddle movement to follow the finger position
Initial prompt
vertical pong
===================================================================
--- original.js
+++ change.js
@@ -32,14 +32,22 @@
/****
* Initialize Game
****/
var game = new LK.Game({
- backgroundColor: 0x000000 //Init game with black background
+ backgroundColor: 0x000000 //Init game with black background
});
/****
* Game Code
****/
+// Attach white background asset
+var background = LK.getAsset('background', {
+ anchorX: 0.0,
+ anchorY: 0.0,
+ x: 0,
+ y: 0
+});
+game.addChild(background);
// Initialize ball and paddle
var ball = game.addChild(new Ball());
ball.x = 2048 / 2;
ball.y = 2732 / 2;
New ball button. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
air hockey table with neon lights. top view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Air hockey disk with neon green lights. top view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Air hockey disk with neon yellow lights. top view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Air hockey disk with neon orange lights. top view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.