fix: hard code the size of game to 1080p and set background color to black
This commit is contained in:
parent
e6f1cbcf39
commit
fc8f313dcc
|
@ -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 {
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue
Block a user