2. This game has 4 levels.
Easy
Medium
Hard
Super Hard
Two players can play this game
at a time.
We can change the speed of
the paddle and ball.
We can also change the color
of the screen.
The winning score can also be
changed.
4. A LÖVE2D callback function executes
whenever we press a key, assuming
we’ve implemented this in our
main.lua.
Used to initialize the windows dimensions
and to set parameters like vsync (vertical
sync)
we can use this to scale any changes
in our game for even behavior across
frame rates.
Used for initializing our game state
at the very beginning of program
execution
Versatile print function that can align
text left, right, or center on the screen.
Called each frame by LÖVE after
update for drawing things to the
screen once they’ve changed
5. It enhanced the Features of
Pong step by step so that
the game could be made
user-friendly and attractive
to play and enjoy.
For the ball and paddle object
oriented approach was used to
make ball.lua and paddle.lua
objects inorder to interact with
them easily, without repeating
the code, a library for classes,
class.lua, was used