Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First iteration for the new plugin system #211

Merged
merged 10 commits into from
Jun 5, 2014

Commits on May 17, 2014

  1. Initial structure.

    FlxG.signals is already working. Right now it only has a single signal (reset), dispatched when FlxG.resetGame() is called.
    Dovyski committed May 17, 2014
    Configuration menu
    Copy the full SHA
    32d0204 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2014

  1. Refactor TimeManager to use FlxG.signals.

    The TimeManager plugin is now based on the new plugin architecture. It uses signals to monitor state switches.
    
    The signal "beforeStateSwitch" was added to FlxG.signals. It is dispatched when the current state is about to be destroyed and the new state is about to be assigned as the current state.
    Dovyski committed May 18, 2014
    Configuration menu
    Copy the full SHA
    b4fd914 View commit details
    Browse the repository at this point in the history
  2. Add postDraw and preUpdate signals.

    The "postDraw" signal is dispatched after the current state has been drawn. The "preUpdate" signal is dispatched before Flixel updates the current state (and its children).
    
    Those are the signals plugins should subscribe to in order to draw on the screen or update itself along with Flixel.
    
    DebugPathDisplay and TimerManager have been refactored to rely on those signals.
    Dovyski committed May 18, 2014
    Configuration menu
    Copy the full SHA
    0d951ca View commit details
    Browse the repository at this point in the history
  3. Plugins should implement flixel.plugin.FlxPlugin

    Plugins were required to extend FlxBasic, but that makes not much sense since plugins were never added to the state display list. I've created FlxPlugin, a simple interface that makes more sense to me.
    
    Right now the only required method plugins must implement is destroy(), which is not being invoked, by the way.
    Dovyski committed May 18, 2014
    Configuration menu
    Copy the full SHA
    c38b9f5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    44557c4 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2014

  1. Move most of replay code from FlxG and FlxGame to FlxReplay.

    I just moved all replay code from one place to another. It compiles, but it's not working. The VCR code was slightly modified, but it remains in place.
    Dovyski committed May 26, 2014
    Configuration menu
    Copy the full SHA
    608e123 View commit details
    Browse the repository at this point in the history
  2. Unbelievably it's recording and playing replays :D

    The code is a mess with hacks everywhere, but I was able to save a replay session, load and play it. Best of all, it WORKED! HA! The VRC UI is not updating, I didn't test pausing/resuming/stopping the replay.
    Dovyski committed May 26, 2014
    Configuration menu
    Copy the full SHA
    2614c29 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2014

  1. Add docs.

    Dovyski committed Jun 3, 2014
    Configuration menu
    Copy the full SHA
    fca5f8f View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2014

  1. Code clean up.

    I've renamed FlxG_ignoreInput to FlxG.ignoreInput. There was a commented code in FlxGame regarding the VCR replay. It was removed for now and will be incorporate into the replay plugin soon.
    Dovyski committed Jun 4, 2014
    Configuration menu
    Copy the full SHA
    a107308 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c34a22 View commit details
    Browse the repository at this point in the history