thombruce / verse

🚀 A universe in progress
Other
8 stars 0 forks source link

Background #120

Closed thombruce closed 8 months ago

thombruce commented 8 months ago

closes #118

By submitting this pull request, you agree to follow our Code of Conduct: https://github.com/thombruce/.github/blob/main/CODE_OF_CONDUCT.md


Internal use. Do not delete.

thombruce commented 8 months ago

How we give these particular attributions I'm unsure... Special Thanks?

thombruce commented 8 months ago

Do play with the variables in Pablo's shader here: https://www.shadertoy.com/view/XlfGRj

Tweaking the values gives a real sense for what they actually do... Maybe leave formuparam alone though; effects of changing this are highly unpredictable, and whatever it is doing is wild alien magic.

thombruce commented 8 months ago

Deleted it; kept the assets. If we need it again we can reimplement from the Git history.

thombruce commented 8 months ago

Problem:

Because the background now moves with the camera, and the camera moves with the player...

When we restart the game, the camera may be offset such that the respawned background is either only partially on screen or not on screen at all. We can see its edges, or the black ClearColor of the game window.

Ways to address this:

  1. Follow camera on every Update (not just active gamestate); this would ensure that it is appropriately positioned on reload
  2. Reset the camera position on game reset; this would ensure that the camera is positioned with the background in view

Either of those works, so pick a favourite. Probably option 2 since it doesn't require a system to run on update...