// ======================================================== // TESTNI PRIMER - Postavitev Ograj // ======================================================== // // KAKO UPORABITI: // 1. Kopiraj celotno vsebino te datoteke // 2. Odpri src/scenes/GameScene.js // 3. Najdi create() metodo // 4. Prilepi kodo TAKOJ PO: this.buildSystem = new BuildSystem(this); // 5. Shrani in osveži igro (F5 ali ponovno zaženi npm start) // ======================================================== // TESTNI PRIMER 1: Ena sama ograja this.buildSystem.placeSingleFence(50, 50, 'fence_post', false); console.log('✅ Test 1: Ena ograja postavljena na (50, 50)'); // TESTNI PRIMER 2: Vodoravna linija ograj (10 ograj) for (let i = 0; i < 10; i++) { this.buildSystem.placeSingleFence(45 + i, 52, 'fence_horizontal', false); } console.log('✅ Test 2: Vodoravna linija 10 ograj'); // TESTNI PRIMER 3: Navpična linija ograj (10 ograj) for (let i = 0; i < 10; i++) { this.buildSystem.placeSingleFence(43, 48 + i, 'fence_vertical', false); } console.log('✅ Test 3: Navpična linija 10 ograj'); // TESTNI PRIMER 4: Majhen pravokotnik (8x6) this.buildSystem.placeFenceRectangle(60, 45, 8, 6, 'fence_post', false); console.log('✅ Test 4: Pravokotnik 8x6 ograj'); // TESTNI PRIMER 5: Diagonalna linija (Bresenham) this.buildSystem.placeFenceLine(30, 30, 40, 40, 'fence_corner', false); console.log('✅ Test 5: Diagonalna linija ograj'); // TESTNI PRIMER 6: Večji pravokotnik (20x15) this.buildSystem.placeFenceRectangle(20, 60, 20, 15, 'fence_horizontal', false); console.log('✅ Test 6: Velik pravokotnik 20x15 ograj'); // TESTNI PRIMER 7: Različni tipi ograj v vrsti this.buildSystem.placeSingleFence(70, 50, 'fence', false); this.buildSystem.placeSingleFence(71, 50, 'fence_post', false); this.buildSystem.placeSingleFence(72, 50, 'fence_horizontal', false); this.buildSystem.placeSingleFence(73, 50, 'fence_vertical', false); this.buildSystem.placeSingleFence(74, 50, 'fence_corner', false); console.log('✅ Test 7: Vsi 5 tipov ograj v vrsti'); console.log('🎉 VSI TESTNI PRIMERI KONČANI! Preveri mapo za ograje.'); // ======================================================== // OPOMBE: // - Zadnji parameter (false) pomeni, da se viri NE porabijo // - Spremeni v (true), če želiš testirati porabo virov // - Koordinate so v grid sistemu (0-99) // - Ograje se prikažejo takoj po nalaganju igre // ========================================================