fix: hard code the size of game to 1080p and set background color to black

This commit is contained in:
Renge 2022-04-19 12:05:52 -04:00
parent e6f1cbcf39
commit fc8f313dcc
2 changed files with 6 additions and 2 deletions

View File

@ -10,10 +10,14 @@
position: absolute;
top: 0px;
left: 0px;
background-color: black;
}
#game-window {
position: relative;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#game-canvas {

View File

@ -12,7 +12,7 @@ import WeaponTypeRegistry from "./shattered_sword/Registry/WeaponTypeRegistry";
// Set up options for our game
let options = {
canvasSize: {x : window.innerWidth, y:window.innerHeight},
canvasSize: {x : 1920, y:1080},
//canvasSize: {x: window.innerWidth, y: window.innerHeight}, // The size of the game
clearColor: {r: 0, g: 0, b: 0}, // The color the game clears to
inputs: [