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 / rpg's in dbc

Author
Message
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 18th Aug 2003 21:46
I am making a short one level 3d rpg in dbc...it is coming along fine, but i need to know one thing...i can code just about everything, dialog,movement, battle and such, but what gets me is....how do i put it all together in to a game? could someone explane the process? thamx.
"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."
k0shi
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location: Cyberspace
Posted: 18th Aug 2003 21:48
use lots of gosubs

Learn as if youll live forever
And give as if youll die tomorrow.
haXor
21
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 18th Aug 2003 22:13
lol true that. lost of gosubs, no gotos

Sup Kids
dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 18th Aug 2003 23:52
My simple way of programming anything is:

STEP 1
definition of all global variables and types
definition of all utility function (if you need)

STEP 2
initialization of all variable

STEP 3

WHILE (end ocndition)
gosub controlMouvements
gosub controlCollision
gosub refreshScreen
...

WEND

STEP 4
definition of end action of the game or reload

STEP 5

definition of all subs in the STEP 3


The idea is :
every sub controlXXX verify the state and eventually change the values of the variables.

i hope you understand.

MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 19th Aug 2003 06:51
Just try your best to avoid spaghetti coding though. You really would need things to jump around in an organized fashion. If you know what I mean.



A book? I hate book. Book is stupid.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 22nd Aug 2003 05:38
learn functions and types with arrays.

Its madness otherwise

Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 22nd Aug 2003 22:46
thanx all

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."

Login to post a reply

Server time is: 2024-09-20 19:38:26
Your offset time is: 2024-09-20 19:38:26