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 / Cosmic Spheres

Author
Message
Overdroid
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location:
Posted: 2nd Oct 2002 10:14
Here is my submission. Sort of like being inside a lava lamp. Use the mouse to look around and center on the spheres and push the button to change them.

REM COSMIC SPHERES by OVERDROID
REM www.overdroid.com - overdroid@earthlink.net
REM 2002, Oct 1st

REM SET UP 9 lines
sync on : sync rate 0 : hide mouse :dim spheremove#(3,51) : floor=-300
load sound "change.wav",1 :load music "back.mp3",1: musicspeed#=music speed(1)
create bitmap 1,65,65:ink RGB(255,255,255),RGB(0,0,0):...
for x=1 to 10 : circle 25,25,(4*x): next x
get image 1,1,1,5,65 :set current bitmap 0
make particles 1, 1 , 20, 30: position particles 1, 0, 300,0 : show particles 1 :...
set particle gravity 1,5 : set particle floor 1,0
make light 1: position light 1, 0,0,0 : set light range 1,300: show light 1 : set particle life 1, 50
for x=1 to 50 : make object sphere x, 100, 5, 5: gosub sphererand: ghost object on x:...
move object up x,rnd(100)
texture object x,1: scale object texture x,(rnd(200)/50),(rnd(200)/50): next x :...
loop music 1
make camera 1 : position camera 1, 0, 0, 0 : color backdrop 1, rgb(0,0,0) : backdrop on 1 :...
set camera range 1,1,250

REM MAIN LOOP 7 lines
while returnkey()=0:...
turn camera right 1,mousemovex()/2 : pitch camera down 1,mousemovey()/2
for x=1 to 50: move object up x, spheremove#(0,x): move object x, spheremove#(1,x): ...
dec spheremove#(0,x),.005: if object position y(x)250 and object screen x(x)200 and object screen y(x)
"Talk is cheap because supply exceeds demand."
- Unknown.
Overdroid
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location:
Posted: 2nd Oct 2002 10:16
Ok, what's the story? I added the code tags?



One of my lines had 11 commands so I'm counting that one as 3 lines.

Media files:
http://home.earthlink.net/~jlimbau1943/media.zip

Executable:
http://home.earthlink.net/~jlimbau1943/spheres.zip

Enjoy!

"Talk is cheap because supply exceeds demand."
- Unknown.
Overdroid
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location:
Posted: 2nd Oct 2002 10:17
Odd how those don't work sometimes.



"Talk is cheap because supply exceeds demand."
- Unknown.
Overdroid
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location:
Posted: 2nd Oct 2002 11:47
Also, forgot to mention - this is for DBP only.

"Talk is cheap because supply exceeds demand."
- Unknown.
Matto
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 2nd Oct 2002 15:37
cool

1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
Petter
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 2nd Oct 2002 20:37
The sound is stuttering, because the mp3-file is 56 kbits/s.

I only get clean sound if the mp3-files is in 128 kbit/s format.

-->>PETTER<<--
Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 2nd Oct 2002 23:26
Very cool - doesn't adhere to the rules though but only because the media files are so large - for 19 lines I still think it looks bloody great though!

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Overdroid
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location:
Posted: 3rd Oct 2002 04:25
Perhaps I am misunderstanding something. We are allowed 200KB of media, correct?

The only external media with the program are two sound files amounting to 47K total (32 and 15).

What am I missing?

"Talk is cheap because supply exceeds demand."
- Unknown.
Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 3rd Oct 2002 15:29
Nothing, I calculated the size of the folder using Windows explorer and forgot it had compiled the exe in there! (hence why it came out at 1.8megs). Ignore me

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming

Login to post a reply

Server time is: 2024-04-25 10:45:15
Your offset time is: 2024-04-25 10:45:15