Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.81 KB

File metadata and controls

44 lines (31 loc) · 1.81 KB

🍄 Super Mario Bros - AI Storytelling Edition An enhanced version of Super Mario Bros featuring AI-powered dynamic storytelling, relationship systems, and adaptive gameplay based on player choices. Original source code found at: https://github.com/karol-f/FullScreenMario

Setup

  1. Get a free API key from Google AI Studio
  2. Replace YOUR_GEMINI_API_KEY_HERE in relationship_scenarios.js

✨ Features 🤖 AI-Powered Storytelling

Dynamic Scenarios: Gemini AI generates unique dialogue scenarios at the end of each level Context-Aware: AI remembers previous interactions and adapts scenarios based on relationship history Multiple NPCs: Interact with Toad, Goomba, and Koopa Troopa characters

💝 Relationship System

Dynamic Relationships: Build friendships or rivalries with NPCs through your choices Persistent Scores: Relationship scores range from -100 (Enemy) to +100 (Best Friend) Visual Feedback: See relationship changes in real-time with on-screen notifications Affects Gameplay: Relationships modify NPC behavior:

Allies (50-100): NPCs become friendly, don't hurt you, and move slowly Neutral (-49 to 49): Normal behavior Enemies (-50 to -100): NPCs become more aggressive and faster

🎭 Interactive Dialogue System

Three Choices: Every scenario presents positive, neutral, and negative options Score Impact:

Positive choices: +15 relationship Neutral choices: 0 relationship Negative choices: -15 relationship

Consequences: See immediate outcomes of your decisions Triggers: Dialogue appears after completing non-castle levels (X-1, X-2, X-3)

🗺️ Dynamic Map Modification

Real-time Changes: NPC behavior adapts based on relationships Persistent Effects: Modifications survive player death and respawns Visual Indicators: Allied NPCs have green tint, enemies have red tint