ForNeVeR / ForNeVeR/overtone

De-staticify the `GameState`

Open
#110 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
F#
Stars
19
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Currently, the `GameState` contains a couple of mutable static fields: https://github.com/ForNeVeR/overtone/blob/421c1129f9efb9ebd30945f114a3dcdd1a4ffa42/Overtone.Game/GameState.fs#L15-L23

We should remove them all. `GameState` should be an instance type, passed to each concerned entity.

This will allow us to not rely on global mutable effects, helps with things like save games, reproducible gameplay, game replays etc.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.