GithubHelp home page GithubHelp logo

flixel-haxe's People

Contributors

alijaya avatar domrein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

alijaya zilbuz

flixel-haxe's Issues

Class cast error on FlxSprite : 569

In renderSprite(), if the advanced renderer is used, there is a class cast error when using flash9. This is because it's impossible to cast a String into a BlendMode.

I resolved this by changing the property "blend" in FlxSprite from String to BlendMode and by removing the cast. It works fine for flash9 but I didn't try to compile for another target.

Default Control Overlay

Create a default control overlay for games on iOS. This overlay should support the default Flixel controls (arrow keys and x,c). The default overlay class should fire the appropriate "keyboard" inputs so that input methods are compatible across platforms.

Implement DrawTiles

Use DrawTiles instead of CopyPixels for a performance boost when rendering on iOS.

Some Bug in FlxGame

okay... i have just tried this engine...
and found a bug...
in FlxGame, line 502
this line
switchState(Type.createInstance(Type.resolveClass("PlayState"), []));

must be
switchState(Type.createInstance(_iState, []));

FlxSound "playing" field does not correctly update when engine is paused while sound is playing

When the game engine is paused while a sound is playing, that sound's SOUND_COMPLETE event doesn't get hooked back up when the engine is un-paused and thus the playing field incorrectly indicates that the sound is still playing.

The play() function in the FlxSound.hx file should be changed to:

public function play():Void
{
if(_position < 0)
return;

if(_looped)
{
    if(_position == 0)
    {
        if(_channel == null)
            _channel = _sound.play(0,9999,_transform);
        if(_channel == null)
            active = false;
    }
    else
    {
        _channel = _sound.play(_position,0,_transform);
        if(_channel == null)
            active = false;
        else
            _channel.addEventListener(Event.SOUND_COMPLETE, looped);
    }
}
else
{
    if(_position == 0)
    {
        if(_channel == null)
        {
            _channel = _sound.play(0,0,_transform);
            if(_channel == null)
                active = false;
            else
                _channel.addEventListener(Event.SOUND_COMPLETE, stopped);
        }
    }
    else
    {
        _channel = _sound.play(_position,0,_transform);
        if(_channel == null)
            active = false;
        else
            _channel.addEventListener(Event.SOUND_COMPLETE, stopped);
    }
}
playing = (_channel != null);
_position = 0;

}

Rounding Errors

There are several places throughout the engine where values that should be floating point are being stored as integers. This is causing several different problems.

countDead() not working in iOS sim

I have a transparent object that the play needs to collide with to update the scores, this object should be killed on collision with .kill() , the object dies but does not count the death when I use countDead(), returns "GL Error: 1282 480x25" in iOS simulator. Works in Neko target.

Reference Passing Error that causes crash

As can be seen in Mode-Haxe, when using FlxGroups and passing the members variable to other classes, the array reference is somehow changed resulting in null pointer errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.