From 1346dba937509977bb2661eeb06e31bea13dd343 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Fri, 15 May 2026 20:25:34 +0200 Subject: [PATCH] fine tunes --- src/entities/ObstaclePlatformDisappearing.ts | 4 ++-- src/entities/ObstacleSpikeTricky.ts | 4 ++-- src/entities/Player.ts | 2 +- src/levels/levels.ts | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/entities/ObstaclePlatformDisappearing.ts b/src/entities/ObstaclePlatformDisappearing.ts index 18da8cc..c2c495b 100644 --- a/src/entities/ObstaclePlatformDisappearing.ts +++ b/src/entities/ObstaclePlatformDisappearing.ts @@ -1,7 +1,7 @@ import Phaser from "phaser"; +import { Platform } from "./Platform"; export class ObstaclePlatformDisappearing extends Phaser.GameObjects.Rectangle { - static readonly COLOR = 0x9966cc; static readonly TRIGGER_DISTANCE = 110; static readonly FADE_MS = 200; @@ -10,7 +10,7 @@ export class ObstaclePlatformDisappearing extends Phaser.GameObjects.Rectangle { private vanished = false; constructor(scene: Phaser.Scene, x: number, y: number, width: number, height: number) { - super(scene, x, y, width, height, ObstaclePlatformDisappearing.COLOR); + super(scene, x, y, width, height, Platform.COLOR); scene.add.existing(this); scene.physics.add.existing(this, true); } diff --git a/src/entities/ObstacleSpikeTricky.ts b/src/entities/ObstacleSpikeTricky.ts index 107f085..00cdcb2 100644 --- a/src/entities/ObstacleSpikeTricky.ts +++ b/src/entities/ObstacleSpikeTricky.ts @@ -4,8 +4,8 @@ export class ObstacleSpikeTricky extends Phaser.GameObjects.Rectangle { static readonly WIDTH = 40; static readonly HEIGHT = 20; static readonly COLOR = 0xff8800; - static readonly TRIGGER_DISTANCE = 140; - static readonly DISPLACEMENT = 80; + static readonly TRIGGER_DISTANCE = 55; + static readonly DISPLACEMENT = 100; declare body: Phaser.Physics.Arcade.StaticBody; diff --git a/src/entities/Player.ts b/src/entities/Player.ts index dc0e2e4..0984b8b 100644 --- a/src/entities/Player.ts +++ b/src/entities/Player.ts @@ -4,7 +4,7 @@ export class Player extends Phaser.GameObjects.Rectangle { static readonly SIZE = 32; static readonly COLOR = 0xff4444; static readonly MOVE_SPEED = 250; - static readonly JUMP_VELOCITY = 600; + static readonly JUMP_VELOCITY = 480; declare body: Phaser.Physics.Arcade.Body; diff --git a/src/levels/levels.ts b/src/levels/levels.ts index 7926cff..739799e 100644 --- a/src/levels/levels.ts +++ b/src/levels/levels.ts @@ -77,8 +77,8 @@ export const LEVELS: readonly LevelDef[] = [ "....................", "....................", ".E.................P", - "######~~~~##########", - "######^^^^##########", + "#######~~~##########", + "#######~~~##########", ]), defineLevel("Csaló tüske és lépcső", [ "....................", @@ -93,8 +93,8 @@ export const LEVELS: readonly LevelDef[] = [ "....#####...........", "........#####.......", "............#####...", - "...............#####", - ".........T.........P", + "...............####.", + ".........T........P#", "####################", ]), ];