What kind of theme in the space game? 3d dogfight?
Yes, 3D Dogfight basically. I'm also trying to work out how to do planets that you can fly right down to the surface. That's definitely at the concept stage.
I'd like to enter and I have a scheme to squish alot of mesh data into very little space before compression BUT I'll have to massage the data so much I need to write a gui tool to do it (plus add some additional information)... So that's a daunting prospect.
Don't be daunted. I'd exactly that for Sharpshooter with no GUI in sight. I wrote a parser that reads in wavefront .obj files & squirts out a compressed binary format. I also did the same for other data I wanted, so it all ended up in one file, which compresses nicely. Here is the main() part of the compressor, to give the idea.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| public static void main(String[] args) { CreateData d = new CreateData(); System.out.println("Processing..."); d.open("d.dat"); d.numberModels(9); d.convertModel("resources/tree.obj", "tree"); d.convertModel("resources/tent.obj", "tent"); d.convertModel("resources/campfire.obj", "campfire"); d.convertModel("resources/supplies.obj", "supplies"); d.convertModel("resources/fence.obj", "fence"); d.convertModel("resources/scout.obj", "enemy"); d.convertModel("resources/trooper.obj", "enemy"); d.convertModel("resources/playerprojectile.obj", "playerprojectile"); d.convertModel("resources/enemyprojectile.obj", "enemyprojectile"); d.convertMusic("resources/tune.txt"); d.includeFont("SharpShooter"); d.includeFont("Mission Success Failure"); d.includeFont("Use the mouse to look and cursor keys to move."); d.includeFont("Left mouse fires. Right mouse changes weapon."); d.includeFont("RETURN Key"); d.includeFont("Level 1234567890"); d.includeFont("Kill Scouts Troopers"); d.includeFont("Raid Supplies"); d.includeFont("BONUS Gatling Gun"); d.includeFont("Press ESC to Quit"); d.includeFont("Press SPACE to Start"); d.includeFont("/ Alan Waddington 2005"); d.convertFont("resources/font16x22.png"); d.numberIcons(6); d.convertIcon("resources/scout.png"); d.convertIcon("resources/trooper.png"); d.convertIcon("resources/supplies.png"); d.convertIcon("resources/gun.png"); d.convertIcon("resources/musket.png"); d.convertIcon("resources/gatling.png"); System.out.println("Done."); d.close(); } |
Alan