0.0.4 • Published 5 years ago

capmaningamemenu v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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});