Pong is one of the earliest game manufactured by Atari. it is a table tennis themed arcade video game that is featuring simple two- dimensional graphics.
The following concept will be used in developing pong, they are predominantly used in 2D game development.
1. Lua
2.love 2D
3. drawing shapes
4. drawing text
5. Delta time and velocity
6. game state
7. basic oop (object-oriented programming)
8. box collision ( hotboxes)
9. sound effects (with bfxr).
Lua
is a dynamic scripting language that is predominantly used throughout the game development I.e 2D.
love 2D
is a primary game framework, which is runtime and a framework which exposes all of it that matters for joining audio input etc.via Lua, it is very easy to write code very quickly with very good result and the documentation for the game framework or programme.
Drawing shapes
is the feature of basic principles to figure out the development of the game, things like joining shapes, joining text are both very big aspect of pong base on shape and text moving around the screen.
Delta time and velocity
Delta time is probably or arguably one the most important variable that will keep track of any game framework or engine , which is just game out of time that elapsed since the last frame of execution of the game measure then love 2D in term of seconds ( fraction of seconds)
Game state
We can have state In a game, it can be at the title screen, it can during playing,it can be menu, it is obviously very important because if you want different update logic and rendering logic depending on the state you are in.
Basic oop
it is basically a way of encapsulating data or any of game object in such a way that the variables that are relevant to them are put together along with function that operate on the data, so instead of having like 20 different variables following different object, they have to keep track of in the code, each Individual object can keep track of all its own information, like it's position or anything that is relevant to it .
Box Collision( Hit boxes)
predominantly in the context of pong (we will be taking balls & paddle) in rectangle and will be colliding with what is called assess aligning bounding boxes which making calculation when the two boxes collide very simple as it suppose to calculating rotating hotboxes, which is maybe more complicated.
sound effects (with bfxr)
IMPORTANT APP TO INSTALLED
1. LOVE 2D
https:// love2d.org/#download.
https:// love2d.org)wiki/ Getting started.
2. Demo code
https:// GitHub.com/gamesso/pong. (this containg all the source code to be used).
For further information on all 3D and 2D game development, consult or download; 3D programm all in one third edition by Kenneth finney through the following url;
Https://www.bookdepository.com/3D-Game-programming-All-one-Third-Edition-kenneth-finney/9781435457447.
thanks for this piece.