GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tyroneneill/konami-manager-ts: Implementation of the Komani Manager (vanilla javascript) in TypeScript

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.html
index.html
 
 
keyboard.js
keyboard.js
 
 
konami.manager.js
konami.manager.js
 
 
konami.manager.js.map
konami.manager.js.map
 
 
konami.manager.ts
konami.manager.ts
 
 

Repository files navigation

konami-manager.js

TypeScript konami manager

alt tag

Usage

<script src="konami-manager.js"></script>
<script>

   
   var konamiManager = new KonamiManager(window);

   /**
     * 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>

About

Implementation of the Komani Manager (vanilla javascript) in TypeScript

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.