B2D to B+

BlitzPlus Forums/BlitzPlus Programming/B2D to B+

Tokra(Posted 2003) [#1]
I have just downloaded the Blitz Plus demo to evaluate it before I purchase a copy, I have discoved that some of the games I have writen in B2D no longer work correct in B+ or just kill my XP install. Will the games nead rewriting to make them compatable with Blitz Plus, they work Ok in Blitz 3D.. But not B+

Why, Mark Help!!!


ford escort(Posted 2003) [#2]
there's small difference beetween B+ and B2D
what kind of trouble do you have with your games?
try to change the graphics MODE settings

graphics width,height,bitdepth,MODE

also try to run in debug mode, you'll see where the code fail.


Tokra(Posted 2003) [#3]
I tryed debug and it lock XP up.


Hotcakes(Posted 2003) [#4]
What version is the B+ demo at? The latest B+ update (and ones before it:) fix a heap of troubles people were having. It's almost perfect now... Almost ;]


Nebula(Posted 2003) [#5]
The best is to use the canvas instead of a graphics buffer. Open a graphics mode and a window and a canvas on top.

The game loop also should be inside the timer tick($4001) Create a timer for this.


Mark Tiffany(Posted 2003) [#6]
There is a short guide to migrating from B2d to B+ in the User Guide. The key thing that will be missing from the demo that has been addressed since is WaitTimer. This has now been re-instated, so you don't have to rewrite all your timing code to deal with events. The other things that catch some people out is the change to Print / Input and the removal of Locate (although unless you have a _really_ simple game, I'd be surprised if you use these).

You may also experience slowness at first, but later updates address this, plus if you start to use the new LoadImage flags (to force gfx into appropriate memory), and the new locked buffers, you can achieve must faster per pixel operations.

The only other thing that caught me out was that each buffer now has it's own set of colors. You can't assume that Color 255,255,255 will change the pen on all buffers, you must set it for each one as you use it.


Tokra(Posted 2003) [#7]
I still can't get my Ciity defender game to work in B+, oh well I still buy it and just rewrite it, it needed a rewrite ne ways.

The only draw back and this is no critisisum on B+ or Blitz there no way to use access databases.. :(( :((