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.

AppGameKit Classic Chat / Converting DBP to AppGameKit

Author
Message
kenvids1
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 3rd Mar 2019 17:29
It seems to me that there are many DBP enthusiasts out there who would like to 'convert' their Dark Basic skills to AppGameKit skills. Can we not create a thread that provides hints, tips and examples so that APG developers (who are also DBP developers) can take advantage of work they have done in the past? It could provide a rich source of resources and knowledge.
2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 6th Mar 2019 01:04
I used DBP a lot more than AGK. If I remember correctly, the syntax, data types and concept are pretty much the same.
Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 6th Mar 2019 01:48
Some tips that i find useful: most code can convert nearly 1:1, but don't get so caught up in exactly replicating what you did in dbp that you neglect to take advantage of the improvements agk provides.

Types can include arrays! (Arrays in general are improved.) https://www.appgamekit.com/documentation/guides/12_array_changes.htm

You can pass by reference to functions!

Things that were only available through plugins are now core language such as sparky's raycasting and ezrotate local/object space rotations, take a good look at the help docs to see what is available https://www.appgamekit.com/documentation/commands.html

Some things are missing like wrapvalue but people have posted a number of snippets that give equivalent functionality.
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.

Login to post a reply

Server time is: 2024-11-23 05:29:32
Your offset time is: 2024-11-23 05:29:32