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 / Ripples 'n' Lights 2!

Author
Message
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 6th Oct 2002 00:37
I think this adheres to the rules. I've tried to stuff as much as I can into the 20 lines, so users with slower computers may experience problems. Oh, and there's no external media so you can just copy, paste and enjoy! Click to create ripples on the surface. Wait a while and the lights will change colours.



I'm going on the principle that if..else..endif, for..next and do..loop are all one command each. It's for dbpro, since db can't hack the massive long line I put in the middle. If you break it down and substitute some variables it should work in db.

Tell me what you think. I get 62fps.

Btw, this is version 2 because the '' operators in the original were deleted by the code tags, so spaces either side of the operators mean it should work now.
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 6th Oct 2002 00:46
It still won't work!!! By posting exactly the same code in two code tags, one has the operators and one doesn't (this one) What do the rules say about smaller than and greater than operators since they apparently can't be displayed in code tags?
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 7th Oct 2002 10:11
try leaving a space either side of them also maybe.

if x > 40 and y < 30 then print "moo"

no website at moment
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 7th Oct 2002 20:16
Ok.

The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 7th Oct 2002 20:18
Thanks very much indi, it works! Could you give me some feedback on the (finally) working code?
Terrean
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: Netherlands
Posted: 7th Oct 2002 23:35
looks cool man

Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 8th Oct 2002 00:50
For 20 lines of code that is easily one of the best I've seen yet - superb! More more more

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Matto
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 10th Oct 2002 00:59
yes it's pretty crazy

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
kfoong
21
Years of Service
User Offline
Joined: 28th Jan 2003
Location: Australia
Posted: 18th Mar 2003 08:54
Impressive! Darthster are you a mathematician?

--------
http://www.stellarblue.vze.com/
Killer Sponge
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location: United Kingdom
Posted: 18th Mar 2003 16:22
wot ok the post reply box is WWWWAAAAAAAAAAYYYYYYYYYY off the side of the page. Newayz, I wud test, but i lack DB on the machine im on, Mite test it later. is it DB or DBPRO?

Current Project: KS Modeller Function Library & Editor
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 18th Mar 2003 16:47
great...

i have DBV1.13 ...and it work..just cut the 2 long lines..
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 18th Mar 2003 17:59
Stop hogging all the attention, I want some! Wow, for some reason it looked much more impressive in DBC.

Why the hell'd you ask me for crying out loud!?!
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 18th Mar 2003 18:42
I just ran it again and realised that this isn't the improved version. It was made in the DBPro demo, but works in DBC if you cut the long lines.

I'm a mathematician in the sense that I take maths and further maths for A-level, and I'm getting A's in both.

I do like the lights, they make a nice plasma-like effect I think.

Once I was but the learner,
now, I am the Master.
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 19th Mar 2003 05:14
I really like it and it works in the latest DBP that the DBDNERS can use on my machine anyway

PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 19th Mar 2003 17:29
Great code, it looks better than the first.

You should give us the original code without :

Cheers.

Current project for RGT:

Login to post a reply

Server time is: 2024-04-20 04:27:01
Your offset time is: 2024-04-20 04:27:01