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.

2D All the way! / 2d nebula

Author
Message
aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 29th Sep 2007 23:09


Your signature has been deleted by a moderator because this joke is getting old.
Pyramid Games Ltd
16
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 29th Sep 2007 23:31
Wtf?

LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 30th Sep 2007 01:09
You might want to mention that this is for DBP. I would think it would be cool if you could have it move toward you to make it look like you are flying through it. Nice effect for so few lines.

LB
aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 30th Sep 2007 01:26
If I could figure out how this works...

Your signature has been deleted by a moderator because this joke is getting old.
Pyramid Games Ltd
16
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 3rd Oct 2007 22:26
How your code works? Surely to God you know.

I made you a cookie, but I eated it....
aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 4th Oct 2007 04:50
And If I zoomed in, it would just create a fractal like pattern, I know that much...

Your signature has been deleted by a moderator because this joke is getting old.
Mortus
17
Years of Service
User Offline
Joined: 14th Dec 2006
Location: Illinois
Posted: 14th Oct 2007 19:10
Here is a zooming in copy of the program (DBP)

LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 14th Oct 2007 21:53
Mortus

Nice work, but even my reasonably fast computer has trouble with it as you get closer.

LB
Alsan
18
Years of Service
User Offline
Joined: 20th May 2005
Location: Germany - Nähe Kassel
Posted: 21st Oct 2007 22:33 Edited at: 16th Nov 2007 16:27
You should use "lock pixels" and "unlock pixels".

It way faster with that, though it still gets terribly slow when the nebula gets bigger.



LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 21st Oct 2007 23:35
WK

You are right, it was worth mentioning. I guess I'm a little weary of all the flaming I see on these forums anymore. Also, it seems nearly impossible to convince people that use goto that it is poor programming practice. I don't want to see this thread end up with the goto/no goto argument.

LB
aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 23rd Oct 2007 02:30
woah! People having been tampering!
1. G0t0? No! Its like poor paragraph structure!
Anyway, man I wish I could see zooming in, but it doesn't work for me (but it didn't work when I first sent the code out either...)

Hi. I am sorry for being a random n00b. I got carried away and started posting to much. Then again I am a little kid.
This has been a public announcement by John- who wants a taco.
aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 23rd Oct 2007 03:04
Quote: "REM Project: rotation
REM Created: 9/28/2007 5:47:55 PM
REM
REM ***** Main Source File *****

squaresizex = 30
squaresizey = 30
angle as float

Dim ang(squaresizex-1,squaresizey-1) as float
Dim dist(squaresizex-1,squaresizey-1) as float

For x = 0 to squaresizex-1
For y = 0 to squaresizey-1
halfsizex = squaresizex/2
halfsizey = squaresizey/2
ang(x,y) = atanfull(x-halfsizex,y-halfsizey)
If sin(ang(x,y)) <> 0
dist(x,y) = y/sin(ang(x,y))
Else
dist(x,y) = 0
Endif
Next y
Next x


Do
cls
angle = angle + 1
squaresizex = squaresizex + 1
squaresizey = squaresizey + 1

Dim ang(squaresizex-1,squaresizey-1) as float
Dim dist(squaresizex-1,squaresizey-1) as float

If Screen Width() < squaresizex
Lowerx = Screen Width()/2
Else
Lowerx = squaresizex/2
Endif
If Screen Height() < squaresizey
Lowery = Screen Height()/2
Else
Lowery = squaresizey/2
Endif

For x = halfsizex-Lowerx+1 to halfsizex+Lowerx-1
For y = halfsizey-Lowery+1 to halfsizey+Lowery-1
If x < squaresizex and x > -1 and y < squaresizey and y > -1
halfsizex = squaresizex/2
halfsizey = squaresizey/2
ang(x,y) = atanfull(x-halfsizex,y-halfsizey)
If sin(ang(x,y)) <> 0
dist(x,y) = y/sin(ang(x,y))
Else
dist(x,y) = 0
Endif
Endif
Next y
Next x

For x = halfsizex-Lowerx+1 to halfsizex+Lowerx-1
For y = halfsizey-Lowery+1 to halfsizey+Lowery-1
mx = (sin(ang(x,y)+angle)*dist(x,y))+300
my = (cos(ang(x,y)+angle)*dist(x,y))+350
if mx > 0 and mx < Screen Width() and my > 0 and my < Screen Height()
Dot mx,my,RGB(255,255,255)
endif
Next y
Next x
Sync
Loop"


Hi. I am sorry for being a random n00b. I got carried away and started posting to much. Then again I am a little kid.
This has been a public announcement by John- who wants a taco.
Mr Kohlenstoff
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 16th Nov 2007 14:52 Edited at: 16th Nov 2007 14:53
Looks cool.. but again, use lock and unlock pixels (memblocks would be even better).

(Edit: Ooops, I didn't realize the thread is so old. )

Login to post a reply

Server time is: 2024-05-18 11:26:17
Your offset time is: 2024-05-18 11:26:17