Pradana AUMARS
5600a7359a
Make start text a bit wider
2021-06-29 16:56:48 +02:00
Pradana AUMARS
134592d9f6
Clean start text parameters
2021-06-29 16:54:51 +02:00
Pradana AUMARS
267e6f7d5d
Add 'Press any key to begin...' message to the screen
...
* Text font is initialised with each text struct (to be improved)
2021-06-29 16:50:02 +02:00
Pradana AUMARS
d0166b0802
src/main.c
2021-06-29 16:23:02 +02:00
Pradana AUMARS
c8bd082866
All const members are now static const in their header files
2021-06-29 01:25:08 +02:00
Pradana AUMARS
46e9265365
Minor rewrite of Pong_status
2021-06-28 22:37:49 +02:00
Pradana AUMARS
bb6d81c99d
Clean game status output on terminal
2021-06-28 22:36:04 +02:00
Pradana AUMARS
45df3ec812
Score is now displayed on the window
...
* Added Score structure
* Added Liberation Mono Bold font in src/assets/
* Racket structure has Score member
* General cleanup and improvements
* BUG: font_path string is dependent on where the binary is run
2021-06-28 21:37:34 +02:00
Pradana AUMARS
5ced7d7ade
Revert "Added ANGLE_MIN_OFFSET and ANGLE_MAX_OFFSET"
...
This reverts commit 30fc668684
.
2021-06-28 16:03:17 +02:00
Pradana AUMARS
20a2065f47
Revert "Revert "Added posX constants of ball and racket to pong struct""
...
This reverts commit 40a904e100
.
2021-06-28 16:02:55 +02:00
Pradana AUMARS
40a904e100
Revert "Added posX constants of ball and racket to pong struct"
...
This reverts commit 0462b187b4
.
2021-06-28 16:02:26 +02:00
Pradana AUMARS
30fc668684
Added ANGLE_MIN_OFFSET and ANGLE_MAX_OFFSET
2021-06-28 16:01:49 +02:00
Pradana AUMARS
0462b187b4
Added posX constants of ball and racket to pong struct
2021-06-28 15:13:57 +02:00
Pradana AUMARS
b0d7f5cc48
Rackets initialise in the middle
2021-06-28 15:11:59 +02:00
Pradana AUMARS
c5e8473d79
Set ball starting position next to the rackets
2021-06-28 15:09:39 +02:00
Pradana AUMARS
e10599f19a
First implementation of Pong
...
* Movement of ball and rackets are correct
* Score is recorded and displayed on terminal, not on the window
* Ball is represented as a square and not a disc
* Window is fixed and not scalable
* Player controls are E-D (up-down) for Left, I-K (up-down) for Right
* Ball reset parameters are fixed (except for direction)
2021-06-27 16:41:52 +02:00