Commit Graph

30 Commits

Author SHA1 Message Date
Patrick Covaci 58344a18c8
Merge pull request #2 from xAlpharax/main
Proper Makefile SDL paths and better instructions in the README.
2024-07-24 15:04:56 +00:00
xAlpharax 961e9316f5
Made Makefile correct with proper SDL paths.
Made the README more beginner friendly.

Changes to be committed:
    modified:   Makefile
    modified:   README.md
    modified:   src/rectangle.c

Co-authored-by: Patrick Covaci <ty3r0x@chaox.ro>
2024-07-24 17:56:47 +03:00
Ty3r0X c6cf239bfd
Adaugare document atestat 2024-04-07 14:06:48 +03:00
Ty3r0X 9496a6b4c9
Minor changes 2024-02-21 09:55:29 +02:00
Ty3r0X 32f6d24433
Update CI/CD (include SDL2_ttf lib) 2024-01-03 16:12:18 +00:00
Ty3r0X a3e25eb9b0
Update CI/CD 2024-01-03 16:10:02 +00:00
Ty3r0X 9a7d8058ed
Update CI 2024-01-03 15:56:00 +00:00
Ty3r0X 825301e81f
Update CI 2024-01-03 15:54:28 +00:00
Ty3r0X 14f82abb25
Added a counter system
Each time the square is touched, the counter increments. It uses
SDL_ttf to render the counter. As simple as this addition may be,
I had to surprisingly add a buttload of code to render a damn
number. Low level programming is such a lovely experience :').
2023-12-30 20:53:54 +02:00
Ty3r0X 9281a0d505
Merge branch 'main' of github.com:Ty3r0X/funni-square 2023-12-30 10:20:40 +02:00
Ty3r0X 97b8d9379f
Refactored event logic
SDL_Delay() causes the event queue to bottleneck, so in order to improve
the program's responsiveness, I implemented a while loop to clear the
queue entirely before the next main loop iteration, thus improving the
mouse / kb detection.
2023-12-30 10:15:15 +02:00
Ty3r0X a41d0ba51c
Forgot to revert the size back to 100 4 the square 2023-12-19 12:32:25 +02:00
Ty3r0X 00e6367402 Merge branch 'main' of github.com:Ty3r0X/funni-square 2023-12-19 12:28:27 +02:00
Ty3r0X 357e70e129
Fixed bug: square gets stuck when placed out of bounds
The rand() funtion now gets the correct limits, so in theory the square
shouldn't go out of bounds anymore...
2023-12-19 12:25:33 +02:00
Ty3r0X 9dbcbc62a2
Implemented caskd's fix for the Makefile
Argument order matters, and in some systems it ain't compiling, so this
is set in place just for that. Kudos to @casKd-dev
2023-12-17 21:11:39 +02:00
Ty3r0X 144342ab81
Fix bug: square does not honour the limits
If the square's x pos is placed a tiny bit outside the canvas, it will
infinitely go out of bounds, so I placed a comparison to mitigate that.
Thank you @thefirethirteen for letting me know ^_^
2023-12-16 09:00:08 +02:00
Ty3r0X 01432a529c
Added delay, finally CPU can breathe... 2023-12-15 19:38:51 +02:00
Ty3r0X 1bf8a01ac5
Each time the square is touched, its position is altered alongside the bg color 2023-12-06 09:43:37 +02:00
Ty3r0X d16cbec806
DVD logo 2023-11-29 20:08:17 +02:00
Ty3r0X ccf5535902
If you touch the square, coords are spewed to stdout 2023-11-24 22:28:58 +02:00
Ty3r0X 81302d524b
If you touch the square, coords are spewed to stdout 2023-11-24 22:27:24 +02:00
Ty3r0X af69714a95
CI/CD 2023-11-24 19:20:16 +00:00
Ty3r0X ac53d8fd65
Edit CI/CD once again 2023-11-24 19:15:47 +00:00
Ty3r0X a2b73ab710
CI/CD - add SDL 2023-11-24 17:55:01 +00:00
Ty3r0X 7ef92713d1
CI/CD - Install SDL deps 2023-11-24 17:51:26 +00:00
Ty3r0X 2dfc784ec3
Try out CI/CD 2023-11-24 17:46:29 +00:00
Ty3r0X bd04eac0b0
Edit README 2023-11-24 19:41:16 +02:00
Ty3r0X 8ad005fe30
Where did the source code go? 2023-11-24 19:38:13 +02:00
Ty3r0X 56be860bdf
Where did the source code go? 2023-11-24 19:37:22 +02:00
Ty3r0X 78d1b7b495
Initial commit 2023-11-24 19:35:49 +02:00