Skip to content

Rename state files to GameStates.x.js or States.xyz.js #1

@sole

Description

@sole

Currently the game states are defined in js/game/game.js and js/game/preloader.js. Plus the GameStates variable is defined inside preloader.js.

To improve readability and make this hierarchy more visible by looking at the files, I'd suggest to...

  • move the definition of the GameStates variable out from js/game/preloader.js and onto a new file called /js/game/GameStates.js
  • rename js/game/preloader.js to js/game/GameStates.Preloader.js
  • rename js/game/game.js to js/game/GameStates.Game.js

I reckon that so many game in the paths can be tedious. I'd go even further and suggest just using States where it says GameStates. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions