techwithtim / Tower-Defense-Game

The code from my 12 hour live stream where I created a tower defense game with pygame.
369 stars 200 forks source link

Tried to start but, #1

Open DaytradeCentral opened 5 years ago

DaytradeCentral commented 5 years ago

run.py

pygame 1.9.5 Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "run.py", line 6, in from main_menu.main_menu import MainMenu File "/home/tintin/Tower-Defense-Game/main_menu/main_menu.py", line 1, in from game import Game File "/home/tintin/Tower-Defense-Game/game.py", line 3, in from enemies.scorpion import Scorpion File "/home/tintin/Tower-Defense-Game/enemies/scorpion.py", line 11, in pygame.image.load(os.path.join("game_assets/enemies/1", "1_enemies_1_run_0" + add_str + ".png")), pygame.error: Couldn't open game_assets/enemies/1/1_enemies_1_run_000.png

game.py

pygame 1.9.5 Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "game.py", line 3, in from enemies.scorpion import Scorpion File "/home/tintin/Tower-Defense-Game/enemies/scorpion.py", line 11, in pygame.image.load(os.path.join("game_assets/enemies/1", "1_enemies_1_run_0" + add_str + ".png")), pygame.error: Couldn't open game_assets/enemies/1/1_enemies_1_run_000.png

jsc57x commented 5 years ago

This is not an issue. You should read the readme. You don't have the requested game assets (like it is also shown in the tracebacks). Therefore you are unable to launch the game. But you can create your own assets and use them :)