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
User prompt
when reseting ball, also move players progressively to their initial X positions
Code edit (1 edits merged)
Please save this source code
User prompt
now use BALL1_INITIAL_X and BALL2_INITIAL_X for ball initial and reset position
Code edit (1 edits merged)
Please save this source code
User prompt
use new variable BALL_INITIAL_Y
Code edit (1 edits merged)
Please save this source code
User prompt
rename both PLAYER1_INITIAL_Y and PLAYER2_INITIAL_Y to PLAYER_INITIAL_Y
Code edit (3 edits merged)
Please save this source code
User prompt
create a updateScore function with an index parameter
===================================================================
--- original.js
+++ change.js
@@ -169,9 +169,8 @@
var PLAYER_INITIAL_Y = 2000;
var PLAYER2_INITIAL_X = 1698;
var BALL1_INITIAL_X = 512;
var BALL_INITIAL_Y = 1256;
-var BALL_INITIAL_Y = 1256;
var BALL2_INITIAL_X = 1536;
var joystick;
var joystickBasePosition;
var joystickDrag;
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