Commit Graph

19 Commits

Author SHA1 Message Date
Pradana AUMARS ebdcba9afb Continue main loop only if p is non-null 2021-06-28 16:13:48 +02:00
Pradana AUMARS 5b18911111 Added ANGLE_MIN_OFFSET and ANGLE_MAX_OFFSET 2021-06-28 16:04:41 +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 05addb3baa Prevent 90 deg ball throw 2021-06-28 14:12:18 +02:00
Pradana AUMARS 039149a745 Reduce ball velocity to 7 2021-06-28 14:02:47 +02:00
Pradana AUMARS a70d61ca52 Add random ball velocity vector direction in a given angle 2021-06-28 14:00:57 +02:00
Pradana AUMARS c56480a33b Initialise variable 'start' at the beginning 2021-06-28 13:43:41 +02:00
Pradana AUMARS 0d522fb521 Set ball reset position to middle of window 2021-06-28 13:02:50 +02:00
Pradana AUMARS 145fbfd02e Clean configure 2021-06-28 12:57:01 +02:00
Pradana AUMARS 23009a78f1 Add requirements 2021-06-27 17:20:52 +02:00
Pradana AUMARS 4efe0c2365 Add 'Press any key to start...' introductory message 2021-06-27 17:19:17 +02:00
Pradana AUMARS d96d7485e5 Add header files to Automake instructions 2021-06-27 16:56:02 +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