godotengine / godot-demo-projects

Demonstration and Template Projects
https://godotengine.org
MIT License
5.44k stars 1.52k forks source link

Update Mono Pong #1071

Closed Insane96 closed 1 week ago

Insane96 commented 4 weeks ago

Scene

The scene had some problems: All the collision node were twice as small as they should have. Not sure if it's due to an update in the engine. image So the collisions are now bigger (2x exactly) to cover the whole sprite, and I've changed the ball collision shape to a sphere.

Ceiling and Floor

The ceiling was just transposing the angle of the ball by 90°, I've changed it to actually bounce back.

Paddle

The paddles have been made faster in movement (+50%) and now bounce the ball back based off the position of the collision.

Ball

Ball now speeds up faster and picks a new random direction and angle when the game starts or resets.

Insane96 commented 3 weeks ago

Applied all request changes

paulloz commented 3 weeks ago

None of these changes can be considered or accepted unless the same changes are made to the GDScript version of the demo.

The purely corrective parts (area sizes in the .tscn, and the typo fixed in Paddle.cs) could. But otherwise, yes.

AThousandShips commented 3 weeks ago

Even those changes to the shapes don't match the gdscript version so they should match