mirror of
https://github.com/duckduckdoof/miniopolis.git
synced 2025-03-22 11:42:19 +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
|
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 -----------------------------------------------------------
|
# IMPORTS -----------------------------------------------------------
|
||||||
|
|
||||||
import arcade
|
import arcade
|
||||||
from lib.game_config import *
|
from lib.scene.scene_config import *
|
||||||
from lib.tiles import *
|
from lib.scene.scene_tiles import *
|
||||||
|
|
||||||
# CLASSES -----------------------------------------------------------
|
# CLASSES -----------------------------------------------------------
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
|
|
||||||
"""
|
"""
|
||||||
game_config.py
|
scene_config.py
|
||||||
|
|
||||||
author: Caleb Scott
|
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 ---------------------------------------------------------
|
# CONSTANTS ---------------------------------------------------------
|
|
@ -1,5 +1,5 @@
|
||||||
"""
|
"""
|
||||||
tiles.py
|
scene_tiles.py
|
||||||
|
|
||||||
author: Caleb Scott
|
author: Caleb Scott
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ Contains all classes of tiles used in miniopolis
|
||||||
# IMPORTS -----------------------------------------------------------
|
# IMPORTS -----------------------------------------------------------
|
||||||
|
|
||||||
import arcade
|
import arcade
|
||||||
from lib.game_config import *
|
from lib.scene.scene_config import *
|
||||||
|
|
||||||
# CLASSES -----------------------------------------------------------
|
# CLASSES -----------------------------------------------------------
|
||||||
|
|
|
@ -10,8 +10,8 @@ First attempt to make a tile-based colony-sim game.
|
||||||
|
|
||||||
import arcade
|
import arcade
|
||||||
|
|
||||||
from lib.game_config import *
|
from lib.scene.scene_config import *
|
||||||
from lib.game_logic import GameLogic
|
from lib.engine.game_logic import GameLogic
|
||||||
|
|
||||||
# CLASSES -----------------------------------------------------------
|
# CLASSES -----------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue