Skip to content

Commit dfadff7

Browse files
committed
Move enemy_images into assets/graphics/enemy
1 parent 4944a01 commit dfadff7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
script-name: run.py
3434
nofollow-import-to: "*tk*,_codecs,encodings,multiprocessing,gi"
3535
disable-plugins: tk-inter,dill-compat,eventlet,gevent,pyqt5,pyqt6,pyside2,pyside6,delvewheel,pywebview,matplotlib,spacy,enum-compat,pbr-compat,gevent,pmw-freezer,transformers,upx,kivy,options-nanny,multiprocessing,gi
36-
include-data-dir: assets=assets,enemy_images=enemy_images
36+
include-data-dir: assets=assets
3737
include-data-files: CREDITS=CREDITS
3838
mode: standalone
3939
output-file: AimTrainer
File renamed without changes.

game/game.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from ursina.shaders import lit_with_shadows_shader
77
import os
88

9-
file_names = os.listdir("enemy_images")
9+
enemy_file_names = os.listdir("assets/graphics/enemy")
1010

1111
class Game():
1212
def __init__(self, pypresence_client) -> None:
@@ -43,7 +43,7 @@ def __init__(self, pypresence_client) -> None:
4343

4444
def summon_enemy(self):
4545
if not len(self.enemies) >= 50:
46-
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)))
46+
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)))
4747

4848
def update(self):
4949
Sky.update(self.sky)

0 commit comments

Comments
 (0)