Change entry point to __main__
parent
d820dc08c5
commit
aec7662c0c
|
@ -2,7 +2,7 @@
|
||||||
Real-time 2.5D RPG Dungeon Crawler using PyGame
|
Real-time 2.5D RPG Dungeon Crawler using PyGame
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
`python3 zoria.py`
|
`python3 .`
|
||||||
|
|
||||||
## Controls
|
## Controls
|
||||||
| Key | Action |
|
| Key | Action |
|
||||||
|
|
|
@ -10,7 +10,7 @@ screen = pygame.display.set_mode(winsize, pygame.RESIZABLE)
|
||||||
|
|
||||||
# Load all assets
|
# Load all assets
|
||||||
from . import 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)
|
assets.load(filename)
|
||||||
|
|
||||||
pygame.display.set_caption("Zoria")
|
pygame.display.set_caption("Zoria")
|
||||||
|
|
Loading…
Reference in New Issue