You are browsing as a guest. Sign up (or log in) to start making projects!

4h 2m 5s logged

Second devlog, I remade snake in the terminal

It plays just like classic snake, supporting wasd and arrow keys, hitting yourself or the walls kills you, and eating an apple increases your score and you grow

Acquired knowledge

  • debugging with gdb (very useful)
  • using curses libraries for terminal drawing and input
  • managing support for windows and Linux at the same time using #ifdef
  • managing a game loop

Biggest challenge

The biggest challenge was that I kept assuming that uninitialized variables would default to 0 like in other languages, but in C they become whatever was last in that memory, so random garbage

0
16

Comments 0

No comments yet. Be the first!