Commit f6569231 authored by Yannick Armand's avatar Yannick Armand

Fond foncé pour le confort des yeux

parent c0da62cc
......@@ -2,8 +2,21 @@ html,
body {
margin: 0;
padding: 0;
min-height: 100vh;
}
body {
background-color: #000;
}
.wrapper {
display: flex;
min-height: 100vh;
}
#game {
border: 1px solid black;
margin: 0 auto;
align-self: center;
}
......@@ -355,6 +355,9 @@ export default class Game extends BaseGame {
public render(): void {
this.ctx.clearRect(0, 0, BaseGame.WIDTH, BaseGame.HEIGHT)
this.ctx.fillStyle = 'rgb(18, 5, 32)'
this.ctx.fillRect(0, 0, BaseGame.WIDTH, BaseGame.HEIGHT)
this.ctx.save()
this.ctx.translate(this.camera.getX(), this.camera.getY())
......
......@@ -10,7 +10,9 @@
</head>
<body>
<canvas id="game"></canvas>
<div class="wrapper">
<canvas id="game"></canvas>
</div>
<script src="/app.js"></script>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment