Skip to content

Data file path configuration #36

@1j01

Description

@1j01

The default world is loaded from a hard-coded path "world.json"
A better name would be "default-world.json", but beside that, it should be configurable.
You should be able to place worlds in a "worlds" folder, for instance.

Similarly, the animations for an entity are loaded from "animations/.json"
You may want to store these elsewhere.

req.open("GET", "world.json")

EntityClass.animation_json_path = "./animations/#{EntityClass.name}.json"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions