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