Fix: alien sprite image
This commit is contained in:
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 985 B |
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -3,7 +3,7 @@ const LANGUAGE_ENGLISH = "english";
|
|||||||
|
|
||||||
const MODE_RELEASE = "release";
|
const MODE_RELEASE = "release";
|
||||||
const MODE_DEBUG = "debug";
|
const MODE_DEBUG = "debug";
|
||||||
const runMode = MODE_DEBUG;
|
const runMode = MODE_RELEASE;
|
||||||
|
|
||||||
function isDebugMode() {
|
function isDebugMode() {
|
||||||
// console.log("debug mode ? " + runMode);
|
// console.log("debug mode ? " + runMode);
|
||||||
|
|||||||
@@ -35,6 +35,16 @@ class Game {
|
|||||||
heartGauge.start();
|
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
|
// waiting room
|
||||||
this.game.add.graphics()
|
this.game.add.graphics()
|
||||||
.beginFill(0xffffff, 0.1)
|
.beginFill(0xffffff, 0.1)
|
||||||
|
|||||||
@@ -34,7 +34,11 @@ class Loading {
|
|||||||
|
|
||||||
startLoading() {
|
startLoading() {
|
||||||
this.game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
|
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_full', '../../../resources/image/ui/heart_full.png');
|
||||||
this.game.load.image('heart_empty', '../../../resources/image/ui/heart_empty.png');
|
this.game.load.image('heart_empty', '../../../resources/image/ui/heart_empty.png');
|
||||||
// this.game.load.image('a', '../../../resources/image/icon/fullscreen_white.png');
|
// this.game.load.image('a', '../../../resources/image/icon/fullscreen_white.png');
|
||||||
|
|||||||
Reference in New Issue
Block a user