FlixelCommunity / flixel

Community fork of Adam “Atomic” Saltsman's popular game engine Flixel. Distilled from a variety of Flash games he worked on over the last couple years, including Gravity Hook, Fathom and Canabalt, its primary function is to provide some useful base classes that you can extend to make your own game objects.
http://flixelcommunity.org/
Other
84 stars 17 forks source link

Make Flixel output a warning message when forceDebugger is used. #224

Closed Dovyski closed 9 years ago

Dovyski commented 9 years ago

The current behavior is to throw a runtime exception informing that forceDebugger is deprecated. That's too drastic.

This commit makes Flixel trace a warning message instead of throwing the exception. It's not possible to use FlxG.warnDeprecated() here because the console is not initialized yet.