Commit Graph

9 Commits (1.2)

Author SHA1 Message Date
Nakidai e2d01db144 Refactor
- Fix bug when Make cannot create obj/platform
- Remove some mallocs
2023-12-09 00:35:49 +03:00
Nakidai 1685dc927b Remove functions for free screen and player as they're unused 2023-12-01 23:07:02 +03:00
Nakidai 793db5f00a Fix allocation bug and some other
- Add *.core (core dumps) to .gitignore
- Change defines of directions to enum
2023-11-24 22:14:53 +03:00
Nakidai d6b4f0be32
Some fixes
- Now every frame is cleared
- Fix collision with self
2023-10-30 15:35:15 +03:00
Nakidai 758dbf9cc2
Some fixes
- Fix UB in playerCreate (it had no return)
- Now Screen has field of Points, not chars
2023-10-30 02:36:03 +03:00
Nakidai b402dc177c
Add gameplay
- wasd - turn snake
- q - leave
2023-10-30 01:55:20 +03:00
Nakidai abda36c1c3
Some fixes & start to make gameplay
- Fix input function, so now it can be used as thread
- Edit main loop, to quit press q
- Add score incrementing for player
2023-10-30 00:24:13 +03:00
Nakidai 75fb0965f1
Fix player creating 2023-10-29 23:35:03 +03:00
Nakidai fac72a00ed
Add player 2023-10-29 23:14:51 +03:00