🔥 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. 🔥