RSS

Archive for the ‘mbmFramework’ Category

How long are 10 seconds?

Tuesday, April 27th, 2010

A useful little game here for anyone interested in learning the inner workings of the mbmFramework, or even if you fancy a quick challenge on a competition themed game :)

Thaaks has released the full source to his game “How long are 10 seconds”.  Read about it and download it from here.

mbmFramework V1.6 released

Friday, March 5th, 2010

What’s new? A few major things..

  • Sprites can now be procedurally generated and still managed by the system, just the same as sprites loaded from disk via resource scripts. There’s a new sample that shows just how this is achieved.
  • You can write your own custom sprite animators. I’ve already provided animator code for Sine waves, Linear Interpolate, Bouncing and Accelerate/braking, and they’re used extensively to animate the GUI elements and all kinds of things. Now it’s possible to extend this animation system with your own code. The animator sample has been updated to show how it’s done.

And a few minor things… see the changelog.

:)

This sample (check out sample #6) shows 100 sprites that have been procedurally generated to have bitmap animations as well as scripted animators acting on them.  I used a simple blue ball image, and overlaid the yellow spot in several places to generate a turn left/right animation.  It looks better in motion!

mbmFramework V1.5 released and tutorials continued..

Thursday, February 25th, 2010

Version 1.5 makes a couple of potentially project breaking changes, but they are quite minor;

  • The AppModule Draw method no longer requires the sync:int parameter
  • Updating the Sprite deltatime no longer accepts a float delta, it requires a millisecond integer value just as the rest of the framework uses.

The tutorial code is now available right up to and including adding the high scores.

:)

mbmFramework V1.4 released and tutorials started!

Thursday, February 18th, 2010

The tutorials are underway and the very first one exposed some omissions from the framework.  First of all there was no way to work with individual X and Y values for a sprite without accessing their fields directly.  Not that there’s too much wrong in that, but I’d prefer it wasn’t necessary anywhere in the framework code.  Once users are happy using fields directly it can cause chaos when they begin accessing those they shouldn’t.  (For non Blitzmax readers; while Blitzmax handles OOP, Polymorphism and Inheritance it is rather lacking in the Public / Private department).

Another thing missing was a simple way to handle lots of sprite objects.  I always use a list of free sprites that I create at start up, then take one from it everytime I need one and put it in a list of live sprites.  The live sprites are drawn, updated and used for collision detection etc.  When one of those live sprites is finished with, I take it out of the live list, and put it back in the free list so it can be recycled.  Simple enough.

Except, I’ve added a SpriteList type to the framework to handle this for you.  I’ve also updated the first tutorial to use this new type.

:)

mbmFramework V1.3 and new Particle Editor released

Monday, February 15th, 2010

I’ve added some new parameters to the particle system to allow more emitter types.  You can now;

  • specify a random scale range for particles to spawn at

  • have a cone angle at which particles escape from the emitter
  • give an emitter an angular direction

  • spawn particles at a min/max distance from the emitter

Not big news, but not being able to do this was a bit of a glaring omission.  I’ve also tweaked the editor to run at 60FPS from the original 20.

The particle editor comes with render source code so it can be used seperately (and freely) from the mbmFramework.

mbmFramework V1.2 released

Wednesday, February 10th, 2010

I’ve brought the framework release up to the latest version (V1.2).  That can be found in the usual Downloads section.  I’ll also try and keep the Changelog viewable online too, along with the documentation.

Happy coding!

Framework update…

Tuesday, February 9th, 2010

There’s a new version of Gem Smasher available today in the Download section (V0.52).  I don’t send this out for beta testing so please comment or email if you have any issues with it!

Work continues on the framework, which is the reason for the updated game release.  I’ve greatly improved the timing system and it now defaults to vsync on for a smoother experience that stresses the CPU much less too.  I’ve also added a simple profiler to allow you to track where your code is spending its time.

A full release of the latest framework will come in the next few days.