Tactical Tinkering

Snake (C++ Win32)

After mastering (well, becoming proficient in, at least) C++ console programming, the next logical step was to venture into the realm of the GUI. I thought a simple game of snake was a good place to start. I wasn't, however, quite ready to delve into DirectX just yet, so instead I turned to the Windows GDI.

I built in two modes of gameplay:

  1. Level #: speed is set at #, snake gets longer and you recieve # points for each piece of food eaten
  2. Survival: set snake length, speed increases with each piece of food eaten

Visual Studio 2010 project file included.

© Dan Brown 2013