mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-24 00:16:42 +02:00
fix lint
This commit is contained in:
parent
16cb8e753b
commit
e9caa4a217
46 changed files with 1784 additions and 728 deletions
|
|
@ -315,7 +315,7 @@ class BootScene extends Phaser.Scene {
|
|||
const brickWidth = 16;
|
||||
|
||||
for (let y = 0; y < tileSize; y += brickHeight) {
|
||||
let offset = y % (brickHeight * 2) === 0 ? 0 : brickWidth / 2;
|
||||
const offset = y % (brickHeight * 2) === 0 ? 0 : brickWidth / 2;
|
||||
for (let x = offset; x < tileSize; x += brickWidth) {
|
||||
stoneWallGraphics.fillRect(x, y, brickWidth - 1, brickHeight - 1);
|
||||
}
|
||||
|
|
@ -330,7 +330,7 @@ class BootScene extends Phaser.Scene {
|
|||
// Steinmuster für die Wand
|
||||
stoneWallFlowerGraphics.fillStyle(0x555555);
|
||||
for (let y = 0; y < tileSize; y += brickHeight) {
|
||||
let offset = y % (brickHeight * 2) === 0 ? 0 : brickWidth / 2;
|
||||
const offset = y % (brickHeight * 2) === 0 ? 0 : brickWidth / 2;
|
||||
for (let x = offset; x < tileSize; x += brickWidth) {
|
||||
stoneWallFlowerGraphics.fillRect(x, y, brickWidth - 1, brickHeight - 1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ const server = http.createServer((req, res) => {
|
|||
|
||||
// Get the file extension
|
||||
const extname = path.extname(filePath);
|
||||
let contentType = MIME_TYPES[extname] || 'application/octet-stream';
|
||||
const contentType = MIME_TYPES[extname] || 'application/octet-stream';
|
||||
|
||||
// Read the file
|
||||
fs.readFile(filePath, (error, content) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue