๐ฅ Elden Stack
Ascend the Tower of Memory. Master the Ancient Art of C.
A Dark Souls-inspired platformer game that teaches low-level C programming through epic challenges.
๐ฎ Play Now
Download elden-stack.html and open it in your browser. Thatโs it!
No installation, no dependencies, no server needed. Just pure gaming + learning.
โจ Features
๐ฏ 5 Epic Levels
- Level 1: Memory Basics - malloc() and pointers
- Level 2: Stack vs Heap - Memory management
- Level 3: Buffer Overflow - Security vulnerabilities
- Level 4: Linked Lists - Data structures
- Level 5: Boss Fight - Memory Leak Monster
๐ก Learning Features
- Real C code challenges
- In-game โฆ
๐ฅ Elden Stack
Ascend the Tower of Memory. Master the Ancient Art of C.
A Dark Souls-inspired platformer game that teaches low-level C programming through epic challenges.
๐ฎ Play Now
Download elden-stack.html and open it in your browser. Thatโs it!
No installation, no dependencies, no server needed. Just pure gaming + learning.
โจ Features
๐ฏ 5 Epic Levels
- Level 1: Memory Basics - malloc() and pointers
- Level 2: Stack vs Heap - Memory management
- Level 3: Buffer Overflow - Security vulnerabilities
- Level 4: Linked Lists - Data structures
- Level 5: Boss Fight - Memory Leak Monster
๐ก Learning Features
- Real C code challenges
- In-game hint system (3 hints per level)
- Progressive difficulty curve
- Instant code validation
- Memory visualization
๐จ Game Mechanics
- Platformer physics (jump, move, dodge)
- Health system (3 hearts)
- Collectibles (coins, gems, hearts, shields)
- XP and achievement system
- Anonymous username generator
- Local progress saving
๐ Achievements
- ๐ฏ First Blood - Complete level 1
- ๐ Pointer Master - Master pointer basics
- ๐พ Memory Manager - Understand stack vs heap
- ๐ก๏ธ Security Expert - Prevent buffer overflow
- โก Data Structure Ninja - Implement linked list
- ๐ Boss Slayer - Defeat Memory Leak Monster
- โก Speedrunner - Complete level under 2 minutes
- ๐ช Flawless - No damage taken
๐ Quick Start
Play Locally
# Download the file
curl -O https://raw.githubusercontent.com/YOUR_USERNAME/elden-stack/main/elden-stack.html
# Open in browser
open elden-stack.html # macOS
xdg-open elden-stack.html # Linux
start elden-stack.html # Windows
Or just double-click the file!
Host on GitHub Pages
# Fork this repo
# Go to Settings > Pages
# Select main branch
# Your game is live at: https://YOUR_USERNAME.github.io/elden-stack/elden-stack.html
๐ฎ Controls
| Key | Action |
|---|---|
| Arrow Keys or A/D | Move left/right |
| Space or W or โ | Jump |
| Mouse | Code editor & buttons |
๐ฏ How to Play
- Generate a Username - Get your epic coding identity (e.g., โQuantumStarforged42โ)
- Start Playing - Jump on platforms, avoid spikes
- Solve Challenges - Fix the C code in the editor
- Run Code - Test your solution
- Unlock Door - Enter and progress to next level
- Beat the Boss - Defeat the Memory Leak Monster!
๐ ๏ธ Tech Stack
- Vanilla JavaScript - No frameworks, just pure JS
- HTML5 & CSS3 - Modern web standards
- Web Crypto API - Username generation
- LocalStorage - Progress saving
- Zero Dependencies - Everything in one file
๐ Stats
- Lines of Code: ~2,000
- File Size: 76 KB
- Dependencies: 0
- Levels: 5
- Achievements: 8
- Possible Usernames: 67+ million
๐จ Design Philosophy
Elden Stack combines:
- ๐ฎ Gaming - Elden Ring/Dark Souls aesthetic
- ๐ป Education - Real C programming concepts
- ๐ Accessibility - No barriers to entry
- ๐ฏ Challenge - Difficult but fair
Learning C is hard. Elden Ring is hard. Both are incredibly rewarding.
๐ Why Elden Stack?
For Students:
- โ Makes learning C actually fun
- โ Visual, interactive approach
- โ Instant feedback on code
- โ Gamified progression
For Teachers:
- โ Engaging homework assignments
- โ Self-paced learning
- โ Covers core C concepts
- โ No setup required
For Gamers:
- โ Elden Ring reference (epic!)
- โ Actual platformer gameplay
- โ Achievement hunting
- โ Speedrunning potential
๐ What Youโll Learn
Level 1 - Memory Basics
// Learn malloc(), pointers, and free()
int *sword_power = malloc(sizeof(int));
*sword_power = 100;
free(sword_power);
Level 2 - Stack vs Heap
// Understand memory allocation differences
int stack_var = 42; // Stack
int *heap_var = malloc(sizeof(int)); // Heap
Level 3 - Buffer Overflow
// Learn secure coding practices
char buffer[10];
strncpy(buffer, input, sizeof(buffer) - 1);
Level 4 - Linked Lists
// Build data structures
struct Node {
int data;
struct Node *next;
};
Level 5 - Boss Challenge
// Debug complex code with memory leaks
// Find and fix the bugs!
๐ค Contributing
Want to add more levels, fix bugs, or improve the game?
# Fork the repo
# Make your changes
# Test thoroughly
# Submit a pull request
Ideas for contributions:
- ๐ฎ New levels or challenges
- ๐จ Visual improvements
- ๐ Sound effects / music
- ๐ Translations
- ๐ Additional hints
- ๐ New achievements
๐ License
MIT License - Feel free to use, modify, and share!
๐ Credits
- Created by: Sukanto
- Inspired by: Elden Ring, Dark Souls, FromSoftware
- For: Everyone learning C programming
๐ Links
- Play Now: elden-stack.html
- Report Issues: GitHub Issues
- Discussions: GitHub Discussions
๐ฏ Roadmap
- Add sound effects
- More levels (6-10)
- Multiplayer mode
- Leaderboards
- Mobile touch controls
- Dark mode toggle
- Custom level editor
๐ฌ Community
Share your achievements, speedruns, and feedback!
Praise the malloc()! ๐๐ฅ
โFoul Tarnished, in search of malloc(). Embark on a journey to become Elden Compiler.โ
๐ฅ RISE, TARNISHED. MASTER THE STACK. ๐ฅ