speech bubble
This commit is contained in:
parent
da3effbcbb
commit
c00861307b
2 changed files with 14 additions and 3 deletions
15
index.html
15
index.html
|
@ -7,11 +7,13 @@
|
|||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" href="./mario.png">
|
||||
<link rel="icon" href="./res/mario.png"/>
|
||||
<!-- Place favicon.ico in the root directory -->
|
||||
<link rel="stylesheet" href="./style.css"/>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Sokoban</h1>
|
||||
<!--[if lt IE 8]>
|
||||
<p class="browserupgrade">
|
||||
You are using an <strong>outdated</strong> browser. Please
|
||||
|
@ -19,7 +21,16 @@
|
|||
your experience.
|
||||
</p>
|
||||
<![endif]-->
|
||||
<canvas id="canvas" width="800" height="400"></canvas>
|
||||
<div class="to-center">
|
||||
<canvas id="canvas" width="800" height="400"></canvas>
|
||||
<div class="text-bubble">
|
||||
<div class="dialog">
|
||||
<div class="left-point">
|
||||
</div>
|
||||
<p class="speech">Coucou</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!-- <script type="module" src="./modules/ressources.mjs"></script> -->
|
||||
<script type="module" src="./script.js"></script>
|
||||
|
|
|
@ -5,7 +5,7 @@ import { MoveDirection } from '/modules/enums.mjs'
|
|||
let canvas = document.getElementById('canvas');
|
||||
let ctx = canvas.getContext('2d');
|
||||
window.ctx = ctx
|
||||
let playground = generatePlayground(level2Blueprint, canvas.width, canvas.height);
|
||||
let playground = generatePlayground(level1Blueprint, canvas.width, canvas.height);
|
||||
window.addEventListener("keydown", (event) => {
|
||||
if (!event.defaultPrevented) {
|
||||
switch (event.key) {
|
||||
|
|
Loading…
Reference in a new issue