mirror of
https://github.com/duckduckdoof/miniopolis.git
synced 2025-03-15 00:51:20 +00:00
Separated scene logic from game logic
This commit is contained in:
parent
0c8bc99b90
commit
f993cccf1f
5 changed files with 22 additions and 10 deletions
10
lib/engine/game_config.py
Normal file
10
lib/engine/game_config.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
"""
|
||||
game_config.py
|
||||
|
||||
author: Caleb Scott
|
||||
|
||||
Configuration file for game objects (like setting default rates, types, etc.).
|
||||
This is not the same as scene_config.py, which configures the scene (visuals, sprites, etc.).
|
||||
"""
|
||||
|
||||
# CONSTANTS ---------------------------------------------------------
|
|
@ -3,14 +3,15 @@ game_logic.py
|
|||
|
||||
author: Caleb Scott
|
||||
|
||||
Internal logic for the game world.
|
||||
Internal logic for the game world. This doesn't work with setting
|
||||
visual elements; this is handles in the scene/ python files
|
||||
"""
|
||||
|
||||
# IMPORTS -----------------------------------------------------------
|
||||
|
||||
import arcade
|
||||
from lib.game_config import *
|
||||
from lib.tiles import *
|
||||
from lib.scene.scene_config import *
|
||||
from lib.scene.scene_tiles import *
|
||||
|
||||
# CLASSES -----------------------------------------------------------
|
||||
|
|
@ -1,10 +1,11 @@
|
|||
|
||||
"""
|
||||
game_config.py
|
||||
scene_config.py
|
||||
|
||||
author: Caleb Scott
|
||||
|
||||
Contains all constants needed to modify the game
|
||||
Configuration file for modifying the visual scene of the game.
|
||||
This is not the same as game_config.py, which is used to adjust
|
||||
game objects (apart from their visuals, like sprites)
|
||||
"""
|
||||
|
||||
# CONSTANTS ---------------------------------------------------------
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
tiles.py
|
||||
scene_tiles.py
|
||||
|
||||
author: Caleb Scott
|
||||
|
||||
|
@ -9,7 +9,7 @@ Contains all classes of tiles used in miniopolis
|
|||
# IMPORTS -----------------------------------------------------------
|
||||
|
||||
import arcade
|
||||
from lib.game_config import *
|
||||
from lib.scene.scene_config import *
|
||||
|
||||
# CLASSES -----------------------------------------------------------
|
||||
|
|
@ -10,8 +10,8 @@ First attempt to make a tile-based colony-sim game.
|
|||
|
||||
import arcade
|
||||
|
||||
from lib.game_config import *
|
||||
from lib.game_logic import GameLogic
|
||||
from lib.scene.scene_config import *
|
||||
from lib.engine.game_logic import GameLogic
|
||||
|
||||
# CLASSES -----------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue