Odstranitev umazane vode in ciscenje scene za clean start
This commit is contained in:
@@ -106,6 +106,8 @@ export default class GrassSceneClean extends Phaser.Scene {
|
||||
this.ground.setDepth(-100);
|
||||
|
||||
// --- 2. STREAM SYSTEM (Head + Extensions) ---
|
||||
// REMOVED PER USER REQUEST (Clean Start)
|
||||
/*
|
||||
// Center the whole construction
|
||||
const startX = WORLD_W / 2;
|
||||
const startY = WORLD_H / 2 - 300; // Start higher up to leave room for extensions
|
||||
@@ -126,10 +128,30 @@ export default class GrassSceneClean extends Phaser.Scene {
|
||||
|
||||
// Collider added later after Kai creation
|
||||
|
||||
// --- 2.1 STREAM BURYING (Dirt Patches) ---
|
||||
// "Zakopaj" potok v zemljo (masking edges)
|
||||
const dirtOffsets = [
|
||||
{ x: -350, y: 150 }, // Left side
|
||||
{ x: 380, y: 180 }, // Right side (The "other" side?)
|
||||
{ x: 0, y: 300 } // Bottom center
|
||||
];
|
||||
|
||||
dirtOffsets.forEach((off, i) => {
|
||||
let dirt = this.add.image(startX + off.x, startY + off.y, 'ground_dirt_patch');
|
||||
dirt.setScale(0.8 + Math.random() * 0.4); // Random size
|
||||
dirt.setAngle(Math.random() * 360); // Random rotation
|
||||
dirt.setDepth(-45); // Above stream (-50), below Kai
|
||||
dirt.setTint(0xdddddd); // Slightly darker to match mud
|
||||
dirt.setInteractive({ draggable: true }); // Allow user to adjust!
|
||||
});
|
||||
*/
|
||||
|
||||
// --- 3. FOLIAGE (Trava - Šopi) ---
|
||||
// Removed as requested
|
||||
|
||||
// --- 4. ITEMS & OBSTACLES ---
|
||||
// REMOVED PER USER REQUEST
|
||||
/*
|
||||
// Trnje (Thorns) - Draggable
|
||||
this.trnje = this.add.image(startX - 200, startY + 100, 'trnje');
|
||||
this.trnje.setScale(0.5); // Adjust scale if needed
|
||||
@@ -146,6 +168,9 @@ export default class GrassSceneClean extends Phaser.Scene {
|
||||
this.rainCatcher.setDepth(startY + 50); // Y-sort
|
||||
this.rainCatcher.body.setImmovable(true);
|
||||
// Collider added later with Kai
|
||||
*/
|
||||
|
||||
// General Drag Event
|
||||
|
||||
// General Drag Event
|
||||
this.input.on('drag', function (pointer, gameObject, dragX, dragY) {
|
||||
@@ -423,6 +448,8 @@ export default class GrassSceneClean extends Phaser.Scene {
|
||||
// this.physics.add.collider(this.kai, this.stream);
|
||||
|
||||
// --- NEW: GRONK (NPC) ---
|
||||
// REMOVED PER USER REQUEST
|
||||
/*
|
||||
this.gronk = this.physics.add.sprite(startX - 150, startY - 100, 'gronk');
|
||||
this.gronk.setScale(0.8); // Gronk is big!
|
||||
this.gronk.setDepth(startY - 100);
|
||||
@@ -445,10 +472,11 @@ export default class GrassSceneClean extends Phaser.Scene {
|
||||
console.log("Gronk: 'Ej stari, kje si hodil? Si pozabil, da imava vajo s bendom?'");
|
||||
// Future: Show Dialog Box
|
||||
});
|
||||
*/
|
||||
|
||||
// Colliders
|
||||
this.physics.add.collider(this.kai, this.rainCatcher);
|
||||
this.physics.add.collider(this.kai, this.gronk);
|
||||
// this.physics.add.collider(this.kai, this.rainCatcher);
|
||||
// this.physics.add.collider(this.kai, this.gronk);
|
||||
|
||||
// --- ANIMATIONS ---
|
||||
// 0-3: Down, 4-7: Left, 8-11: Right, 12-15: Up
|
||||
|
||||
Reference in New Issue
Block a user