https://github.com/codewithkyle/raylib-snake
Snake built with Raylib in C (WASM)
https://github.com/codewithkyle/raylib-snake
Last synced: 3 months ago
JSON representation
Snake built with Raylib in C (WASM)
- Host: GitHub
- URL: https://github.com/codewithkyle/raylib-snake
- Owner: codewithkyle
- Created: 2025-01-14T17:20:22.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-01-22T19:57:23.000Z (5 months ago)
- Last Synced: 2025-03-11T14:52:23.005Z (3 months ago)
- Language: C
- Homepage: https://snek.codewithkyle.com/
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TODO
- [x] Render square
- [x] Render circle
- [x] Render checker board pattern
- [x] Move player on update
- [x] Track current direction & next direction
- [x] Keyboard input changes next direction
- [x] Change direction at next cell
- [x] Start with body of 3 units
- [x] Chain player segment cell/pos on update (linked list?)
- [x] AABB food cell collision
- [x] Increase player segments when eating food
- [x] Spawn food at random cell
- [ ] Spawn player at random cell
- [x] Kill player when hitting bounds
- [x] Player ack respawn (window.confirm?)
- [ ] Display score (snek lenght)
- [ ] Display FPS
- [ ] Red transparent overlay & death message
- [ ] High score
- [ ] Score
- [ ] Longest snek## Render targets
- [ ] Set target based on `&target=` query param
- [ ] Manual raterization
- [x] Rectangle
- [x] Circle
- [ ] Image
- [ ] Text
- [ ] WebGL
- [ ] Rectangle
- [ ] Circle
- [ ] Image
- [ ] Text
- [ ] 2D
- [x] Rectangle
- [x] Circle
- [ ] Image
- [ ] Text