WIP: Reorganize the codebase, splitting game, render and input logic #3
Draft
Avery
wants to merge 7 commits from Avery/MineClone:master
into master
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'Avery/MineClone:master'
Deleting a branch is permanent. It CANNOT be undone. Continue?
PR marked as WIP since I am very much learning as I go and I expect that this first attempt needs a few time back and forth between reviews and fixes before it can be merged.
In this version, the game logic is driven by the state of the game, making it essentially a state machine. While currently there is only states for loading and InWorld, once a main menu and such is implemented, those will get their own states in the state machine, thus being able to render their own things and handle their own input. I imagine a valid and sensible flow of states could look something like this:
For further details on the reorg, see
2f15842ca4
.