You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
729 B

/*var EnemyBots = new Array(5);
//var myself = new Robot(5, 5);
EnemyBots.push(new Robot(1, 1));
console.log(myself.height);
*/
const WIDTH_WINDOW = $(document).width() - 30;
const HEIGHT_WINDOW = $(document).height() - 30;
const WIDTH_MAP = WIDTH_WINDOW < HEIGHT_WINDOW ? WIDTH_WINDOW * 0.8 : HEIGHT_WINDOW * 0.8;
const SPEED = 2;
const LIFE = 100;
const DAMAGE = 40;
const SHIELD = 100;
const RANGE = WIDTH_MAP / 2;
var config = {
type: Phaser.AUTO,
width: WIDTH_WINDOW,
height: HEIGHT_WINDOW,
parent: 'all',
backgroundColor: '#35363A',
};
var game = new Phaser.Game(config);
game.scene.add('Boot', Boot);
game.scene.add('Type', Type);
game.scene.add('Game', new Game(game));
game.scene.start('Boot');