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

Add scripting to stage/rooms #225

Open
zackthehuman opened this issue Jul 3, 2015 · 0 comments
Open

Add scripting to stage/rooms #225

zackthehuman opened this issue Jul 3, 2015 · 0 comments

Comments

@zackthehuman
Copy link
Member

Stages should have a scripting layer that allows some aspects of the stage to be controlled by the script. This would allow for things like in-stage cinematics (ala Breakman appearing in Gemini man's stage -- KAPOW!).

Scripts should be optional, and there should be a base class that a stage script must extend in order for the game to call in to it correctly.

class StageBase {
    constructor() { }

    onUpdate(dt) { }

    onLeaveRoom(roomId) { }

    onEnterRoom(roomId) { }

    onStartStage() { }

    onStartRound() { }

    onEndRound() { }

    onStartBossBattle() { }

    endBossBattle(alreadyDefeated) { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant