Refactored code heavily to be able to use a state stack - main function now does the basic init, looping, and shutdown, and each state is a pointer to an object that has its own event handling, rendering, etc
This commit is contained in:
2
Makefile
2
Makefile
@ -4,7 +4,7 @@ PROJECT=graphgame
|
||||
CXX=g++
|
||||
CXXFLAGS=-DDEBUG -g `sdl-config --cflags`
|
||||
LDFLAGS=`sdl-config --libs`
|
||||
OBJECTS=drawutils.o gamecore.o graph.o main.o mainevent.o mathutils.o gamedata.o sdlrenderer.o
|
||||
OBJECTS=drawutils.o game.o graph.o main.o mainevent.o mathutils.o gamedata.o sdlrenderer.o
|
||||
|
||||
all: $(PROJECT)
|
||||
|
||||
|
Reference in New Issue
Block a user