Nakidai
ba0fc142d4
Also register troubles between MinGW and MSVC
2024-03-06 23:56:20 +03:00
Nakidai
837dbabac0
Completely fix #3
2024-03-06 23:50:27 +03:00
Nakidai
d995de9116
Probably fix #3
2024-02-23 17:11:50 +03:00
Nakidai Perumenei
eb82ad3173
Remove getchInit from input.c
2023-12-17 03:10:52 +03:00
Nakidai Perumenei
71cfceee4b
Now game clears cursor at exit on ^C
2023-12-17 03:07:48 +03:00
Nakidai Perumenei
22d3cdeb43
Repair cursor on exit for posix
2023-12-17 00:41:42 +03:00
Nakidai
cf71b4d57d
Some movements
2023-12-09 00:49:36 +03:00
Nakidai
e2d01db144
Refactor
...
- Fix bug when Make cannot create obj/platform
- Remove some mallocs
2023-12-09 00:35:49 +03:00
Nakidai
bfaf0f0e02
Fix Makefile
2023-12-02 12:29:29 +03:00
Nakidai
f70e3d949a
Decrease lines count
2023-12-01 23:11:01 +03:00
Nakidai
1685dc927b
Remove functions for free screen and player as they're unused
2023-12-01 23:07:02 +03:00
Nakidai
517e57cfc5
I like semicolons
2023-12-01 22:46:43 +03:00
Nakidai
eda7badf47
Finally separate platform-specific code from independent
2023-12-01 22:39:38 +03:00
Nakidai
50c7f9d632
Now you can configurate sleep time
2023-11-30 18:05:51 +03:00
Nakidai
4b208ab1c4
Move some functions
...
- Remove platform.c, instead use inlines
- Some small functions in screen.c are now inline too
- Make functions in sleep.c and input.c not specified in header static
2023-11-30 17:52:46 +03:00
Nakidai
be37715af7
Automatically link pthread on FreeBSD
2023-11-25 20:55:57 +03:00
Nakidai
cf8fe181a2
Change way to handle arguments in configure
2023-11-25 20:27:09 +03:00
Nakidai
49bd6ee329
Move platform specific code & make sleep platform independent
2023-11-25 13:24:01 +03:00
Nakidai
9933de02ac
Edit year of license ._.
2023-11-25 01:29:19 +03:00
Nakidai
7911484f02
Add license
2023-11-25 01:28:45 +03:00
Nakidai
8acdec21a7
Rename target default to all
2023-11-25 00:55:36 +03:00
Nakidai
123760b56a
Add csnake to gitignore
2023-11-25 00:53:51 +03:00
Nakidai
e6995af34a
Prepare for release
2023-11-25 00:52:02 +03:00
Nakidai
8e8a1c5abd
Add config.h and config.mk to .gitignore
2023-11-25 00:17:55 +03:00
Nakidai
9c54a483bd
Remove some warnings
2023-11-25 00:11:34 +03:00
Nakidai
970fb66db8
Move pthread_t declaration
2023-11-25 00:00:44 +03:00
Nakidai
1ff14f7cbc
Add windows support in threads and sleep
2023-11-24 23:58:37 +03:00
Nakidai
ce1e91d90f
Switch back to pthread.h
2023-11-24 23:32:42 +03:00
Nakidai
0b74ef8618
Add windows support
2023-11-24 22:58:33 +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
1d63892d67
Add README
2023-11-07 04:49:55 +03:00
Nakidai
98089c4351
Add pause key
...
Also moved render with sleep to start of loop, so you can see first
frame.
2023-11-01 19:29:12 +03:00
Nakidai
b64ffdb82a
Fix condition
2023-11-01 19:21:51 +03:00
Nakidai
c31de323f0
Fix bug when game freezes on max possible score
2023-11-01 18:34:19 +03:00
Nakidai
bcf6465f4e
Optimize game over condition
2023-11-01 13:27:42 +03:00
nakidai
460e4e33ed
Merge pull request 'Add cmake, remove non-standard random' ( #2 ) from neko/csnake:cmake into master
...
Reviewed-on: https://nakidai.ddns.net/nakidai/csnake/pulls/2
Size of CMake is over 70M :O
2023-10-31 06:40:45 +03:00
Neirokan
29e63d64ee
cmake, config, rand, srand
2023-10-31 06:07:03 +03:00
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