Change entry point to __main__

master
GreenXenith 2021-01-29 14:01:20 -08:00
parent d820dc08c5
commit aec7662c0c
3 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Real-time 2.5D RPG Dungeon Crawler using PyGame
## Usage
`python3 zoria.py`
`python3 .`
## Controls
| Key | Action |

View File

@ -10,7 +10,7 @@ screen = pygame.display.set_mode(winsize, pygame.RESIZABLE)
# Load all assets
from . import assets
for filename in os.listdir(os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "assets")):
for filename in os.listdir(os.path.join(os.getcwd(), "assets")):
assets.load(filename)
pygame.display.set_caption("Zoria")