NicolenaStiles / playground

Catch-all location for learning new things.
1 stars 0 forks source link

Major asteroids refactor #11

Closed NicolenaStiles closed 10 months ago

NicolenaStiles commented 10 months ago

Take knowledge gleaned from breakout implementation and add in (at minimum):

NicolenaStiles commented 10 months ago

Also:

NicolenaStiles commented 10 months ago

Spent the entire day trying to figure out how this will play with my actual website. Following options are the ones that make the most sense for desired behavior:

  1. Use the overlays from Flame itself, even though I have no idea how that will interact with my Go Router
  2. Run the game in an isolate that still animates in the background
  3. Find some way to more cleverly pass state between all those GameWidget calls?
  4. Bypass this discussion entirely and generate some gifs of the asteroids moving or something idk
NicolenaStiles commented 10 months ago

Current effort: add in play_area.dart logic from this codelab to better handle object collisions offscreen. Very possible this is a bad idea but I am eager to find out.

NicolenaStiles commented 10 months ago

Getting some major issues with framerate speeds using the current moveEffect calls.

This commit has me saving state before trying to remove those calls and get the framerate back up.