20243197 #12
|
@ -41,15 +41,16 @@ User Contol: ASDW
|
||||||
| :------ | :---: | :----------- |
|
| :------ | :---: | :----------- |
|
||||||
| BABA | <img src="assets/Text_BABA.webp" width="40px"> | |
|
| BABA | <img src="assets/Text_BABA.webp" width="40px"> | |
|
||||||
| Rock | <img src="assets/Text_ROCK.webp" width="40px"> | |
|
| Rock | <img src="assets/Text_ROCK.webp" width="40px"> | |
|
||||||
|
| Wall | <img src="assets/Text_WALL.webp" width="40px"> | |
|
||||||
| Flag | <img src="assets/Text_FLAG.webp" width="40px"> | |
|
| Flag | <img src="assets/Text_FLAG.webp" width="40px"> | |
|
||||||
| Lava | <img src="assets/Text_LAVA.webp" width="40px"> | |
|
| Lava | <img src="assets/Text_LAVA.webp" width="40px"> | |
|
||||||
| Water | <img src="assets/Text_WATER.webp" width="40px"> | |
|
| Water | <img src="assets/Text_WATER.webp" width="40px"> | |
|
||||||
| IS |  | Operator |
|
| IS | <img src="assets/Text_IS.webp" width="40px"> | Operator |
|
||||||
| You |  | |
|
| You | <img src="assets/You.webp" width="40px"> | |
|
||||||
| Move |  | |
|
| Move | <img src="assets/Move.webp" width="40px"> | |
|
||||||
| Stop |  | |
|
| Stop | <img src="assets/Stop.webp" width="40px"> | |
|
||||||
| Hot |  | |
|
| Hot | <img src="assets/Hot.webp" width="40px"> | |
|
||||||
| Win |  | |
|
| Win | <img src="assets/Win.webp" width="40px"> | |
|
||||||
| etc...
|
| etc...
|
||||||
|
|
||||||
|
|
||||||
|
|
19
main.js
19
main.js
|
@ -23,7 +23,7 @@ let tileMap = [
|
||||||
'wttt aatt wttttw',
|
'wttt aatt wttttw',
|
||||||
'wttttttttttttttw',
|
'wttttttttttttttw',
|
||||||
'wt*i@ttttt^i#ttw',
|
'wt*i@ttttt^i#ttw',
|
||||||
'wtttttttt tttttw',
|
'wt%istttt tttttw',
|
||||||
'wwwwwwwwwwwwwwww',
|
'wwwwwwwwwwwwwwww',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -62,10 +62,12 @@ function preload(){
|
||||||
is_img = loadImage("/assets/Text_IS.webp");
|
is_img = loadImage("/assets/Text_IS.webp");
|
||||||
win_img = loadImage("/assets/Win.webp");
|
win_img = loadImage("/assets/Win.webp");
|
||||||
you_img = loadImage("/assets/You.webp");
|
you_img = loadImage("/assets/You.webp");
|
||||||
|
stop_img = loadImage("/assets/Stop.webp");
|
||||||
move_img = loadImage("/assets/Move.webp");
|
move_img = loadImage("/assets/Move.webp");
|
||||||
hot_img = loadImage("/assets/Hot.webp");
|
hot_img = loadImage("/assets/Hot.webp");
|
||||||
sink_img = loadImage("/assets/Sink.webp");
|
sink_img = loadImage("/assets/Sink.webp");
|
||||||
|
|
||||||
|
wall_text_img = loadImage("/assets/Text_WALL.webp");
|
||||||
water_text_img = loadImage("/assets/Text_WATER.webp");
|
water_text_img = loadImage("/assets/Text_WATER.webp");
|
||||||
lava_text_img = loadImage("/assets/Text_LAVA.webp");
|
lava_text_img = loadImage("/assets/Text_LAVA.webp");
|
||||||
stopText_img = loadImage("/assets/Stop.webp");
|
stopText_img = loadImage("/assets/Stop.webp");
|
||||||
|
@ -167,6 +169,13 @@ function setup(){
|
||||||
water_text.tile = ')';
|
water_text.tile = ')';
|
||||||
water_text.scale = tileSize/water_text_img.width;
|
water_text.scale = tileSize/water_text_img.width;
|
||||||
|
|
||||||
|
// wall_text
|
||||||
|
let wall_text = new Group();
|
||||||
|
wall_text.img = wall_text_img;
|
||||||
|
wall_text.collider = 'dyinamic';
|
||||||
|
wall_text.tile = '%';
|
||||||
|
wall_text.scale = tileSize/wall_text_img.width;
|
||||||
|
|
||||||
// you
|
// you
|
||||||
let you = new Group();
|
let you = new Group();
|
||||||
you.img = you_img;
|
you.img = you_img;
|
||||||
|
@ -181,6 +190,14 @@ function setup(){
|
||||||
win_text.tile = '#';
|
win_text.tile = '#';
|
||||||
win_text.scale = tileSize/win_img.width;
|
win_text.scale = tileSize/win_img.width;
|
||||||
|
|
||||||
|
// stop
|
||||||
|
let stop = new Group();
|
||||||
|
stop.img = stop_img;
|
||||||
|
stop.collider = 'dyinamic';
|
||||||
|
stop.tile = 's';
|
||||||
|
stop.scale = tileSize/stop_img.width;
|
||||||
|
|
||||||
|
|
||||||
// move
|
// move
|
||||||
let move = new Group();
|
let move = new Group();
|
||||||
move.img = move_img;
|
move.img = move_img;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user