2048 Puzzle Engine: Miliastra Sandbox
Executive Summary
Engineered a fully functional, highly optimized 2048 grid puzzle game within the constraints of a sandboxed platform environment. Beyond implementing the foundational mathematical tile-merging algorithm, the project involved architecting a deterministic game state manager, memory-conscious event loops, and an engaging player experience complete with dynamic audio feedback and progressive achievement systems.
Challenge & Motivation
- Goal: Explore end-to-end game production from scratch within a specialized sandbox scripting framework.
- The Constraints: Working within proprietary sandbox engines requires thoroughly parsing developer documentation to navigate execution limits, restricted memory buffers, and strict resources.
- The Scope: Bridge algorithmic logic (grid state updates) with holistic player experience design (responsiveness, aesthetics, and audio feedback).
Core Engineering & Architecture
- Deterministic State Machine: Built a robust finite-state controller managing transitions across menu screens, active input turns, tile animations, game-over validations, and reward screens.
- Grid Logic & State Persistence: Designed an efficient 2D array representation to execute tile shifts, collisions, and merges in minimal execution cycles.
- Event-Driven Input Handling: Isolated input triggers to avoid race conditions during active tile merges, ensuring every button press resolves cleanly.
Game Design, UX & Player Engagement
- Visual Minimalism: Designed a clean, easily readable aesthetic that lets players track numerical hierarchies at a glance without visual fatigue.
- Audio Landscape & Feedback Loops: Curated background tracks and responsive sound effects (SFX) that escalate in pitch and intensity as tile tiers increase, delivering satisfying tactile feedback.
- Progression & Achievement System: Implemented progressive in-game milestones (e.g., reaching 512, 1024, 2048, or clearing in minimal moves) to maximize replayability and player retention.
Showcase & Screenshots
Figure 1: Game Title.
Figure 2: Active grid layout, score counters, and responsive UI.