HaxeFlixel/flixel-addons

Transitions fail to load built-in sprite graphics on HTML5 target

JesseTG opened this issue · 1 comments

On desktop, transitions work exactly as I would expect them to.

However, on web browsers, I get this:

screenshot at 2017-01-01 19-15-39

Looking at the image cache, the transition tile sprites are loaded.

screenshot at 2017-01-01 19-17-57

All of my states extend FlxTransitionableState, and the code that specifies transition behavior is as follows:

FlxTransitionableState.defaultTransIn = new TransitionData().init(
  color = 0xFFFFFFFF,
  type = TransitionType.TILES,
  direction = FlxPoint.get(1, 1),
  duration = 0.25
);

FlxTransitionableState.defaultTransOut = FlxTransitionableState.defaultTransIn;

Other potentially useful information:

  • There are no error messages
  • Dead code elimination doesn't seem to be the culprit

The culprit is openfl/openfl#682.