added items and pickup basic
Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
@@ -12,6 +12,9 @@ import charD from "../assets/char_d/spritesheet.png";
|
||||
import tiles from "../assets/tileset.png";
|
||||
import batFly from "../assets/BatFly.png";
|
||||
import batDie from "../assets/BatDie.png";
|
||||
import item_01 from "../assets/items/itemshard_01.png";
|
||||
import item_02 from "../assets/items/itemshard_02.png";
|
||||
import item_03 from "../assets/items/itemshard_03.png";
|
||||
|
||||
export default class Preload extends Phaser.Scene {
|
||||
|
||||
@@ -22,6 +25,9 @@ export default class Preload extends Phaser.Scene {
|
||||
preload() {
|
||||
this.loadingScreen();
|
||||
this.load.image("logo", logoImg);
|
||||
this.load.image("item_01", item_01);
|
||||
this.load.image("item_02", item_02);
|
||||
this.load.image("item_03", item_03);
|
||||
this.load.spritesheet('charA', charA, {frameWidth: 79, frameHeight: 63/*, margin: 1, spacing: 2*/});
|
||||
this.load.spritesheet('charB', charB, {frameWidth: 79, frameHeight: 63/*, margin: 1, spacing: 2*/});
|
||||
this.load.spritesheet('charC', charC, {frameWidth: 79, frameHeight: 63/*, margin: 1, spacing: 2*/});
|
||||
|
||||
Reference in New Issue
Block a user