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.

DarkBASIC Discussion / Question re. Porting a DBC game to DBP ?

Author
Message
DemonHill
17
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 1st Jun 2008 16:22
Hi, I own both DBC & DBP. I have written a large racing game in DBC which I started years ago, however I am thinking of porting to DBP.

Q. What should I be aware of as far as command issues ?

Q. Any guide to help me i.e command equivalents for DBP.

Many thansk for any constructive advice.. thx
pcRaider
18
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 1st Jun 2008 17:28
A method of transfer from DBC to DBP.
There is addition and deletion of a command and can find this by an error check.

About a part without an error.
Speed becomes fast.
This changes it of SYNC RATE.

shift matrix up
shift matrix down
This is reversed.

randomize matrix
You must use UPDATE MATRIX.

Numbers of a LIMB command are different.

GET IMAGE command makes a flag 1.

There is it a lot.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 1st Jun 2008 22:42
The core commands are essentially the same, but how those commands work have changed in a lot of cases.

Altering a matrix has always required Update Matrix - even in DBC.

Another change in DBP is often where you need to place a Sync. Often, a Sync in DBC isn't required in DBPro and when not required in DBC it is in DBPro.

Where to place/not place them is the tricky question...

TDK_Man

Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 2nd Jun 2008 04:58
Scope is one of the bigger language differences between DB and DBPRO. In DB variables inside a functions remain static, which is not the case in Dbpro.

This isn't a big deal if your DB program doesn't use this feature, but I might be if it does. Since it'll compile and run in DBpro, but just not function the same.


Ie.


If you call this function in DB each update, it'd return a value that keeps on increasing.

However if you call it in DBpro it'll return 1 always.

Login to post a reply

Server time is: 2025-06-05 21:18:07
Your offset time is: 2025-06-05 21:18:07