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;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
#game-window {
|
#game-window {
|
||||||
position: relative;
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
#game-canvas {
|
#game-canvas {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import WeaponTypeRegistry from "./shattered_sword/Registry/WeaponTypeRegistry";
|
||||||
|
|
||||||
// Set up options for our game
|
// Set up options for our game
|
||||||
let options = {
|
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
|
//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
|
clearColor: {r: 0, g: 0, b: 0}, // The color the game clears to
|
||||||
inputs: [
|
inputs: [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user