Variable Names
This is a Blue IDE thing. Blue doesn't cope very well with variable names the same as command names. Which is good in my opinion.
RGBR => RGBRR
RGBG => RGBGG
RGBB => RGBBB
Missing Media
Robin.bmp is missing. Created a simple graphic. It appears in "about the Author".
The Mouse
This was a problem. It moved left and right, but it wouldn't move up and down.
I had this thought in the back of my mind that mousemovex and mousemovey lose their values once you've queried them. So I found the first reference to them in the main loop, and loaded them into 2 variables. Everywhere else, I reference the variables instead of the commands.
Eventually found all references to mousemovey(), replaced all, and it now runs smoothly.
This may cause problems elsewhere, in sub-loops, but I'll deal with them as they arise.
Functions
Magic World doesn't use functions. This is my prefered method of coding, so I will be moving functionality block by block as and when possible. I obviously only want to do this once I know the specific code works in Pro, so it will be an "as and when" process to the very end.
The Initialisation and Splash screen are moved. Loading resources has also moved. I've discovered in this process that DB Pro doesn't take kindly to DATA statements in functions. Or maybe it's in include files, I don't know at the moment. So DATA statements will, for now, be dispersed across the code. And there is a lot of them!
Variables
In order to allow functions to run as expected, and also to consolidate declaration of variables, I have started to move them into a global declaration area.
I'm also moving the initialisation of this data too. Again, it's down to the way I like to code, not because of technical issues.
Static Objects
Static Object code removed. This is a DB Classic thing, not available in Pro.
Because I can't test this yet, I've left in the Load and Save routines - it just doesn't load static objects or create new ones!
This will also aid backward compatibility.
BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply