Zshandi / SuperSpherebox65

This is a preliminary repository for my groups GGJ 2024 entry.
0 stars 0 forks source link

Allow GameData to display arbitrary sprites in selection picture #3

Closed Zshandi closed 6 months ago

Zshandi commented 6 months ago

This is to update GameData so that it can be extended to allow subclasses to draw any sprites / textures in the menu selection picture. This will allow each game to have its menu image more accurately reflect the randomization that will also affect the in-game appearance.

For example, for the ShootEmUp, if the player character is shown, it should reflect which sprite will actually appear in-game, rather than having them both be separately randomly selected.

In some initial research, I found that the Control node has a "Clip contents" option which can be used as a parent to these sprites to ensure that they are only drawn in the appropriate box. Otherwise, the sprite drawing should be handled as a function for the child to override, which can then be called when it's time to draw the image.