capmaningamemenu
v0.0.4
Published
this is the ingame menu for the capman games
Downloads
5
Readme
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}); ``