Closed danieldesira closed 8 months ago
Point 1 cannot be done because WeakSet
is not iterable.
The rest is done but we need to check the issue that has caused NeptuneGrass
to disappear from the canvas. Unrelated to this, we also need to check the errors shown in the browser console upon actions like resizing when canvas is hidden and winning the game trying to access the level beyond the last one.
Issue with Neptune grass is fixed but the game crashes after clicking Play again and completing the 1st level, now.
All issues sorted. Game menu is shown by default now rather than just starting the game, which was going to be done anyway.
_characters
field should have aWeakSet
type since objects are removed when references are removed.Options
parameter and assigns all field values accordingly.readonly
keyword can be retained since the fields will still be only assigned once at initialisation and should otherwise be immutable.