Merge branch 'master' of https://git.etud.insa-toulouse.fr/nbillard/sokoban
This commit is contained in:
commit
e11013381f
2 changed files with 56 additions and 2 deletions
|
@ -1,12 +1,14 @@
|
||||||
import { images } from '/modules/ressources.mjs';
|
import { images } from '/modules/ressources.mjs';
|
||||||
import { CanMove, Square } from '/modules/enums.mjs';
|
import { CanMove, Square } from '/modules/enums.mjs';
|
||||||
|
|
||||||
|
|
||||||
class Tile {
|
class Tile {
|
||||||
|
static increaseInTileWidth = 1.005;
|
||||||
constructor(x, y, width, height) {
|
constructor(x, y, width, height) {
|
||||||
this.x = x;
|
this.x = x;
|
||||||
this.y = y;
|
this.y = y;
|
||||||
this.width = width;
|
this.width = width * Tile.increaseInTileWidth;
|
||||||
this.height = height;
|
this.height = height * Tile.increaseInTileWidth;
|
||||||
this.canMove = CanMove.No;
|
this.canMove = CanMove.No;
|
||||||
this.image = new Image();
|
this.image = new Image();
|
||||||
this.imageReady = false;
|
this.imageReady = false;
|
||||||
|
|
52
style.css
Normal file
52
style.css
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
:root {
|
||||||
|
--main-background-color: black;
|
||||||
|
--main-invert-color: white;
|
||||||
|
--main-highlight-color: cyan;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: var(--main-background-color);
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog {
|
||||||
|
height: 200px;
|
||||||
|
width: 400px;
|
||||||
|
background-color: var(--main-invert-color);
|
||||||
|
position: relative;
|
||||||
|
border-radius: 10%;
|
||||||
|
display: flex;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-point {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-left: 1rem solid transparent;
|
||||||
|
border-right: 1rem solid transparent;
|
||||||
|
border-top: 5rem solid var(--main-invert-color);
|
||||||
|
position: relative;
|
||||||
|
top: 45%;
|
||||||
|
left: -10%;
|
||||||
|
transform: rotate(60deg) ;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-bubble {
|
||||||
|
/* transform: rotate(90deg); */
|
||||||
|
position: relative;
|
||||||
|
left: 658px;
|
||||||
|
top: -385px;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.speech {
|
||||||
|
z-index: 3;
|
||||||
|
margin: auto;
|
||||||
|
position: relative;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
|
||||||
|
.to-center {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
Loading…
Reference in a new issue