mirror of
https://github.com/csd4ni3l/aim-trainer.git
synced 2026-01-01 04:03:42 +01:00
Move enemy_images into assets/graphics/enemy
This commit is contained in:
@@ -6,7 +6,7 @@ from ursina import *
|
||||
from ursina.shaders import lit_with_shadows_shader
|
||||
import os
|
||||
|
||||
file_names = os.listdir("enemy_images")
|
||||
enemy_file_names = os.listdir("assets/graphics/enemy")
|
||||
|
||||
class Game():
|
||||
def __init__(self, pypresence_client) -> None:
|
||||
@@ -43,7 +43,7 @@ class Game():
|
||||
|
||||
def summon_enemy(self):
|
||||
if not len(self.enemies) >= 50:
|
||||
self.enemies.append(Enemy(self.player, self.shootables_parent, self.player.x + (random.randint(12, 24) * random.choice([1, -1])), random.randint(min_enemy_y, max_enemy_y), self.player.z + (random.randint(12, 24) * random.choice([1, -1])), "enemy_images/" + random.choice(file_names)))
|
||||
self.enemies.append(Enemy(self.player, self.shootables_parent, self.player.x + (random.randint(12, 24) * random.choice([1, -1])), random.randint(min_enemy_y, max_enemy_y), self.player.z + (random.randint(12, 24) * random.choice([1, -1])), "assets/graphics/enemy/" + random.choice(file_names)))
|
||||
|
||||
def update(self):
|
||||
Sky.update(self.sky)
|
||||
|
||||
Reference in New Issue
Block a user