Playdate Devlog 002 | Sprites, Collision detection and Orbiting a Black Hole

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 5

  • @DrNabeel20
    @DrNabeel20 3 месяца назад

    This is awesome :D

  • @SquidGodDev
    @SquidGodDev 3 месяца назад +2

    I've found for small, Playdate scoped projects using singletons is fine. You could do some dependency injection where you take in a reference to the black hole object in the player constructor for example, or you can have some game manager that holds references to the player and black hole and each one calls up to the manager and the manager handles calling down, but meh it's not really better or worse imo. And in the future if you end up having to refactor it's pretty straightforward usually.

    • @weak_ty
      @weak_ty  3 месяца назад +1

      My plea for input on singletons has worked! Thanks for the input. I'm going with it!

  • @PhilipNorton42
    @PhilipNorton42 3 месяца назад

    Loving this series. Keep it up!

    • @weak_ty
      @weak_ty  3 месяца назад

      @@PhilipNorton42 thank you!