Posted October 10, 2022 by nsanti21
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.
Thanks for reading this week's epic devlog. See ya next week with more updates!