forked from nakidai/csnake
1
0
Fork 0
Commit Graph

24 Commits (master)

Author SHA1 Message Date
Nakidai 8b9fcdd3df
Now player can't turn into itself 2023-10-31 05:05:10 +03:00
nakidai 21e1f14990 Merge pull request 'Add configure' (#1) from configure into master
Reviewed-on: https://nakidai.ddns.net/nakidai/csnake/pulls/1
2023-10-30 21:57:11 +03:00
Nakidai e9e503d5b2
Change length of line to SIZE*2 2023-10-30 15:52:25 +03:00
Nakidai f25cd3ca01
Some changes
- Move config.h to include/
- Move config.mk to root
- Remove $RM from configure
2023-10-30 15:50:54 +03:00
Nakidai f2e33ad320
Add help 2023-10-30 15:50:54 +03:00
Nakidai 9529eebcbc
Fix configure 2023-10-30 15:50:53 +03:00
Nakidai 2e05977e12
Autocreate config dir attempt 2 2023-10-30 15:50:53 +03:00
Nakidai 5f6fc8f212
Autocreate config dir 2023-10-30 15:50:53 +03:00
Nakidai 317622a253
Add code configuraction in configure 2023-10-30 15:50:53 +03:00
Nakidai b23325bfec
Remove config from make clean 2023-10-30 15:50:53 +03:00
Nakidai 94d6a769a1
Move config to config/ 2023-10-30 15:50:53 +03:00
Nakidai 2ebe6fccea
Add configure for make 2023-10-30 15:50:52 +03:00
Nakidai d6b4f0be32
Some fixes
- Now every frame is cleared
- Fix collision with self
2023-10-30 15:35:15 +03:00
Nakidai 84e21cb515
Add move to start of screen every tick 2023-10-30 14:24:34 +03:00
Nakidai a064af95da
Add score and *the great line* 2023-10-30 03:53:48 +03:00
Nakidai b611b54575
Switch to threads.h 2023-10-30 02:51:46 +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
Nakidai c7797f1f41
Change inputArgs to InputArgs 2023-10-29 22:35:37 +03:00
Nakidai 9dc2da1f90
Add input function 2023-10-29 21:31:33 +03:00
Nakidai 03481db05f
Add files 2023-10-29 20:03:23 +03:00