ThePix / QuestJS

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

Do we need a game object? #69

Closed ThePix closed 3 years ago

ThePix commented 3 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 3 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.