Fix: alien sprite image
This commit is contained in:
@@ -3,7 +3,7 @@ const LANGUAGE_ENGLISH = "english";
|
||||
|
||||
const MODE_RELEASE = "release";
|
||||
const MODE_DEBUG = "debug";
|
||||
const runMode = MODE_DEBUG;
|
||||
const runMode = MODE_RELEASE;
|
||||
|
||||
function isDebugMode() {
|
||||
// console.log("debug mode ? " + runMode);
|
||||
|
||||
@@ -35,6 +35,16 @@ class Game {
|
||||
heartGauge.start();
|
||||
|
||||
|
||||
// game stage
|
||||
let stars = game.add.group();
|
||||
|
||||
for (let i = 0; i < 128; i++)
|
||||
{
|
||||
let randomY = game.rnd.integerInRange(60, GAME_SCREEN_SIZE.y - 80);
|
||||
stars.create(game.world.randomX, randomY, 'star');
|
||||
}
|
||||
|
||||
|
||||
// waiting room
|
||||
this.game.add.graphics()
|
||||
.beginFill(0xffffff, 0.1)
|
||||
|
||||
@@ -34,7 +34,11 @@ class Loading {
|
||||
|
||||
startLoading() {
|
||||
this.game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
|
||||
this.game.load.image('alien_normal', '../../../resources/image/character/alien_normal.png');
|
||||
|
||||
this.game.load.image('star', '../../../resources/image/background/star_7x7.png');
|
||||
|
||||
this.game.load.image('alien_normal', '../../../resources/image/character/alien/green_alien.png');
|
||||
|
||||
this.game.load.image('heart_full', '../../../resources/image/ui/heart_full.png');
|
||||
this.game.load.image('heart_empty', '../../../resources/image/ui/heart_empty.png');
|
||||
// this.game.load.image('a', '../../../resources/image/icon/fullscreen_white.png');
|
||||
|
||||
Reference in New Issue
Block a user