Skip to main content

Game Mechanics Overview

Learn how all the systems in La Légende des Trois Gardiens work together to create an engaging gameplay experience.

Core Gameplay Systems

La Légende des Trois Gardiens combines several interconnected systems:

🗺️ Exploration System

  • Hexagonal Map - Territory-based exploration using H3 geospatial indexing
  • Territory Discovery - Unlock new areas as you progress
  • Dynamic Content - Territories can refresh with new challenges

🎮 Challenge System

  • Two Main Types - Mini-games and quizzes
  • Difficulty Scaling - Challenges adapt based on your level
  • Replay Capability - Improve your scores anytime
  • Diverse Content - Multiple game styles and mechanics

💰 Economy System

  • Coin Currency - Earn from completing challenges
  • Score-to-Coins - Your performance directly translates to rewards
  • Server-Backed - Persistent wallet across sessions
  • Fair Earning - No pay-to-win, skill-based rewards

📊 Progression System

  • Territory Completion - Track conquered hexagons
  • Narrative Progress - Advance through the story
  • Artifact Collection - Gather legendary treasures
  • Skill Development - Master different challenge types

👥 Social System

  • Multiplayer Rooms - Team-based gameplay
  • Room Codes - Easy friend invitation
  • Shared Rewards - Cooperative benefits
  • Leaderboards - Compare scores (coming soon)

Gameplay Flow

Single Player Flow

1. Select Territory (Map)

2. View Challenge Info (Intro)

3. Calibrate Device (if motion game)

4. Play Challenge (Mini-game/Quiz)

5. View Results & Earn Coins

6. Choose Next Action (Replay/Continue/Inventory)

Multiplayer Flow

1. Create/Join Room

2. Wait for Players (Waiting Room)

3. Host Starts Challenge

4. Team Plays Together

5. View Team Results

6. Share Rewards

Key Mechanics Explained

Motion Control System

How It Works:

  • Uses your device's accelerometer and gyroscope
  • Detects tilt, orientation, and movement
  • Smooth input processing with noise filtering
  • Calibration for personalized baseline

Games Using Motion:

  • Spirit Maze - Tilt to move character
  • Sentinel Gaze - Freeze detection
  • Cosmic Collector - Tilt to aim and move

Features:

  • Permission-based access
  • Graceful fallback for unsupported devices
  • Real-time calibration adjustments
  • Visual feedback of motion state

Scoring System

Score Calculation: Each challenge calculates score differently:

  • Mini-Games: Points based on performance metrics (distance, items collected, enemies defeated, time)
  • Quizzes: Correct answers × base points
  • Bonuses: Time bonuses, perfect runs, combos

Coin Conversion:

  • Score directly converts to coins
  • Success = full coin reward
  • Failure = 0 coins (no penalty, just retry)
  • Example: Score of 1000 = 1000 coins earned

Server Validation:

  • Scores submitted to server via API
  • Prevents cheating
  • Persistent across devices
  • Real-time wallet updates

Challenge Difficulty

Difficulty Levels:

  • Easy - Great for beginners, lower coin rewards
  • Normal - Balanced challenge and rewards
  • Hard - Expert level, maximum coin potential

Adaptive Elements: Some games adjust difficulty:

  • Level-Based: Enemies get faster/smarter
  • Time-Based: Shorter reaction windows
  • Pattern-Based: More complex obstacles

Difficulty Indicators:

  • Shown on challenge intro screen
  • Estimated duration displayed
  • Recommended preparation noted

Territory States

Hexagon States:

  1. Unseen - Not yet revealed on map
  2. Available - Unlocked and ready to play
  3. Completed - Challenge finished at least once
  4. Mastered - High score achieved (optional goal)

State Transitions:

  • Completing adjacent territories may unlock new ones
  • Story progression opens new regions
  • Some territories may have prerequisites

Retry & Replay

Unlimited Retries:

  • No energy system or cooldowns
  • Replay any challenge anytime
  • Work to improve high scores
  • Practice makes perfect

Score Tracking:

  • Best score saved per challenge
  • View personal bests in profile
  • Compare improvements over time

Offline Capabilities

What Works Offline:

  • View cached map data
  • Access downloaded territories
  • Read challenge descriptions
  • View inventory (cached)

What Requires Connection:

  • Score submission
  • Coin rewards
  • Wallet updates
  • Multiplayer features
  • New content loading

Offline Fallback:

  • Local score storage when offline
  • Sync when connection restored
  • Graceful error messages
  • Cached content available

Advanced Mechanics

Calibration System

Purpose: Set your device's neutral position for optimal motion control

When to Calibrate:

  • First time playing motion games
  • When switching play positions (sitting/standing)
  • If controls feel unresponsive
  • After device orientation changes

Calibration Types:

  • Per-Game: Calibrate before each challenge (legacy)
  • Global: One calibration for all games (recommended)

How It Works:

  1. Hold device in comfortable position
  2. Tap "Calibrate" button
  3. System records current orientation
  4. All motion calculated relative to this baseline

Wake Lock System

Purpose: Prevent screen from sleeping during gameplay

Automatic Activation:

  • Enabled when entering any game
  • Active during challenge play
  • Disabled after completion
  • Battery-conscious implementation

Benefits:

  • Uninterrupted gameplay
  • No accidental screen timeouts
  • Seamless motion control experience

Wallet System

Server-Backed Balance:

  • Authoritative coin balance on server
  • Real-time updates after challenges
  • Synchronized across all devices
  • Immutable transaction ledger

Transaction Types:

  • EARN: Completing challenges
  • SPEND: Future shop features
  • BONUS: Special events/achievements

Features:

  • View transaction history
  • Track earnings over time
  • Real-time balance updates
  • Offline fallback display

Fragment Collection

Key Fragments: Collect pieces to unlock artifacts:

  • Found in specific territories
  • Required for treasure sites
  • Three fragments per artifact
  • Unlock passive abilities

Collection Progress:

  • Track per-artifact progress
  • Visual indicators on map
  • Hints toward fragment locations
  • Rewarding exploration

Interaction Systems

Permission Management

Motion Sensors:

  • Requested first time used
  • Can be revoked in device settings
  • Graceful fallback if denied
  • Re-request if needed

Camera (AR Studio):

  • Required for AR Selfie mode
  • Optional feature
  • Privacy-conscious implementation
  • Clear permission prompts

Input Methods

Touch Controls:

  • Menu navigation
  • Button interactions
  • Swipe gestures (where applicable)

Motion Controls:

  • Tilt for movement
  • Orientation for aiming
  • Shake for special actions (game-specific)
  • Freeze detection (Sentinel Gaze)

Keyboard/Mouse (Desktop):

  • Arrow keys for navigation
  • Click for selections
  • Limited motion control support

Performance & Optimization

Loading Strategies

Progressive Loading:

  • Critical content first
  • Images load as needed
  • Lazy component loading
  • Service worker caching

Asset Optimization:

  • Compressed images
  • Efficient sprite sheets
  • Minimal external dependencies
  • Fast initial load

Battery Considerations

Power-Saving Features:

  • Automatic wake lock disable
  • Efficient motion polling
  • Reduced animations when low battery
  • Smart sensor usage

Next Steps

Dive deeper into specific systems:


Pro Tip: Understanding these core mechanics will help you strategize your progression and maximize your coin earnings!