dwlufzgweiuzfvbiwuBIUWVIUWEBVIUBWRIVUWeiuvbirsaubviuearbvifdsbivubsivbdisbvijdfberboudfiubveraiöbviuerbviuer

This commit is contained in:
Jan Breitkreuz 2024-06-27 09:21:55 +02:00
parent 4cc2b1592d
commit d97c43c691
5 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
let playerAnim = []; let playerAnim = [];
let tomAnim = []; let tomAnim = [];
let enemyAnim = [];
function fillArrays() function fillArrays()
{ {
fillArray("fuchs_", 8, playerAnim); fillArray("fuchs_", 8, playerAnim);
fillArray("tom_", 3, tomAnim); fillArray("tom_", 3, tomAnim);
fillArray("enemy_",3, enemyAnim);
} }

View File

@ -2,6 +2,6 @@
function fillArray(name, number) function fillArray(name, number)
{ {
for (let i = 1; i++; i <= number) { for (let i = 1; i++; i <= number) {
playerAnim[i] = name + i; playerAnim[i] = name + i + ".png";
} }
} }

BIN
pics/enemy_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
pics/enemy_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
pics/enemy_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB