Files
novafarma/src
David Kotnik ad68b95519 🎮 WEEK 1 DEBUG COMMANDS COMPLETE!
 11 KEYBOARD SHORTCUTS ADDED:

🔧 SPAWN NPCS:
- F10: Spawn Electrician (near player)
- F11: Spawn Zombie Statistician (near player)

🏗️ BUILD STRUCTURES:
- F12: Build ALL Week 1 buildings (Generator, City Hall, Board, Depot)

📦 RESOURCE TESTING:
- Numpad 1: Add resources (100 wood, 50 food, 75 stone)
- Numpad 2: Drop resources around player (for auto-pickup test)

💼 EMPLOYMENT:
- Numpad 3: Hire Electrician (auto-hire)
- Numpad 4: Hire Zombie Statistician (auto-hire)

🎬 TRIGGER ACTIONS:
- Numpad 5: Electrician inspection (walk to generator, inspect)
- Numpad 6: Electrician repair (walk, repair with VFX!)
- Numpad 7: Zombie Statistician update board (walk, update stats)

📊 DEBUG INFO:
- Numpad 8: Show all Week 1 stats (resources, population, generator)

🎯 TESTING WORKFLOW:
1. Press F12 (build all structures)
2. Press F10 + F11 (spawn both NPCs)
3. Press Numpad 3 + 4 (hire both)
4. Press Numpad 2 (drop test resources)
5. Press Numpad 6 (watch Electrician repair with sparks!)
6. Press Numpad 7 (watch Statistician update board!)
7. Press Numpad 8 (check all stats)

📝 CONSOLE LOGGING:
- All commands log to console
- Success/warning messages
- Full command list on init
- Easy debugging

🚀 READY FOR FULL TESTING:
- npm start
- Open console (F12)
- See Week 1 debug commands list
- Test all 11 shortcuts!

Next: Final session summary! 📚
2026-01-10 01:19:25 +01:00
..
2026-01-08 23:34:22 +01:00
2026-01-08 01:53:09 +01:00
2026-01-10 01:19:25 +01:00
2026-01-10 01:14:24 +01:00

Dolina Smrti - Source Code

Glavna izvorna koda za igro Dolina Smrti (Valley of Death).

Struktura

  • data/ - Podatkovne datoteke (recepti, konfiguracije)
  • entities/ - Igralne entitete (Player, NPC, Creatures)
  • scenes/ - Phaser scene (GameScene, MenuScene, itd.)
  • systems/ - Sistemi igre (130+ sistemov!)
  • ui/ - UI komponente in vmesniki
  • utils/ - Pomožne funkcije in orodja
  • workers/ - Web Workers za ozadjene naloge
  • game.js - Glavni Phaser game konfiguracija

Glavne Scene

Igra uporablja Phaser 3 framework s sistemom scene. Vse scene so v scenes/ direktoriju.

Sistemi

Več kot 130 sistemov skrbi za različne aspekte igre - od zombijev do farmanja.