AR Engine
A custom 2D game engine with an original scripting language, built from zero dependencies in 9 hours.
Tech Stack
C++17 · OpenGL 3.3 · GLSL · SDL2 · GLM · stb_image
Architecture
Lexer → Parser → AST → Interpreter → Runtime Bridge
Systems
Entity-Component-System · Impulse Physics · AABB Collision · Spatial Audio · Orthographic Renderer · ARGDL Compiler
Key Decision
Instead of embedding Lua or Python, I designed and implemented ARGDL — a domain-specific language with its own grammar, tokenizer, and execution runtime. Games are described, not programmed.
Version
AR Engine v1.1 — Now with Conditionals, Loops, and Blueprints
# Conditionals & Variable Logic
on collide Coin if $coins < 5 {
// <- guard: only fires while coins < 5
despawn
set coins = $coins + 1
if $coins == 5 {
victory
}
}
# Blueprint System
#Enemy Blueprint {
size : 32
color : purple
health : 3
speed : 160
patrol_speed : 80
tag : Enemy
}
Real engine runtime & custom language compiler • AR Engine v1.1 now includes Conditionals, Loops, and Blueprints — making ARGDL a complete GDL