Author Topic: flixel v2.35 + new git branch "beta"  (Read 3387 times)

Adam Atomic

  • Founder
  • Key Contributor
  • *****
  • Posts: 852
  • Karma: +0/-0
  • new dad
    • View Profile
    • Adam Atomic
flixel v2.35 + new git branch "beta"
« on: Mon, Apr 19, 2010 »
Hey dudes!  Update time.  Fixed some annoying things, added a beta test of bounding box displays, and I created a new code branch.  There are now THREE code branches on github:

1 - MASTER branch - this is the equivalent of any "stable" release of an API or codebase

2 - BETA branch - this is a relatively stable but not fully tested version with few/no API changes.  This is essentially where stuff that is being considered for the MASTER branch will live.

3 - DEV branch - this is the public mirror of my own personal development version of flixel.  Currently it is in sync with beta but this will likely NOT be the case starting sometime soon.  Maybe once or twice a year possible game-breaking changes could move from dev into beta, to be tested and refined and eventually make it into the master release!

I will present these different options nice and clear on the flixel homepage soemtime soon, but the easiest way to think of them is master is pretty safe, beta is more advanced but less safe, dev is probably not very safe at all but will have weird new things in it!



v2.35 Change List:

Code: [Select]
> FlxEmitter: smarter default delay value
- 3 seconds for explosions
- 0.1 seconds for streams
> FlxG.showBounds
- set to 'true' to show bounding boxes
- still misses some objects, re-toggling usually fixes
- NO automatic hotkey for this option/behavior, but code is easy
> if(FlxG.keys.justPressed("B")) FlxG.showBounds = !FlxG.showBounds;
> FlxU: changed default quad tree world size + position
- now set to FlxG.width by FlxG.height at 0,0
> FlxSprite: optimized loadRotatedGraphic()
> FlxText: now supports non-embedded fonts

You can check out the new bounding box stuff by pressing the 'B' button on any of these demos:

http://flixel.org/flxcollisions/
http://flixel.org/flxinvaders/
http://flixel.org/flxteroids/
http://adamatomic.com/mode/


All these v2.35 changes were submitted to the dev and beta branches ONLY, and will only be available on master once they've been vetted and tested a bit more.

Garmichael

  • Member
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: flixel v2.35 + new git branch "beta"
« Reply #1 on: Wed, Apr 21, 2010 »
I found a bug, I think. Before updating to this version, I was using a tileset with a width of 3072 and it worked fine. I updated, and it threw an error. It will now only work if my width is less than 2880.

Here is the error I got:

Code: [Select]
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData()
at org.flixel::FlxG$/createBitmap()[C:\Documents and Settings\brightg\Desktop\HeroShipF\flixel\org\flixel\FlxG.as:522]
at org.flixel::FlxTilemap/generateBoundingTiles()[C:\Documents and Settings\brightg\Desktop\HeroShipF\flixel\org\flixel\FlxTilemap.as:192]
at org.flixel::FlxTilemap/loadMap()[C:\Documents and Settings\brightg\Desktop\HeroShipF\flixel\org\flixel\FlxTilemap.as:174]
at State_Level1/create()[C:\Documents and Settings\brightg\Desktop\HeroShipF\lib\State_Level1.as:77]

Line 77 in State_Level1 is where I set map_top.loadMap(new CSV_top, Img_top, 32); where Img_top is the tileset with a width greater than 2880.

Adam Atomic

  • Founder
  • Key Contributor
  • *****
  • Posts: 852
  • Karma: +0/-0
  • new dad
    • View Profile
    • Adam Atomic
Re: flixel v2.35 + new git branch "beta"
« Reply #2 on: Fri, Apr 15, 2011 »
Hmmm - has something to do with generating the bounding box display version of the tiles, which you can just comment out i think.  V2.50+ doesn't do bounding box display that way anymore though