Thanks to visit codestin.com
Credit goes to github.com

Skip to content

codewithkyle/raylib-snake

Repository files navigation

TODO

  • Render square
  • Render circle
  • Render checker board pattern
  • Move player on update
  • Track current direction & next direction
  • Keyboard input changes next direction
  • Change direction at next cell
  • Start with body of 3 units
  • Chain player segment cell/pos on update (linked list?)
  • AABB food cell collision
  • Increase player segments when eating food
  • Spawn food at random cell
  • Spawn player at random cell
  • Kill player when hitting bounds
  • 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
    • Rectangle
    • Circle
    • Image
    • Text
  • WebGL
    • Rectangle
    • Circle
    • Image
    • Text
  • 2D
    • Rectangle
    • Circle
    • Image
    • Text

About

Snake built with Raylib in C (WASM)

Resources

Stars

Watchers

Forks

Languages