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 / Endless Stars and stuff

Author
Message
Skid
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: United Kingdom
Posted: 4th Oct 2002 12:49
ok then, all converted, what it is, is the bases of what im considering makeing a game off. But basicly there one ship with two parical trails and two layers of never ending stars. Keys are as follows:
up = faster
down = slower
left = left
right = right
and the code it 20 lines reads as follows:
sync on : autocam off : for t=1000 to 1250 : make object sphere t,1 : if t =1100 : position object t,rnd(1000)-500,-100,rnd(1000)-500 : endif
next t : load image "fire1.bmp",1 : load object "Ship.X",1 : scale object 1,1000,1000,1000 : position object 1,0,0,0
for t=1 to 2 : make object sphere t+10,1 : hide object t+10 : make particles t,2,1,15 : position particles t,0,-100,0
position particle emissions t,0,0,0 : set particle gravity t,0 : set particle velocity t,0 : set particle speed t,0.0075 : set particle life t,5
next t : color backdrop rgb(0,0,0) : position camera 0,200,0 : point camera 0,0,0 : set camera range 10,10000
shipturn#=0 : speed#=2.5 : do : for t=1000 to 1099 : if object position x(t) > object position x(1)+250
position object t,object position x(1)-250,-50,object position z(1)+rnd(500)-250 : endif : if object position z(t) > object position z(1)+250 : position object t,object position x(1)+rnd(500)-250,-50,object position z(1)-250 : endif
if object position x(t) object position x(1)+500 : position object t,object position x(1)-500,-100,object position z(1)+rnd(1000)-500
endif : if object position z(t) > object position z(1)+500 : position object t,object position x(1)+rnd(1000)-500,-100,object position z(1)-500 : endif : if object position x(t)
Skid
Skid
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: United Kingdom
Posted: 4th Oct 2002 13:34
*kicks it and trys again*


downloaded at http://members.tripod.co.uk/nskid/test.zip the exe is in there, that why it 1.66 mb

Skid
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 5th Oct 2002 21:22
I like it.

"If you can't make it good
make it look good."
Bill Gates
Dgamer
22
Years of Service
User Offline
Joined: 30th Sep 2002
Location:
Posted: 6th Oct 2002 20:42
ITS SUPPOSE TO BE ONLY 20 LINES

Dgamer
22
Years of Service
User Offline
Joined: 30th Sep 2002
Location:
Posted: 6th Oct 2002 20:43
oops... forget what i said

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 6th Oct 2002 22:17
Line 9 exceeds 25 chars in length, try again!

I love Star Trek.
Especially the Episodes with Starships in.
Skid
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: United Kingdom
Posted: 6th Oct 2002 23:22
it is only 19 lines count again, and no one said that the lines had to be less then 25 chars, that why the download has it in a better formated vertion beside, i got an extra line so all i need to is cut the last command of line 9 really :p

Skid
Skid
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: United Kingdom
Posted: 3rd Nov 2002 01:58
Go to http://www.darkbasicpro.com/apollo/view.php?t=985&b=8 and see what this old 20 line has chaned into with about another 650 lines of code

Skid
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 5th Nov 2002 02:42
Less than 25 characters? Nope - definitely not a requirement I think he might have meant "less than 250k" but that's for media, not the final EXE - even DBPro doesn't make an EXE smaller than 250k

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 6th Nov 2002 00:12
I think he means less than 256 characters - DB can only handle 255 or less characters per line, an error is returned if the line is longer than that. That's why my programs need a little re-arranging before they run in DB, with 363 and about 500 chars. Actually the second one won't run in DB because it needs DBPro specific commands.

I can't seem to get the exe's below 4mb for some reason, is there any way to get them smaller?
CD On CD
22
Years of Service
User Offline
Joined: 23rd Sep 2002
Location: United States
Posted: 10th Nov 2002 03:42
19 lines / 256 characters.......
VERY N I C E !!! (IMHO)

United We (Still) Stand

Login to post a reply

Server time is: 2024-11-21 12:25:56
Your offset time is: 2024-11-21 12:25:56