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.

Code Snippets / Random Galaxy

Author
Message
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 13th Jun 2006 02:40
hey all, i made a galaxy engine that shows to people how to create a good galaxy view with full camera movement. (A/S/D/W keys + Shift to speed up) and Mouse to rotate the camera.

anyways, in this snippet it shows how to:
1) create an images with inside the darkbasic pro without using some extra media files and no memblocks at all.

2) shows how to make full functional camera movement

3) shows how to use RND command clearly.

4) and also shows how to use the "Object In Screen" command to save FPS rate.

- 120 lines of code.
no gray comments. just ask questions here..

enjoy =]

MyNewSite:http://gogetax.com
Forums(About BLO and more):http://gogetax.com/forum
lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 16th Jun 2006 01:46
I didn't remember stars and such being so colorful, but still a nice and cool snippet.
NeX the Fairly Fast Ferret
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 19th Jun 2006 00:11
They are, it's just that the only cells in our eyes capable of picking up light from stars see in greyscale.

<OMG></OMG>
NeX, you cant be serious - CattleRustler.
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 19th Jun 2006 18:14 Edited at: 19th Jun 2006 18:47
here is an update:



now the farest stars are glowing

MyNewSite:http://gogetax.com
Forums(About BLO and more):http://gogetax.com/forum

Attachments

Login to view attachments
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 19th Jun 2006 18:54
it seems like white starts looks better here..



MyNewSite:http://gogetax.com
Forums(About BLO and more):http://gogetax.com/forum
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 19th Jun 2006 21:22
Very nice!

Try some falling stars (quickly stretch/unstretch them while moving to keep polies low)

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 19th Jun 2006 22:14
that actually gave me an idea what can i put into the code..

lemme see what i can do

MyNewSite:http://gogetax.com
Forums(About BLO and more):http://gogetax.com/forum
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 20th Jun 2006 21:08
oh nvm..
i thought i would be able to make a blur inside the game but it seems like my old function is not working anymore for some reason.

anyways, what are you mean by falling stars Sven B? like make them fall from Y = 0 to end of the screen heigth?

MyNewSite:http://gogetax.com
Forums(About BLO and more):http://gogetax.com/forum
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 22nd Jun 2006 19:05
ok

What I was thinking about:

First state:
o = center


When it's on it's full length:


And then it scales back down, but towards the end:


That was my idea . So you can still use 1 plain object for the falling stars too...

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 23rd Jun 2006 02:20 Edited at: 23rd Jun 2006 02:36
Here's a different way of making the star textures:

Now the stars are perfectly circular and at the edges of the image the star is completely black so you don't see the edges of the plain.

Edit:
It looks really crazy when you make the stars bigger, might make for a nice screen saver or something:
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 23rd Jun 2006 21:55
nice way with the memblocks.. but i never used them actually..

MyNewSite:http://gogetax.com
Forums(About BLO and more):http://gogetax.com/forum

Login to post a reply

Server time is: 2024-11-23 03:59:19
Your offset time is: 2024-11-23 03:59:19