diff --git a/js/allg.js b/js/allg.js index bde0a64..83cba46 100644 --- a/js/allg.js +++ b/js/allg.js @@ -1,8 +1,10 @@ let playerAnim = []; let tomAnim = []; +let enemyAnim = []; function fillArrays() { fillArray("fuchs_", 8, playerAnim); fillArray("tom_", 3, tomAnim); + fillArray("enemy_",3, enemyAnim); } diff --git a/js/funktionen.js b/js/funktionen.js index b4ec4cf..be3d9fd 100644 --- a/js/funktionen.js +++ b/js/funktionen.js @@ -2,6 +2,6 @@ function fillArray(name, number) { for (let i = 1; i++; i <= number) { - playerAnim[i] = name + i; + playerAnim[i] = name + i + ".png"; } } \ No newline at end of file diff --git a/pics/enemy_1.png b/pics/enemy_1.png new file mode 100644 index 0000000..f4b2435 Binary files /dev/null and b/pics/enemy_1.png differ diff --git a/pics/enemy_2.png b/pics/enemy_2.png new file mode 100644 index 0000000..a5c4004 Binary files /dev/null and b/pics/enemy_2.png differ diff --git a/pics/enemy_3.png b/pics/enemy_3.png new file mode 100644 index 0000000..e756b8d Binary files /dev/null and b/pics/enemy_3.png differ