mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2026-03-18 05:12:23 +01:00
Compare commits
2 Commits
963257ad79
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c9e14f777 | |||
| f3ac21839d |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
|||||||
.idea
|
.idea
|
||||||
test*
|
test*
|
||||||
js/Setting.js
|
js/Setting.js
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ export class Game
|
|||||||
this.canvas.style.backgroundImage = 'none';
|
this.canvas.style.backgroundImage = 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.canvas.style.backgroundColor = this.level.getBackgroundColor();
|
document.body.style.backgroundColor = this.level.getBackgroundColor();
|
||||||
this.canvas.width = window.innerWidth;
|
this.canvas.width = window.innerWidth;
|
||||||
this.canvas.height = window.innerHeight;
|
this.canvas.height = window.innerHeight;
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,13 @@ import Setting from "../../js/Setting.js";
|
|||||||
|
|
||||||
const imageLoader = new ImageLoader();
|
const imageLoader = new ImageLoader();
|
||||||
|
|
||||||
|
window.addEventListener(
|
||||||
|
'beforeunload',
|
||||||
|
(event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
for (const graphicSet of GraphicSet) {
|
for (const graphicSet of GraphicSet) {
|
||||||
imageLoader.addImage('../' + Setting.TILESET_LOCATION + graphicSet.tileset);
|
imageLoader.addImage('../' + Setting.TILESET_LOCATION + graphicSet.tileset);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user