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

Weapons should support different shooting styles/animations #240

Open
zackthehuman opened this issue Jun 9, 2016 · 1 comment
Open

Weapons should support different shooting styles/animations #240

zackthehuman opened this issue Jun 9, 2016 · 1 comment

Comments

@zackthehuman
Copy link
Member

zackthehuman commented Jun 9, 2016

Weapons like Metal Blade don't display the "arm cannon" animation, but instead show a "hand throwing" animation. Shield weapons usually just spawn without any animation at all.

Likely this can be a simple configuration inside of a weapon's definition. It could be expressed as a usageType where the possible values are cannon, thrown, or shield.

Other types could be supported if/when things like Top Spin or Charge Kick were to be supported.

    {
        "name": "MEGA BUSTER",
        "label": "M.BUSTER",
        "damageId": 7,
        "projectileType": "Plasma Shot",
        "limit": 3,
        "usageCost": 0,
        "usageType": "cannon",
        "usageSound": "Rockman (Shooting)",
        "usageActions": [
            {
                "type": "spawnProjectile",
                "projectileType": "Plasma Shot",
                "direction": "inherit",
                "motion": {
                    "type": "Linear",
                    "velocity": [0.0, 0.0]
                }
            }
        ]
    }

Even though weapons could be used by enemies as well as Rock, but the usageType is probably only really useful for Rock.

@zackthehuman
Copy link
Member Author

This takes the place of #187.

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