Makefile
author Mohammed Khoory
Wed Jul 07 19:11:38 2010 -0400 (22 months ago)
changeset 5 bcf3d6f89c62
parent 4 6366beccd211
permissions -rw-r--r--
Keyboard support, code movement, and TestManager

Major Changes
=============
- Added "testman.h" and "testman.cpp" to be used exclusively to test stuff (from a
GameManager perspective)
- Moved all the testing stuff to testman.cpp. 9game is just an empty class now to
manage other GameManagers
- Moved all the initializing stuff from 9Game to main. 9Game is like any other
GameManager now (just that it manages other GameManagers)
- Added keyboard.h and keyboard.c to handle keyboard interrupts (by replacing the
keyboard ISR)
- Keyboard is working :D can read more than one key at a time. (tested in
TestManager with WASD)

Minor Changes
=============
- Removed the exception throwing in SpriteLoader::unloadFile() (because it just
makes things unnecessarily complicated)
- added finished() to GameManager to indicate whether a GameManager is finished or
not
- Animation test + key control test. Sprite moves around depending on wasd key
input. (program ends when off screen to right)
- Set 0x00 as transparency color with drawSprite (TODO: change to make this
customizeable on runtime)
- Edited Makefile to reflect new changes

Notes
=====
- Animation seems to work nice and smooth in dosbox, slow in dosemu, so maybe I
should start testing in both dosemu and dosbox
- TODO: fix bug with drawSprite. When a sprite is drawn on the right of the screen
it "wraps around" to the other side by one pixel in width
     1 #
     2 # Makefile for DJGPP
     3 #
     4 
     5 # Compiler command
     6 CXX=gxx
     7 CC=gcc
     8 
     9 #
    10 # Flags 
    11 #       -g  -- Enable debugging
    12 #       -wall  -- Turn on all warnings
    13 #
    14 CFLAGS=
    15 
    16 #Redirection app for logging
    17 REDIR=redir -o build.txt -eo 
    18 
    19 all: game.exe
    20 
    21 clean:
    22 	del *.o
    23 	del *.exe
    24 
    25 game.exe : 9game.o graphics.o main.o gobject.o movblobj.o sprload.o testman.o keyboard.o
    26 	$(REDIR) $(CXX) $(CFLAGS) -o game.exe 9game.o graphics.o keyboard.o gobject.o movblobj.o sprload.o testman.o main.o 
    27 #C:\DJGPP\LIB\LIBSTD~1.A
    28 
    29 graphics.o: graphics.cpp
    30 	$(REDIR) $(CXX) $(CFLAGS) -c graphics.cpp
    31 
    32 9game.o : 9game.cpp
    33 	$(REDIR) $(CXX) $(CFLAGS) -c 9game.cpp
    34 
    35 main.o : main.cpp
    36 	$(REDIR) $(CXX) $(CFLAGS) -c main.cpp
    37 
    38 gobject.o : gobject.cpp
    39 	$(REDIR) $(CXX) $(CFLAGS) -c gobject.cpp
    40 
    41 movblobj.o : movblobj.cpp
    42 	$(REDIR) $(CXX) $(CFLAGS) -c movblobj.cpp
    43 
    44 bmpload.o : bmpload.cpp
    45 	$(REDIR) $(CXX) $(CFLAGS) -c bmpload.cpp
    46 
    47 sprload.o : sprload.cpp
    48 	$(REDIR) $(CXX) $(CFLAGS) -c sprload.cpp
    49 
    50 testman.o : testman.cpp
    51 	$(REDIR) $(CXX) $(CFLAGS) -c testman.cpp
    52 
    53 keyboard.o : keyboard.c
    54 	$(REDIR) $(CC) $(CFLAGS) -c keyboard.c