This commit is contained in:
Wuesteon 2025-12-04 00:32:13 +01:00
parent 16cb8e753b
commit e9caa4a217
46 changed files with 1784 additions and 728 deletions

View file

@ -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);
}

View file

@ -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) => {