Simple SpaceBattle Demo

Community Forums/Showcase/Simple SpaceBattle Demo

Matty(Posted 2004) [#1]
Hello,
Yesterday I spent a couple of hours putting this together, it is a simple demo of a space battle. Extremely basic at this stage but it is at the location below.

Use the cursor keys and A/Z to move the camera around the environment.

There is a text file called ships.txt which contains the number of each type of ship, as well as some instructions.

Source code is provided (1 simple .bb file with very few lines).

The demo is zipped and is about 1Mb in size.
Feel free to do whatever you want with this.


http://home.swiftdsl.com.au/~gezeder/lloyd/SpaceBattle.zip


Wulde(Posted 2004) [#2]
link not working


WendellM(Posted 2004) [#3]
Link works now. It runs a bit fast here (perhaps no frame limiting - see "WaitTimer"), but it looks like you've achieved what you set out to do - a big space battle: nice. Thanks for including the source - it's a cool demo. :)


Matty(Posted 2004) [#4]
I forgot to put frame limiting into it...although given the source is included it is not too hard to put in. An easy way is like this:

at the beginning of the core loop (repeat...etc)
if millisecs()>time then 
time=millisecs()+15

and place the end if immediately before renderworld/flip



slenkar(Posted 2004) [#5]
very good - how did you create the skybox texture and get it seamless?


Matty(Posted 2004) [#6]
Skybox/Starbox texture made with this program I found on the web:

http://www.dnxworld.homestead.com/files/starbox.zip

Then added some airbrushed colored regions with Ultimate Paint.


ckob(Posted 2004) [#7]
wow runs really fast on my setup as well


slenkar(Posted 2004) [#8]
thanks matty very useful


gburgess(Posted 2004) [#9]
Pretty cool, but the explosions were too small ;)




slenkar(Posted 2004) [#10]
can I copy the way you do lasers?


aab(Posted 2004) [#11]
nice lasers and effects=(could build up a great atmosphere)

It would look even better with a twinkling star background


-Rick-(Posted 2004) [#12]
Great job! I'm so jealous that you did this in a day, I did something similar in 2d that took me the better part of a week and had alot more code lol.


Matty(Posted 2004) [#13]
Slenkar - yes you can copy the way I do lasers. The source code and media is free to use however you like and modify.

Below is another version, which I wrote last night, which you can either just watch the same as in the one above, or you can play by pressing tab to start, then using cursor keys, a/z and spacebar to fire with one of the fighters. It also has frame limiting and a few bug fixes.

Pressing tab will switch between "playing mode" and "watching mode"

http://home.swiftdsl.com.au/~gezeder/lloyd/PlayableDemo.zip


slenkar(Posted 2004) [#14]
thanks,for letting me copy your codez


boomboom(Posted 2004) [#15]
aab, stars don't twinkle in space, they only appear to when look through a planets atmosphere.


AntonyWells(Posted 2004) [#16]
Nice stuff. Would be a good engine for a homeworld/space rts kind of game.

Is there a problem my end or no sound in the demo? Rip some star wars music/lasers..;)


Matty(Posted 2004) [#17]
Currently there is no sound included.
I am thinking of using something like this for a sci fi empire building game based on a variant of a board game called Twilight Imperium.


Morbius(Posted 2007) [#18]
Anyone have this file?


jfk EO-11110(Posted 2007) [#19]
what, the space battle or the starbox.zip? However, here's
http://www.xs4all.nl/~xelag/starbox.zip
although not integrity checked so far.


Morbius(Posted 2007) [#20]
Oh sorry, I'm looking for spacebattle.zip. I tried the Wayback Machine with no luck.

Thank you!


Pete Carter(Posted 2007) [#21]
Matty i can't download this sounds quite fun


WendellM(Posted 2007) [#22]
I'm looking for spacebattle.zip.

It was still hanging out in my Blitz folder, so I've put it at http://neonavis.com/spacebattle.zip


Morbius(Posted 2007) [#23]
Much appreciated. I owe you one!


Chugs40(Posted 2007) [#24]
I can't get your site or the download to start.


WendellM(Posted 2007) [#25]
My hosting service sometimes "takes a nap," so that might have been the problem. But I tried it just now and it downloaded fine (and it's been downloaded 29 times in the past few days). Please try again and let me know if it doesn't work for you.


Matty(Posted 2007) [#26]
I'm tempted to make an improved version of this thing seeing as people are interested in it.


Morbius(Posted 2007) [#27]
Sounds cool to me. I'd like to see it. I'm trying to work out some laser code for my current project. That's why I was looking for your demo.

Much appreciated

Mike