Author: Matt Carrier
Class: CS315: Project 4 - Worm
nix develop -c $SHELL
- Run
make
for subsequent builds.
nix build
nix run
Run nix build .
to build
Run ./worm
to start the game.
Run nix run
or ./result/bin/worm
w
, a
, s
, d
or i
, j
, k
, l
to move the worm.
Munchies that appear inside the worm will disappear after worm completely leaves the space. Going over this space after with the worm will read from uninitialized memory and shoot the score up very high. This will eventually lead to a crash.
Munchies can appear inside the worms body as I didn't have enough time to fully implement an auto updating free pool.
Munchies can also appear inside of the top wall due to the same reasons that the worm can walk inside the top wall.