capmaningamemenu

0.0.4 • Public • Published

capManCrashingBugs

The platformer game for capman

add this dependancy in your package.json "capmaningamemenu": "git+https://github.com/capAcade/capmaningamemenu.git",

and to use it:

`` import GameMenu from 'capmaningamemenu';

let gameMenu = new GameMenu( { title: 'capman Crashing bugs', background: 'assets/img/test/Intro_Screen_background.png', logo: 'assets/img/test/CapmanLogo1.svg', buttons: [ { id: 'onePlayer', text: '- start one player -' }, { id: 'twoPlayers', text: '- start two player -' }, { id: 'highScores', text: '- High scores -' } ] }, (button) =>{ console.log(button); game.state.start('play', true, false, {level: 0}); } );

game.state.add('gameMenu', gameMenu); game.state.start('gameMenu', true, false, {level: 0}); ``

Readme

Keywords

Package Sidebar

Install

npm i capmaningamemenu

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

6.3 kB

Total Files

4

Last publish

Collaborators

  • svenvanstraalen