Skip to content

matthijsgroen/pyramid-scheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

710 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿบ Pyramid Scheme

An ancient Egyptian-themed puzzle adventure game where you explore mysterious pyramids, solve hieroglyphic puzzles, and collect treasures from forgotten tombs.

Status Tech

See CHANGELOG.md for the version history.

๐ŸŽฎ Game Overview

Pyramid Scheme is a mathematical puzzle game set in ancient Egypt. Players explore pyramid interiors of increasing difficulty, solving symbolic puzzles to collect hieroglyph fragments and map pieces, then spend those to unlock treasure tombs guarded by traps and sealed gates.

๐ŸŽฏ Core Gameplay

  • Explore Pyramid Interiors: Navigate branching floors across 5 difficulty tiers, from Starter to Wizard
  • Solve Puzzles: Decode hieroglyphic symbols using mathematical formulas
  • Collect Hieroglyph Fragments: Complete hieroglyphs to unlock tomb tableau rooms that require them
  • Survive Traps: Beat arithmetic reflex challenges and trap corridors, or spend consumables to heal and bypass them
  • Unlock Ward Gates: Use ward-key treasures earned in tombs to open sealed floors back in the pyramids
  • Claim Treasures: Clear treasure tombs for permanent passive effects โ€” more health, armor, and better fragment/hidden-path detection

๐Ÿ—บ๏ธ Journey Types

๐Ÿ”บ Pyramid Expeditions

Explore ancient pyramids across different times of day:

  • Morning ๐ŸŒ… - Fresh start expeditions
  • Afternoon โ˜€๏ธ - Peak exploration hours
  • Evening ๐ŸŒ‡ - Twilight adventures
  • Night ๐ŸŒ™ - Mysterious nocturnal quests

Difficulty Progression:

  • ๐ŸŸข Starter - Learn the basics
  • ๐Ÿ”ต Junior - Build confidence
  • ๐ŸŸก Expert - Test your skills
  • ๐ŸŸ  Master - Challenge yourself
  • ๐Ÿ”ด Wizard - Ultimate mastery

๐Ÿ—๏ธ Treasure Tombs

9 tombs across the 5 tiers, unlocked with map pieces collected from pyramid floors. Higher tiers have multiple tombs โ€” later ones are revealed by a location-key treasure found in the tier's first tomb:

  • Forgotten Merchant's Cache (Starter)
  • Noble's Hidden Vault (Junior)
  • High Priest's Treasury โ†’ Inner Sanctum (Expert)
  • Hall of Ma'at โ†’ Hall of Osiris (Master)
  • Vault of the Gods โ†’ Realm of Cosmic Forces โ†’ Throne of Eternity (Wizard)

๐Ÿงฉ Puzzle Mechanics

Tableau System

Each level presents a tableau - a themed story puzzle with:

  • Symbolic Formula: Mathematical equations using hieroglyphic symbols
  • Progressive Revelation: Text becomes clearer as you progress
  • Thematic Narratives: Rich Egyptian mythology and culture

Symbol Categories

  • ๐Ÿ‘‘ Professions (p1-p15) - Merchants, priests, scribes, farmers
  • ๐Ÿพ Animals (a1-a15) - Sacred creatures like cats, crocodiles, ibis
  • ๐Ÿ’Ž Artifacts (art1-art15) - Tools, vessels, ceremonial objects
  • ๐Ÿบ Deities (d1-d15) - Egyptian gods and goddesses

Difficulty Scaling

  • Symbol Count: Higher difficulties use more symbols per puzzle
  • Number Ranges: Larger numbers in advanced levels
  • Floor Count: More pyramid floors to explore

๐Ÿ›๏ธ Features

๐ŸŒ Internationalization

  • English ๐Ÿ‡บ๐Ÿ‡ธ - Full game experience
  • Dutch ๐Ÿ‡ณ๐Ÿ‡ฑ - Complete Nederlandse vertaling

๐ŸŽจ Rich Theming

  • Egyptian Aesthetics: Authentic hieroglyphic symbols and desert backdrops
  • Dynamic Time Cycles: Day/night progression affects gameplay atmosphere
  • Responsive Design: Seamless experience across desktop and mobile

๐Ÿ“Š Progress Tracking

  • Journey Logs: Track completed expeditions and found treasures
  • Collection System: Catalog of discovered artifacts organized by category
  • Map Piece Progress: Visual tracking of treasure tomb unlock requirements

๐Ÿ”ง Technical Features

  • Deterministic Randomization: Consistent puzzle generation using seeded algorithms
  • Local Storage: Progress persistence across sessions
  • Storybook Integration: Component documentation and testing
  • Type Safety: Full TypeScript implementation

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 18+
  • Yarn package manager

Installation

# Clone the repository
git clone https://github.com/matthijsgroen/pyramid-scheme.git

# Navigate to project directory
cd pyramid-scheme

# Install dependencies
yarn install

# Start development server
yarn dev

The game will be available at http://localhost:9164

Development Commands

# Development server
yarn dev

# Run tests
yarn test

# Type checking
yarn check-types

# Linting
yarn lint

# Build for production
yarn build

# Storybook component documentation
yarn storybook

๐ŸŒ World Shaping

The entire level structure โ€” puzzle counts, floor depths, reward distribution, and gate types โ€” is controlled by a single authoring file:

src/worldGen/worldSpec.ts

Edit this file to shape the world: set difficulty constraints per tier or per journey, control how many puzzle floors a pyramid has, place tomb-key gates, and tune loot cadence. After editing, run yarn generate-world to regenerate src/data/generatedWorld.ts (or yarn validate-world to check the spec without writing), then inspect the results in Storybook (yarn storybook โ†’ SiteMap/JourneyInspector).

๐Ÿ—๏ธ Project Structure

src/
โ”œโ”€โ”€ worldGen/          # World authoring: worldSpec.ts rules, constraints, reward layout
โ”œโ”€โ”€ app/               # Main application components
โ”œโ”€โ”€ data/              # Game data and configuration
โ”œโ”€โ”€ game/              # Core game logic
โ”œโ”€โ”€ ui/                # Reusable UI components
โ”œโ”€โ”€ components/        # Shared React components
โ”œโ”€โ”€ contexts/          # React context providers
โ”œโ”€โ”€ config/            # App-level configuration
โ”œโ”€โ”€ support/           # Shared utilities and helpers
โ””โ”€โ”€ i18n/              # Internationalization setup

public/locales/        # Translation files
โ”œโ”€โ”€ en/                # English translations
โ””โ”€โ”€ nl/                # Dutch translations

๐ŸŽฒ Game Mathematics

The puzzle system uses carefully balanced mathematical formulas:

  • Linear Progression: Difficulty scales predictably across levels
  • Symbol Distribution: Each difficulty tier introduces new symbol sets
  • Formula Complexity: Operations range from simple addition to complex multi-step calculations
  • Deterministic Generation: Same seed always produces same puzzles for consistency

๐ŸŽฎ Gameplay Tips

  1. Start Small: Begin with Starter pyramids to learn the symbol system
  2. Pattern Recognition: Look for recurring symbol combinations
  3. Progressive Learning: Each difficulty builds on previous knowledge
  4. Map Collection: Focus on completing expeditions to unlock treasure tombs
  5. Time Management: Different times of day offer varied experiences

โš ๏ธ Development Status

This is an early alpha version!

  • Expect bugs and missing features
  • Progress may be lost between updates
  • Core gameplay mechanics are functional
  • UI and balance are still being refined

๐Ÿค Contributing

This is a personal project, but feedback and suggestions are welcome! Please feel free to:

  • Report bugs via GitHub issues
  • Suggest gameplay improvements
  • Contribute translations for additional languages

๐Ÿ“„ License

This project is private and for personal use.

Interesting sources

๐ŸŽฏ Roadmap

  • Sound effects and music
  • Mobile app versions

Embark on your journey through the mysteries of ancient Egypt! ๐Ÿบโœจ

Releases

Sponsor this project

Packages

Used by

Contributors

Languages