Pong Buddy is a simple ping pong game made using x86 assembly. It supports 2 players, different ball speeds and paddle sizes. It was developed for a course project for the microprocessors course. I hope you enjoy it.
- Assembly language programming
- Game development basics
- Input handling
- File handling
- Collision detection
- Performance optimization
- Debugging and testing
- Project management
- Instruction set architecture
- Memory management
- Interrupt handling
- x86 Architecture
- Download DOSBox.
If DOSBox is too small you can set windowresolution=1600x900 and output=overlay in DOSBox options.
- Download /build/MAIN.EXE.
- Launch DOSBox.
- Mount the directory where you downloaded MAIN.EXE.
for example C:\Users\username\Downloads\MAIN.EXEmount D: C:\Users\username\Downloads\
- Navigate to the newly mounted directory D by typing 'D:'.
D:
- Launch the game by typing 'MAIN.EXE'.
MAIN.EXE
- Enjoy!
- Start by entering both players' names
- Press f2 to start the game
- Choose paddle size and ball speed
- Press space to serve the ball and enjoy!
- You can pause the game by pressing ESC
- First to 5 points wins.
- Download DOSBox.
If DOSBox is too small you can set windowresolution=1600x900 and output=overlay in DOSBox options.
- Clone the repository by running the following command in your terminal or command prompt:
git clone https://github.com/ziadabdo98/PongBuddy.git PongBuddy
- Launch DOSBox.
- Mount the directory where you cloned PongBuddy.
for example C:\Users\username\Downloads\PongBuddymount D: C:\Users\username\Downloads\PongBuddy
- Navigate to the newly mounted directory D by typing 'D:'.
D:
- Assemble MAIN.ASM file using MASM assembler in /tools/ and press enter for all the prompts.
This will generate build\main.obj object file.
tools\masm.exe MAIN.asm build\main.obj
- Link the object file generated from the previous steup using linker /tools/link.exe
This will generate an executable build\main.exe ready to be run.
tools\link.exe build\main.obj , build\main.exe