Skip to content

Loader

progature.engine.core.game.loader

GameLoader

This class is used to load JSON files and returns Game objects. GameLoader will handler the Load part of the apps and works as an API between Python and JSON.

load staticmethod
load(game_path)

load method loads the JSON file, Then returns a Game object of that JSON file.

Parameters:

Name Type Description Default
game_path str

Path of the game we want to load.

required

Returns:

Type Description
Game

Instance of the game's file Game.