ThePix / QuestJS

A major re-write of Quest that is written in JavaScript and will run in the browser.
MIT License
66 stars 12 forks source link

Do we need a game object? #69

Closed ThePix closed 2 years ago

ThePix commented 2 years ago

By object, I mean in the sense as part of the world, a member of w.

So the question is, what is there in game that we want to save? If we do not need to save it, put it in settings.

This would not affect game.player

ThePix commented 2 years ago

Answer: no

We do need a dictionary to store global game-world variables, and that needs to be saved, but no need for it to be in w or to be a normal object.