Code edit (1 edits merged)
Please save this source code
Code edit (11 edits merged)
Please save this source code
User prompt
call initShadows at the end of gameInitialize
User prompt
inside initShadows, add all shadows to the game
User prompt
in initShadows, add 2 locals parasolShadow and chairShadow
User prompt
create 3 globals : ballShadow, player1Shadow, player2Shadow and a new function initShadows
Code edit (4 edits merged)
Please save this source code
User prompt
add the parasol to the game (respect coding style)
Code edit (1 edits merged)
Please save this source code
Code edit (5 edits merged)
Please save this source code
User prompt
update the animation : they should get longer vertically when jumping and get smaller when landing
User prompt
think a lot on the way to do it properly, then animate the blobs (players) when they move (like jellys)
Code edit (1 edits merged)
Please save this source code
User prompt
ball shadow should not rotate (always on the ground)
Code edit (7 edits merged)
Please save this source code
User prompt
move ball update shadow in a dicated function in ball class
User prompt
update ball shadow to look like a real one
User prompt
add shadow in Player and ball class
User prompt
wait 2sec before gameOver
Code edit (1 edits merged)
Please save this source code
User prompt
add a global for finalScore = 15
User prompt
in updateScore, in Check for game over condition, add a big result text "VICTORY!" or "DEFEAT!" at y =700
Code edit (1 edits merged)
Please save this source code
User prompt
Apply the rule : The game ends when one of the two players reach 15 (or more) points and also there is a two-point lead over the other.
User prompt
Please fix the bug: 'TypeError: setInterval is not a function' in or related to this line: 'var moveInterval = setInterval(function () {' Line Number: 239
===================================================================
--- original.js
+++ change.js
@@ -425,22 +425,22 @@
joystick.x = joystickBasePosition.x;
joystick.y = joystickBasePosition.y;
};
function gameInitialize() {
- var parasol = LK.getAsset('parasol', {
- anchorX: 0.5,
- anchorY: 1,
- x: 1024,
- y: 1500
- });
- game.addChild(parasol);
background = LK.getAsset('background', {
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2,
y: 2732 / 2
});
game.addChild(background);
+ var parasol = LK.getAsset('parasol', {
+ anchorX: 0.5,
+ anchorY: 1,
+ x: 1024,
+ y: 1500
+ });
+ game.addChild(parasol);
player1 = new Player(1);
player2 = new Player(2);
game.addChild(player1);
game.addChild(player2);
white volley ball.
top view of a concave blue (0xADD8E6) plastic button. 4 small black directionnal chevrons engraved : right, left, top , bottom.. Photorealistic
Beach ball. photo
full view of a Beach white towel with colored infinte logo. placed on the sand. photo
Start button in the shape of a white beach volleyball with « START » written on it in black. Photo