# ๐ŸŽฎ IGRA MECHANICS - KAKO ลฝE DELA ## โœ… **KAR JE ลฝE IMPLEMENTIRANO:** ### **1. GENERATIONAL SYSTEM** (523 lines!) **File:** `GenerationalGameplaySystem.js` #### **Permadeath Mode:** ```javascript - Kai umre โ†’ Lahko nadaljujeลก kot: 1. Njegova ลพena (ฤe je poroฤen) 2. Njegov otrok (ฤe je adult) 3. Game Over (ฤe ni heirs) ``` #### **Death System:** ```javascript handlePlayerDeath(cause): 1. Mark protagonist as deceased 2. Create grave 3. Find adult heirs 4. Trigger legacy transition cutscene 5. Switch protagonist to heir 6. Transfer inheritance (farm, items, money) ``` #### **Inheritance:** ```javascript Heir inherits: - 100% farm ownership - 100% buildings - 100% zombie workers - 80% money - 50% relationships (NPCs remember you!) - Legacy bonus (based on deceased's achievements) ``` --- ### **2. LEGACY SYSTEM** (145 lines!) **File:** `LegacySystem.js` #### **Age System:** - 1 in-game year = 28 days - Character ages every 28 days - Start at 18 years old - Can live 100+ years! #### **Marriage:** - Propose to NPCs - Need high reputation (50+) - Can have children #### **Children:** - Born from marriage - Age up every year - Become playable at 18 --- ### **3. ANA CLUE SYSTEM** (414 lines!) **File:** `AnaClueSystem.js` #### **50 Collectibles:** - 15 Messages - 12 Photos - 23 Personal Items #### **IMPORTANT:** Quest se nadaljuje skozi generacije! ```javascript - Kai iลกฤe Ano โ†’ Ne najde โ†’ Umre - His son nadaljuje quest โ†’ Ne najde โ†’ Umre - His grandson nadaljuje quest โ†’ NAJDE! ``` **NPCs pomnijo:** - "Your grandfather spoke of finding his sister..." - "The quest for Ana continues..." --- ## ๐Ÿ“ **CORE GAMEPLAY LOOP:** ### **MAIN FOCUS:** ``` 1. Build farm (8x8 โ†’ 100x100) 2. Control zombies (farm workers, level 1-10) 3. Restore towns (27 towns) 4. NPCs move in 5. Lend zombies to NPCs 6. Get married 7. Have children 8. Age/die โ†’ Continue as heir 9. Repeat for 100+ years! ``` ### **SIDE QUEST (Optional):** ``` Search for Ana: - Find 50 clues across world - Unlock story events - Multiple generations can search - Quest completes when found - True ending if all clues found ``` --- ## ๐ŸŽฏ **GAMEPLAY SCENARIOS:** ### **Scenario 1: Normal Playthrough** ``` Year 1-20: Kai builds farm, searches for Ana casually Year 21-40: Kai marries Elena, has son David Year 41-50: Kai dies of old age (70 years old) โ†’ SWITCH TO DAVID (18 years old) Year 51-70: David continues farm, finds some Ana clues Year 71-90: David marries, has daughter Maria Year 91-100: David dies โ†’ SWITCH TO MARIA Year 101+: Maria finally finds Ana! TRUE ENDING! ``` ### **Scenario 2: Permadeath Early** ``` Year 3: Kai dies in boss fight (age 21) โ†’ NO WIFE, NO KIDS โ†’ GAME OVER! ``` ### **Scenario 3: Focus on Ana Quest** ``` Year 1-10: Kai ignores farm, ONLY searches for Ana Year 11: Finds 50/50 clues! Year 12: Finds Ana! Year 13: TRUE ENDING! โ†’ Can continue playing with Ana as co-op! ``` --- ## ๐Ÿ”„ **INHERITANCE MECHANICS:** ### **What Transfers:** ``` โœ… Farm (100%) โœ… Buildings (100%) โœ… Zombie workers (100%) โœ… Money (80%) โœ… Items inventory (100%) โœ… NPC relationships (50% - they remember you!) โœ… Ana clues found (100% - quest continues!) โœ… Achievements (100%) ``` ### **What Resets:** ``` โŒ Level (back to 1) โŒ Skills (restart skill tree) โŒ Age (back to 18) โŒ Marriage status (single again) ``` ### **Legacy Bonuses:** ``` If deceased was: - Level 80 โ†’ Heir gets +10% XP gain - Master farmer โ†’ Heir gets +5% crop yield - Zombie master โ†’ Heir gets +2 zombie capacity - Rich (100k gold) โ†’ Heir gets bonus starting gold ``` --- ## ๐Ÿ’œ **ANA QUEST DETAILS:** ### **Clue System:** ```javascript // Clues persist across generations! Generation 1 (Kai): Finds 15/50 clues Generation 2 (Son): Finds 25/50 clues (15 + 10 new) Generation 3 (Grandson): Finds 50/50 clues! COMPLETE! ``` ### **NPC Dialogue Changes:** ``` Generation 1: NPC: "Looking for your sister? I'll keep an eye out." Generation 2: NPC: "Your father spoke of finding his aunt Ana. The quest continues through you, brave one." Generation 3: NPC: "Three generations searching... Your great-aunt's story must be found! Here, I have something..." โ†’ Gives final clue! ``` --- ## ๐ŸŽฎ **GAMEPLAY OPTIONS:** ### **Option A: Farming Focus** - Ignore Ana quest completely - Build massive farm empire - Play for 100+ in-game years - Multiple generations of farmers - **Goal:** Biggest farm in world! ### **Option B: Story Focus** - Rush to find all 50 clues - Complete Ana quest ASAP - Get true ending - **Goal:** Rescue Ana! ### **Option C: Balanced** - Build farm to sustain yourself - Search for clues casually - Let multiple generations continue quest - **Goal:** Both! --- ## โœ… **WHAT NEEDS TO BE ADDED:** ### **1. Story Integration File** Connect existing systems: - Link AnaClueSystem with GenerationalSystem - Ensure clues persist across deaths - NPC dialogue updates per generation ### **2. Death UI** - "Choose your heir" screen - Legacy stats display - Family tree visualization ### **3. Ana Quest Completion** - Final cutscene when all clues found - True ending trigger - Co-op mode unlock (play as Kai + Ana) --- ## ๐Ÿ“Š **SUMMARY:** **MAIN GAME:** - Farm building + zombie workers - Generational gameplay - 100+ years possible - **ALREADY FULLY IMPLEMENTED!** โœ… **SIDE QUEST:** - Find Ana (50 clues) - Optional but rewarding - True ending unlock - **ALREADY FULL IMPLEMENTED!** โœ… **ONLY MISSING:** - Connection between systems - Final cutscenes - UI polish --- ## ๐ŸŽฏ **NEXT STEPS:** 1. โœ… Create this document (DONE!) 2. Create `ZGODBA_INTRO.md` (Game intro only) 3. Create `ZGODBA_FLASHBACKS.md` (Gradual reveals) 4. Update AnaClueSystem messages from detailed story 5. Test generational inheritance with Ana quest **ลฝeliลก da nadaljujem s korakom 2-5?** ๐Ÿ“ --- **Everything is already in the game!** ๐ŸŽฎโœจ **Just needs content polish and integration!** ๐Ÿ’œ