- File structure
- Game mechanics (back-end)
- Games mechanics (front-end)
- /models : Contains the game models
- /prefabs : Contains the game class
- /scripts : Contains the game functions
- /textures : Contains the game textures
- keybinds.py : Contains the game keybinds in a dictionary
- main.py : The game "core", is launched for startup
- settings.py : Contains the user's settings
- tips.py : Contains de loading menu's tips
The starting of the game follows the following steps :
- Initializing the Ursina app :
Ursina()
- The main menu appears :
MainMenu()
- If singleplayer is selected :
- Inizializing the loading screen :
LoadingScreen()
- Loading the app-related settings (eg. window title) :
applyVideoSettings()
- Loading the video-related settings (eg. graphics quality) :
applyVideoSettings()
- Loading the entities in a separate thread :
loadEntities()
- Starting the app :
app.run()
- When entities finished loading, the loading screen is destroyed :
destroy(ld_scr)