Blitz2D to BlitzMax command comparison?
BlitzMax Forums/BlitzMax Beginners Area/Blitz2D to BlitzMax command comparison?
| ||
Hi all, I have finally got round to applying myself to learning BlitzMax after completing a few 2D games using Blitz3D. My first task is to try and convert my Blitz3D code to BlitzMax. I immediately hit the challenge of finding out which Max commands replace 3D ones (eg. SetClsColor instead of ClsColor, DrawText instead of Text, no CopyRect or SetBuffer... etc.). Is there a comparison chart anywhere which lists these for noobs like me? Also - I am assuming the Strict command behaves similarly to VB's Option Explicit command, but what does SuperStrict do (the help helpfully says 'Set SuperStrict mode'!!)? |
| ||
Blitz3D code to BlitzMax 1) http://www.blitzmax.com/Community/posts.php?topic=41179 A Sticky2) USe MiniB3D 3) Re SuperStrict, it make the code faster, so just use it. |
| ||
Thanks H&K. Goodness knows how I failed to spot that thread... :0/ |
| ||
Actually - that thread wasn't quite what I was looking for, but it was a good start. I was hoping that BRL might have created a concise 2D "B3D command = ???, for MAX use ???" conversion table. Still I'm getting there - albeit slowly. Can anyone please tell me if there is a 'type tag' for Long variables? The docs only mention Int, Float, Double and String. |
| ||
Can anyone please tell me if there is a 'type tag' for Long variables? %% That and some other useful bits are in this thread: http://blitzbasic.com/Community/posts.php?topic=49795 |
| ||
Why or how does superstrict make the code execute faster? |
| ||
Well the main one is that it nearly always makes a begginer use the proper type rather than letting the the compiler create an int pointer to the type. But mostly the reason I think it makes the code faster, is cos one of the posters who I trust (cannot remember who) said it would. EDIT: It was something about variable optimization, but I cannot find the link, sorry |
| ||
http://www.blitzbasic.com/Community/posts.php?topic=67282 |