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 / program of what earth looks like in space (DBP)

Author
Message
Gamer Making
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 30th Oct 2006 02:37
heres a good prgram for dbp:



Bach Tran
Vampiric
18
Years of Service
User Offline
Joined: 30th Oct 2006
Location:
Posted: 30th Oct 2006 17:20
where's the media for it? i seed it needs 2 models and an image

All bow down to evil
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 30th Oct 2006 22:46
main:

goto main
!!

what about do - loop?

[/center]
Currenty working for the Nvidia Game Dev Competition
Gamer Making
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 30th Oct 2006 23:21
oh i..i..i...i just-its not my code it was made by a diferent person.i dont know what goto main means.

Bach Tran
Gamer Making
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 30th Oct 2006 23:25
I know what you mean! heres the new edited one :

rem Earth Watcher
load image "stars_1.bmp",1
backdrop on
texture backdrop 1
load object "earth_2.x",1
load object "moon.x",2
position object 2,-1.2,.4,.8
scale object 2,22,22,22
main:
do
turn object right 1,.3
turn object left 2,.2
if upkey()=1 then move camera -.1
if downkey()=1 then move camera .1
loop
goto main

Bach Tran
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 30th Oct 2006 23:31
Some people like that coding style. Personally I think it looks messy, but the player of a game doesn't care how messy someone's code is, just aslong as their coding style suits them then it's nothing to worry about.

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 31st Oct 2006 00:20
There are a lot types of loops. I think the goto loop is the slowest one.

[/center]
Currenty working for the Nvidia Game Dev Competition
whipped6
18
Years of Service
User Offline
Joined: 31st Aug 2006
Location:
Posted: 31st Oct 2006 02:00
game making you cant just take someones code and post it up unless you have there permission kk and i thought you have DBC

game creator
Gamer Making
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 31st Oct 2006 22:21
oh i didnt know that im really new i dont know anything like that.

Bach Tran
Vampiric
18
Years of Service
User Offline
Joined: 30th Oct 2006
Location:
Posted: 1st Nov 2006 17:26
the goto main thing is like assembly when there was no if statemetns and high level loop constructs

All bow down to evil

Login to post a reply

Server time is: 2024-11-22 23:38:58
Your offset time is: 2024-11-22 23:38:58