KaboomJS - How can I center the levels/how can I make the game responsive?
Hello, I have been playing around with KaboomJS just for fun and have been working on a Space Invaders clone. I have a couple of levels and a boss level so far.
When I play the game in the Replit preview pane, the levels fit fairly well in the pane and it makes sense. However, when I take the URL of the game and play it in a new tab, while the title screen and the player object appear centered, the levels themselves (and the enemies in them) are always in the top-left corner and aren't centered. Also, when I resize the window, the game isn't responsive to the changes.
How can I make it so that the levels are centered on the page and the game stays responsive and changes in scale depending on the window size? I have tried playing around with the fullscreen and scale options in the main Kaboom settings in Replit, but they haven't done the job for me.
Thanks in advance!
Unfortunately, you can't with the kaboom language settings, you will have to manually do it yourself