Skip to content
/ game0 Public

You are subject O-141 a O-type tetromino starting on screen left center The game also includes a set of tetris towers and a path that is quickly approaching you. The authorities are trying to lock you away. Your objective is to get through the towers without coming to a dead end or getting obstructed.

Notifications You must be signed in to change notification settings

rahulbal/game0

Repository files navigation

Base0

Base0 is the starter code for the game0 in the 15-466-f17 course. It was developed by Jim McCann, and is hereby released into the public domain.

Note that Base0 is attempting to illustrate a very straightfoward "get it done" philosophy of game code design -- I've purposefully removed some of the conveniences one typically uses to sweep things under the rug.

This is because game0 does not need such conveniences. It is simple because game0 is simple.

Requirements

  • glm
  • libSDL2
  • modern C++ compiler

On Linux or OSX these requirements should be available from your package manager without too much hassle.

Building

Linux

  g++ -g -Wall -Werror -o main main.cpp Draw.cpp `sdl2-config --cflags --libs` -lGL

or:

  make

OSX

  clang++ -g -Wall -Werror -o main main.cpp Draw.cpp `sdl2-config --cflags --libs`

or:

  make

Windows

Before building, clone kit-libs-win into the kit-libs-win subdirectory:

  git clone https://github.com/ixchow/kit-libs-win

Now you can:

  nmake -f Makefile.win

or:

  cl.exe /EHsc /W3 /WX /MD /Ikit-libs-win\out\include /Ikit-libs-win\out\include\SDL2 main.cpp Draw.cpp gl_shims.cpp /link /SUBSYSTEM:CONSOLE /LIBPATH:kit-libs-win\out\lib SDL2main.lib SDL2.lib OpenGL32.lib
  copy kit-libs-win\out\dist\SDL2.dll .

About

You are subject O-141 a O-type tetromino starting on screen left center The game also includes a set of tetris towers and a path that is quickly approaching you. The authorities are trying to lock you away. Your objective is to get through the towers without coming to a dead end or getting obstructed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages