20243197 #12
|
@ -84,3 +84,5 @@ User Contol: ASDW
|
|||
| :--: | :-------------- |
|
||||
| 2025.04.14 | Updated the Markdown, initial creation of the project |
|
||||
| 2025.04.15 | Create the folders and js files. Create the HTML, CSS for the projects. |
|
||||
| 2025.04.19 | Put sprites, make initial stage. |
|
||||
| 2025.04.20 | Done with initial stage, but no move rock. |
|
||||
|
|
32
main.js
32
main.js
|
@ -10,20 +10,20 @@ let is_img;
|
|||
// Map
|
||||
let tileMap = [
|
||||
' ',
|
||||
'wtwwwwwwwwwwwwww',
|
||||
'wt ttttttt ttttw',
|
||||
'wt$imttttt(ihttw',
|
||||
'wtt tt ttttttttw',
|
||||
'wttttttttt)isttw',
|
||||
'wt ttrtttttttttw',
|
||||
'wt ttwtttt ttttw',
|
||||
'wttt rtt llt rtw',
|
||||
'wtt tttt ll rfrw',
|
||||
'w tttaa ttwt rtw',
|
||||
'wttt aatt wttttw',
|
||||
'wttttttttttttttw',
|
||||
'wt*i@ttttt^i#ttw',
|
||||
'wt%istttt tttttw',
|
||||
'w,wwwwwwwwwwwwww',
|
||||
'w,,,,,,,,,,,,,,w',
|
||||
'w,$im,,,,,(ih,,w',
|
||||
'w,,,,,,,,,,,,,,w',
|
||||
'w,,,,,,,,,)is,,w',
|
||||
'w,,,,r,,,,,,,,,w',
|
||||
'w,,,,w,,,,,,,,,w',
|
||||
'w,,,,r,,,ll,,r,w',
|
||||
'w,,,,,,,,ll,rfrw',
|
||||
'w,,,,aa,,,w,,r,w',
|
||||
'w,,,,aa,,,w,,,,w',
|
||||
'w,,,,,,,,,,,,,,w',
|
||||
'w,*i@,,,,,^i#,,w',
|
||||
'w,%is,,,,,,,,,,w',
|
||||
'wwwwwwwwwwwwwwww',
|
||||
];
|
||||
|
||||
|
@ -87,7 +87,7 @@ function setup(){
|
|||
let tile = new Group();
|
||||
tile.img = tile_img;
|
||||
tile.collider = 'none';
|
||||
tile.tile = "t";
|
||||
tile.tile = ",";
|
||||
tile.scale = tileSize/tile_img.width;
|
||||
|
||||
// Flag
|
||||
|
@ -311,7 +311,7 @@ function isOpen(x,y){
|
|||
}
|
||||
|
||||
let tile = tileMap[j][i];
|
||||
if (tile == ' ' || tile == 't'){
|
||||
if (tile == ' ' || tile == ','){
|
||||
return true;
|
||||
} else if (tile == 'a'|| tile=='l'){
|
||||
gameOver();
|
||||
|
|
Loading…
Reference in New Issue
Block a user