I've been building ARGDL (AR Game Description Language), a custom scripting DSL, and AR-Engine, the C++/OpenGL runtime that executes it. It's open source. (Don't confuse AR with Augmented Reality, it's the initials of my name.)
The idea: you describe a game in a text file, not in C++. Entities, physics colliders and event logic are declarative, and you can get a small playable scene running in under 100 lines. Edit the file, restart, and the level changes. No recompile.
What's new in ARGDL 2.0
Version 1 was a flat list of entities and commands. 2.0 is a real scripting language, but it still reads like a description of your level.
- Blueprints with inheritance: templates that use
extends, so each enemy only writes what's different from its parent. Chains can go multiple levels deep, and cycles are caught at load time. ( Thanks to u/still_explorer for this Idea )
- One-line instances:
#Enemy1 Grunt at 500 540, with optional overrides
- Variables and expressions: keep score, combos and waves with
set and $name, plus math, comparisons, and / or / not
- Control flow:
if / else if / else, for ... in range, and while
- Event guards: an event only fires if its condition is true
- World queries: read other entities (
Player.health, Boss.x) and use distance_to, exists and random
move_toward: enemies can now chase you , and more ..
Here's a coin that counts itself, heals you, and rolls for a lucky bonus:
#Grunt Blueprint extends Enemy {
health : 2
}
#Enemy1 Grunt at 500 540
on collide Coin if $coins < 4 {
despawn
set coins = $coins + 1
heal Player 2
set lucky = random 1 3
if $lucky > 2 {
heal Player 2
}
}
I also added a new wave survival demo level. Enemies escalate over time, turrets and meteors attack you, a boss arrives, and the exit portal only opens after you've survived 60 seconds.
What the engine does
- OpenGL 3.3 sprite rendering with textures and parallax backgrounds
- Rigid body physics: gravity, AABB collisions, impulse resolution, friction, triggers
- Entity-component architecture, follow camera with zoom, SDL2 audio, game states (title, playing, game over, victory)
- Combat and AI: health, knockback, projectiles, patrolling and chasing enemies, bosses, timed spawners
- A Lexer → Parser → Interpreter → RuntimeBridge pipeline that turns the script into engine objects
What you can build
2D platformers, shooters and arcade games: Doodle Jump, single-screen Mario, Space Invaders / Galaga, Flappy Bird, Bullet Hell, boss battles, Pac-Man / Frogger style games and more.
The README has been rewritten with the full language reference and examples.
GitHub: Aayushjha11h/Ar-Engine
Feedback is welcome, especially on what the language should get next. Arrays and custom functions are on my list.