module RaylibPong
Overview
A game involving two paddles and one ball where the goal is to get the ball past the opponents paddle.
Defined in:
raylib_pong.crConstant Summary
-
VERSION =
"0.1alpha"
Class Method Summary
-
.ball_hit_paddle?(paddle)
Has the ball been hit by a paddle?
-
.draw
Draws the game.
-
.paddle1
Player 1 paddle.
-
.paddle2
Player 2~ paddle.
-
.pause
Pauses the game.
-
.player1_score
Player 1's score.
-
.player2_score
Player 2's score.
-
.run
Runs the game.
-
.setup
Sets up the player score procs in ball.
-
.update
Updates the game.
-
.update_collision
Updates the collision between paddles and ball.