HOWTO: Start developing a mini-game (in Linux)
This is my experience with Linux. The setup may not be helpful to anybody else.
This is pretty minimal, too: barely worth the post! But if there's someone
else out there as clueless as I am, here it is:
Setup
It seems to take about three steps:
1. Move all your files into the new framework. For me these were:
3. Edit the following files to include your game. Just look for where they deal with SpaceInvaders and add your game in, too.
--Todd
This is my experience with Linux. The setup may not be helpful to anybody else.
This is pretty minimal, too: barely worth the post! But if there's someone
else out there as clueless as I am, here it is:
Setup
- Install code blocks and SDL dev libraries
- Download the latest framework
- Extract framework into an empty directory.
- Run codeblocks, opening an existing project, which is the .cbp file in the PandoraPanic directory you just created
- Accept changing all the files to build with GNU GCC
- In the toolbar at top, change your "Build Target" to "Lin Release"
- If you're starting from scratch, you're ready to go to it! I started out by playing with the SpaceInvaders game to see how things worked, eventually changing pretty much all of it but appreciating the framework it provided. Thanks, pstudio!
It seems to take about three steps:
1. Move all your files into the new framework. For me these were:
- My State____.cpp file
- My State____.h file
- My images/_______ directory of pngs
3. Edit the following files to include your game. Just look for where they deal with SpaceInvaders and add your game in, too.
- MiniGames.h
- MyGame.cpp
- userStates.h
--Todd
Last edited by a moderator: