godot-demo-projects/2d/pong
Aaron Franke fcc7d5c723 Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
..
logic
screenshots Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
README.md
ball.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
ball.png.import
icon.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
icon.png.import
left_pallete.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
left_pallete.png.import
pong.tscn
project.godot
right_pallete.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
right_pallete.png.import
separator.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
separator.png.import

README.md

Pong with GDScript

A simple Pong game. This demo shows best practices for game development in Godot, including signals.

Language: GDScript

Renderer: GLES 2

Note: There is a C# version available here.

Note: There is a VisualScript version available here.

How does it work?

The walls, paddle, and ball are all Area2D nodes. When the ball touches the walls or the paddles, they emit signals and modify the ball.

Screenshots

Screenshot