Game Development Reference
In-Depth Information
REM ********** init.bat ************
IF EXIST .\src\tictactoe\gsrc\client del .\src\tictactoe\gsrc\
client\*.as
CALL "%GAMANTRA%"\bin\PulseCodeGen.bat .\tictactoeSchema.xml
tictactoe.gsrc .\src\tictactoe\gsrc
IF NOT %ERRORLEVEL% == 0 GOTO ERROR
ECHO Success!
GOTO END
:ERROR
ECHO oops!
:END
Pause
REM ***** end of init.bat ***********
The above batch file is convenient. So, if you changed the schema, the regeneration of
source files can be quickly regenerated.
Project directory structure
If we explored the game's directory structure, we will find the
game
folder containing
a couple of helper classes that allows us to draw things on the game screen, is shown as
follows. Under
gsrc
, all the generated class files are stored. The
rsrc
folder contains all
the image assets for the game. The
ui
folder contains the class files that are subclassed
from the Pulse UI package.