Propagating customized sprites all over the game
This commit is contained in:
parent
6d0bccc0e1
commit
84529d6e99
14 changed files with 99 additions and 73 deletions
|
@ -104,7 +104,7 @@ export class CustomizeScene extends Phaser.Scene {
|
|||
this.input.keyboard.on('keyup-ENTER', () => {
|
||||
const layers: string[] = [];
|
||||
let i = 0;
|
||||
for (let layerItem of this.selectedLayers) {
|
||||
for (const layerItem of this.selectedLayers) {
|
||||
console.log(i, layerItem, LAYERS);
|
||||
if (layerItem !== undefined) {
|
||||
layers.push(LAYERS[i][layerItem].name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue