(Week 8) Viewport implementation and some new sprites!


Learning about Viewports

This week's main objective was to have two different views for the "bullet hell game" and the "rhythm game", so the latter can stay in the same place even if the player is moving. So we needed to use viewports for get this done. We used a HSplitContainer to separate the viewport with the bullet-hell game and the pane with the rhythm game. This approach was the perfect fit to solve our need, but it came with a great problem... it broke the aiming system we created for the player to shoot. The problem was caused because the viewport has its own coordinate system, so when we use the built-in function get_global_mouse_position() it doesn't returns the position of the mouse in the same coordinate system. We are currently working on its solution as we didn't managed to fix it on time for the release of this week's devlog.

Some additional features!

This new viewport for the bullet-hell section of the game, allowed us to make the camera follow the player, while keeping the rhythm system in the same position. Additionally, we made some new sprites for the notes and notes catchers for the rhythm section of the game. Here is a picture of the progress we have made:

Next week To-do and Ideas

  • Fix the aiming bug we discussed above.
  • Add health points to the player and enemies.
  • Allow player to damage enemies and vice versa.

Thanks for reading this week's epic devlog. See ya next week with more updates!

Get Music Hell

Leave a comment

Log in with itch.io to leave a comment.