Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / Mini Space Battle!

Author
Message
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 2nd Oct 2003 04:44
Here's a little spaceship battle to watch! Each spaceship fights for itself. It targets another ship and chases it, shooting when it has a clear shot. Once a ship is being shot at, it leaves its target and starts to evade the chasing ship. While evading, if another ship passes across its view, it will target that ship and start to chase it down. Sometimes chasing ships will lose interest in their targets and fly around looking for another. Ships that have been destroyed just appear again in a random position to continue the battle.

The little spacecraft were modelled in my head and on paper, then typed into data statements to be created on the fly using a memblock. The starmap and engine flare/bullets/explosion images are also created at run-time. There is no external media, so you can copy 'n' paste 'n' enjoy!

You can download an exectuable version here:
http://www.mikeyben.org/darkb/spacebattle20.zip

Your comments please!

Once I was but the learner,
now, I am the Master.
DarkSin
21
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: Under your bed
Posted: 2nd Oct 2003 04:51
Very cool *downloading now*

When catapults are outlawed, only outlaws will have catapults. I have a catapult. Give me all the money, or I will fling an enormous rock at your head.
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 2nd Oct 2003 04:52
Very, very impressive... I really like it

Lots of fun to watch in a window.

Especially impressive that you got those 3d ships in DATA statements!

Possibly the best 20-liner I've seen, along with your Ripples and Matrix ones; and Return to Phobos by Xeridox.

I'm beginning to believe that virtually anything can be fit into 20 lines by coders skilled enough

--Mouse: Famous (Avatarless) Fighting Furball
Read It: http://www.angryflower.com/itsits.gif
Learn It: http://www.angryflower.com/bobsqu.gif
DarkSin
21
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: Under your bed
Posted: 2nd Oct 2003 04:59
Ok... i am so very impressed... i just read more after starting to download & noticed there was no media needed... and all i can say is... well nothing... im speechless keep up the awsome coding

When catapults are outlawed, only outlaws will have catapults. I have a catapult. Give me all the money, or I will fling an enormous rock at your head.
Preston C
21
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 2nd Oct 2003 05:02
Mesa Like the little knats flying around killing eachother


Dark Basic Pro has arived! I can feel the power!
ShockFire
21
Years of Service
User Offline
Joined: 13th Sep 2003
Location: Headquarters of War Land.
Posted: 2nd Oct 2003 05:23
A thought appeared inside my mind.
ShockFire comes out Pure Darkness to find the Forum.
-_- Forum -_- Must Post on Forum! Hums!

ShockFire comes out Pure Darkness to find the Forum. Hey TheGameCreators...I finally found the Forum...It was hidden in a cloak of Darkness. And the fact that I took the long way to find it helps the Quality of the place that I walk apon. Lets just say it took a while.

Coding Programming Games Thoughts Games Testing Chewing on Enemyies. Major Burtality Total Carnage+Destruction!

-_- Ahh Yes here we are. A Space Ship game. /me goes to test it out.

Killing A_+ Burtality A++_- Total Carnage in a Infinite Death Zone A+++_-

Morphic Mutated Glatic Code Exchange Network
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 2nd Oct 2003 19:32
Wow! Two prizes not enough?



If your mansion house needs haunting, just call Rentaghost!
Thialfi
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: Asgard
Posted: 5th Oct 2003 03:02
I think this thing would make a good screen saver.

By Thor's hammer
By the sons of Odin
I shall avenge thee
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 5th Oct 2003 22:46
We spent ages watching this at the convention, its hypnotic! - Congrats Darthster

OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 5th Oct 2003 23:29
I'll have to stick in a Deathstar...


Avatar & Logo by Indi. Recovering from the UK DBPro Convention in Chichester
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 5th Oct 2003 23:50
WoW

Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 6th Oct 2003 00:47
Will the amazing 20-liners never end?

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Wiggett
21
Years of Service
User Offline
Joined: 31st May 2003
Location: Australia
Posted: 7th Oct 2003 05:12
holy crap! this looks absolutely awesome! are they 2d ships, or 3d ones, cause if its 2d the depth perception is amazing! some of the animations it has looks like its definately 3d, when some turn on obscure angles etc. but absolutely awesome dude.

Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 11th Oct 2003 06:06
Sheesh... This would make a really really good screensaver!!!
Lovin it to bits...

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 11th Oct 2003 11:45
Hmm... your link doesn't work for me
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 11th Oct 2003 18:53
Due to a technical fault, all my files and demos have been deleted off my webspace. They will be put back when I've finished making my website.

Thanks for all the praise, I'm thinking about making this into a screensaver soon

Uberwiggett - they are 3d. All the model data is contained in the data statement at the beginning, then read off into a memblock and converted to a mesh

Once I was but the learner,
now, I am the Master.
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 14th Oct 2003 08:38
Thats supremely impressive. Yet again TheDarthster raises the ante.

Philip

What do you mean, bears aren't supposed to wear hats and a tie?
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Oct 2003 15:06
Yeah neat! I like the way the ships look for each other! I suppose that it's just a distance formula.

Pincho.
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 17th Oct 2003 23:39
It's not only a distance formula, it also compares the angles between the ships, and which way they are facing, so ships will only chase other ships passing in their field of view.

Once I was but the learner, now, I am the Master.
http://www.mikeyben.org/darkb
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 18th Oct 2003 17:32
Wow all that AI in 20 lines...!!! Great!

Pincho.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 18th Oct 2003 17:34
Oh I did spot a bug where the bullet stayed in the middle of the screen for ages..............until it was shot??? Or was it a tiny ship?

Pincho.
Dsarchy
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: UK- Kent
Posted: 22nd Oct 2003 19:10
I think its safe to say you have this 20 linner thing sust. lol

?
GameKit
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 23rd Oct 2003 17:40
Wow...very impresive...making 3D ships using data statments... and all that AI in so short of code...do you mind if i make this into my screensaver Darthster?

If It Wern't For Bad Apples, Good Apples Would Only Be Average...
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 24th Oct 2003 23:16
I'm currently preparing a screensaver version, but vastly improved . There's a cruiser with twin beam laser turrets, proper ship models are used, the lasers and explosions look amazing (watch the cruiser explode! BOOM!), and options to set teams/free for all and the number of ships. Hopefully I'll soon implement name tags - something suggested at the DB UK convention - and some more varied camera angles.

Pincho that is a kind of bug, I didn't have enough lines to hide the bullets on creation, so they all stay there until fired.

Once I was but the learner, now, I am the Master.
See my site for amazing games and demos!
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 26th Oct 2003 01:49
aswome game darthster, i realy like it

Sparring - Loved by many, Pefected by few.
JD Programming
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location: United Kingdom
Posted: 23rd Nov 2003 03:48
Great Job

Programming is one of the first steps to become an individual...
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 29th Nov 2003 01:39
The screensaver version is very nearly complete! It looks and sounds amazing!

Once I was but the learner, now, I am the Master.
See my site for amazing games and demos!
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 29th Nov 2003 18:24
Looking forward to it!

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
EthanJP
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 29th Nov 2003 23:41
It won't work
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 30th Nov 2003 14:07
You can get the screensaver on my website:

http://www.mikeyben.org/darkb

Leave your comments in the forum topic in program announcements http://www.thegamecreators.com/?m=forum_view&t=20934&b=5

What won't work?

Once I was but the learner, now, I am the Master.
See my site for amazing games and demos!

Login to post a reply

Server time is: 2024-11-24 02:08:37
Your offset time is: 2024-11-24 02:08:37