User prompt
When they touch each other, the machine paddles slide away 300 units.
User prompt
When they touch each other, the machine paddles snap away 200 units.
User prompt
Paddles can never touch each other.
User prompt
When the ball touches one corner of the court 3 times in a row, the opponent immediately moves closer to iceGateTop.
User prompt
Only if the ball passes through iceGateBottom or iceGateTop counts as a goal.
User prompt
A goal is counted if the ball passes through iceGateBottom or iceGateBottom iceGateTop.
User prompt
Move the iceGateBottom down by 5 units
User prompt
Move the iceGateBottom down by 5 units
User prompt
move up theiceGateTop with 45 units
User prompt
move up theiceGateTop with 40 units
User prompt
move down theiceGateTop with 45 units
User prompt
move up the iceGateTop with 40 units
User prompt
move down theiceGateTop with 40 units
User prompt
move down the iceGateBottom with 30 units
User prompt
move down the iceGateBottom with 25 units
User prompt
move down the iceGateBottom with 15 units
User prompt
move down the iceGateBottom with 5 units
User prompt
Move the background with 5 units left
User prompt
Create an ice hockey goal asset at the middle top and middle bottom of the rink. The top should be red. The bottom should be blue
User prompt
Create an ice gate asset at the middle top and middle bottom of the course.
User prompt
When the player or opponent touches the ball, the ball does not stick to it, but bounces off it.
User prompt
Move the background 25 units to the right
User prompt
Move the background 50 units to the left
User prompt
move the background with 100 units left
User prompt
When the opponent stands still for more than 1 second, he is obliged to retreat towards the center of the track
===================================================================
--- original.js
+++ change.js
@@ -150,11 +150,11 @@
}
// Ensure paddles do not touch each other
if (self.intersects(paddle)) {
if (self.x < paddle.x) {
- self.x -= 200;
+ self.x -= 300;
} else {
- self.x += 200;
+ self.x += 300;
}
}
// Check if ball is in the corner of the field
if (ball.x <= 200 && ball.y <= 200 || ball.x >= 1848 && ball.y <= 200) {
@@ -182,11 +182,11 @@
self.update = function () {
// Ensure paddles do not touch each other
if (self.intersects(opponentPaddle)) {
if (self.x < opponentPaddle.x) {
- self.x -= 200;
+ self.x -= 300;
} else {
- self.x += 200;
+ self.x += 300;
}
}
};
});
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.