<script src="konami-manager.js"></script>
<script>
/**
* Attach Konami { ← ← a }
*/
konamiManager.add(attackFireball, [Keyboard.LEFT, Keyboard.LEFT, Keyboard.A]);
/**
* Attach Konami { → → a }
*/
konamiManager.add(attackIceball, [Keyboard.RIGHT, Keyboard.RIGHT, Keyboard.A]);
/**
* Attack Fireball callback handler
*/
function attackFireball() {
console.log('Fireball attack');
}
/**
* Attack Iceball callback handler
*/
function attackIceball() {
console.log('Iceball attack');
}
</script>
-
Notifications
You must be signed in to change notification settings - Fork 0
Left, Left, Right, Right, Down, High-Punch, Fire-ball!
License
tyroneneill/konami-manager
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Left, Left, Right, Right, Down, High-Punch, Fire-ball!
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published