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.

Newcomers DBPro Corner / Solar System

Author
Message
jomo
22
Years of Service
User Offline
Joined: 31st Oct 2002
Location: Ireland
Posted: 3rd Nov 2002 21:10
Hello
i dont know if this is the right topic section, but anyway...i am a newcomer.

i made this little solar system thing and was wondering what everyone tought about. any comments, good or bad (cant beat a bit of constructive critism), would be appreciated but please keep in mind its only like my second (working) program. the code ended up being really long, is there a more efficient way to code it

Slan,Tabhaire aire duit fein!
jomo

Cpt Caveman
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: New Zealand
Posted: 4th Nov 2002 01:50
Hey, thats pretty cool, I had to change the sync rate to 100 as 600fps was to fast
Puffy
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 4th Nov 2002 04:32
hey would it be ok if i took your code updated it added textures... comets... that kind of stuff.. you know spaceships... and make it a revised solar system ????.... i was making one that use your exact math... i kinda... lost it... and was too lazy to remake it... =D it was really nice... had everything like a real one... educational... =\... sigh... that was 2 years ago... =P ... hey im gonna be in the oldbie game yessssss.... im as old as they come...

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/2.5mbs Sat Con... I joined in!
jomo
22
Years of Service
User Offline
Joined: 31st Oct 2002
Location: Ireland
Posted: 4th Nov 2002 16:10
DarthPuff, No problem, of course you can use it..
all i ask is to see the finished program when your done..
it sounds really cool what your trying to do.
actually i might give it a go myself (its the only way ill learn )

good luck
jomo

ps. was it really necessary for the code to be so long..
was there a quicker way of doing it?
jomo
22
Years of Service
User Offline
Joined: 31st Oct 2002
Location: Ireland
Posted: 4th Nov 2002 16:13
by the way, if anyone wants to use the code please feel free to do so.

slan
jomo
ChipOne
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Canada
Posted: 4th Nov 2002 17:51
jomo: one thing that i like to do is move the constants into a seperate file. doesn't work for posting on the forum, but helps keep the code simple.

constants can be declared as:
#constant JUPITER_MOON_1 51

the other thing i would do is create three functions to encompass the other work you have:
DrawInstructions()
DoKeyboardInput()
UpdatePlanets()

your main game loop would then look like this:

To take that one step further, you could put your functions into a seperate file of their own. When you have a bigger project, you would want to group similar functions together into their respective files (i.e., i put all text-drawing functions into a file called text.dba).

good start here!

cheers

-= i only do what my rice krispies tell me to do =-
Puffy
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 5th Nov 2002 04:46
ill fix up a nice one for you =)

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/2.5mbs Sat Con... I joined in!
jotomicron
22
Years of Service
User Offline
Joined: 17th Nov 2002
Location: Portugal
Posted: 18th Nov 2002 00:55
Hey. That's pretty kool.
Now you should try to make an option such as:
selecting a planet of origin;
selecting a planet of destination;
the camera should then go to origin, pointing to destination.
making textures; setting background stars!

I'm not criticizing your work. I really like it!
But, if i were you, i'd make that...

Login to post a reply

Server time is: 2024-11-23 18:14:05
Your offset time is: 2024-11-23 18:14:05