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 / Star Effect

Author
Message
Digger
19
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 15th Dec 2002 08:59
This code was written for DB 1.13

sync on: hide mouse: autocam off: create bitmap 1,128,128
for k=1 to 720: ink RGB(255,0,0),0: a#=k: line 64,64,64+60*sin(a#/2),64+60*cos(a#/2): next k
for k=1 to 720: ink RGB(254,96,1),0: a#=k: line 64,64,64+40*sin(a#/2),64+40*cos(a#/2): next k
for k=1 to 720: ink RGB(255,153,0),0: a#=k: line 64,64,64+20*sin(a#/2),64+20*cos(a#/2): next k
blur bitmap 1,8: get image 1,0,0,128,128: delete bitmap 1: position camera 0,200,0
for k=101 to 200: make object plain k,15,15: ghost object on k: texture object k,1: next k
for k=1 to 5:make object box k,10,10,2:color object k,RGB(255,0,0):next k: color backdrop 0
position object 1,0,0,100: for k=2 to 5:yrotate object k,object angle y(k-1)+72:move object k,100:next k
for k=1 to 4:point object k,0,0,0:next k
do: if d
Digger
19
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 15th Dec 2002 09:02
...ok this did not work.
one more time.



DEANO
20
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United States
Posted: 15th Dec 2002 17:00
Very cool! I like it. Nice job!!



DEANO

"In this house we obey the laws of thermodynamics!"
--Homer Simpson, in response to Lisa's perpetual motion generator
PiratSS
20
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 18th Dec 2002 01:10
Indeed,

good work!

can me a menu, hint hint!

I am the greatest thing since sliced bread!!
n3t3r453r
20
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Russia
Posted: 22nd Dec 2002 17:52
There is no anything on my screen, only dark box
Hockey07
19
Years of Service
User Offline
Joined: 18th Dec 2002
Location: United States
Posted: 22nd Dec 2002 18:23
All I get is a black screen...

Rob K
Retired Moderator
20
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Dec 2002 22:12
me too... but it was written for DB 1.13 and it works fine under DB classic.

However this version works mostly correctly under DBP.

It seems that DBP won't accept

sync: loop

but it will accept

sync
loop

for some strange reason.

So here is the 20 line version modified to work with DBP (I have also added a frame rate limiter because it was way to fast otherwise):



NOBODY has a forum name as stupid as Darth Shader. I do.
MrTAToad
20
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 23rd Dec 2002 14:20
Very good - there's a lot of tearing though...

Good news everyone! I really am THAT good...
Oh my, yes...

Login to post a reply

Server time is: 2022-11-29 14:46:03
Your offset time is: 2022-11-29 14:46:03