In JavaScript, how would I make it so my game, which I am creating, is centered on the screen across all screens? I want to ensure that it has a consistent position on the screen, regardless of the device or screen size. Additionally, I would like to know how to center my text on the screen across all screens. For example, I currently have the following code: ctx.fillText("lives:" + lives, 800, 400). How can I modify this code to ensure that the text is centered and evenly displayed on the screen, regardless of the device or screen size? Currently, when I switch from my PC to my laptop, the text appears uneven on my smaller laptop screen. I want it to be evenly centered on all screens.