RzX Engine

RzX Engine is a 100% free, standalone HTML5 2D game engine and cloud platform. Powered by a custom, English-like programming language, it makes real coding incredibly easy. Build games directly in your browser with zero installation. Features include a visual editor, Animation Studio, built-in physics, mobile touch controls, and standalone HTML5 export. Start building in seconds!

PCRzX EngineRzXMobile
1 / 3

About this game

🚀 RzX Engine: A Complete HTML5 2D Game Engine with the RzX Programming Language

Official Website: RzX Engine

Engine Studio: https://rzx-engine.onrender.com/engine

Developer: Lakel Oussama

Category: 2D Game Engine, HTML5, Web-Based, Cloud Platform

License: 100% Free Forever

📖 What is RzX Engine?

RzX Engine is a next-generation, standalone HTML5 2D game engine and cloud platform. It is not a No-Code tool and not a visual scripting tool. At its core lies the RzX Programming Language — a formal, custom-built programming language with its own grammar, keywords, operators, and execution engine. It is a true programming language, similar in purpose to JavaScript or Python, but specialized for creating HTML5 2D games with the readability of plain English.

RzX Engine eliminates the steep learning curve of traditional game engines (like Unity or Godot) while retaining the full power and flexibility of a real programming language. You can build everything from simple platformers to complex top-down RPGs, all from a browser, with zero installation.

🗣️ The RzX Programming Language

The RzX Language is a real, formal programming language. It is NOT natural language processing, NOT a chatbot, and NOT No-Code. It is a programming language designed specifically for game logic.

Core Language Features

1. Object Definition & Behaviors

Objects are the building blocks of every game. RzX gives you complete control over them:

// Move with WASD keys
"player" move w s a d

// Move with explicit direction names

"player" move up w down s left a right d

// Jump with spacebar

"player" jump space

// Set speed (pixels per second)

"player" speed 400

// Set health points

"player" hp 100

// Clamp movement within screen bounds

"player" clamp 20 780 20 480

2. Gravity & Physics

Realistic physics with a single line:

// Global gravity (pixels per second squared)
gravity strength 1100


// Object-specific gravity in any direction

"ball" gravity down 350

"balloon" gravity up 200

3. Shooting System (Bullet Templates)

Fire any object as a bullet, with full control:

// Fire the default bullet at the mouse cursor
"player" shot LeftClick follow cursor


// Fire a custom object as a bullet (creates it dynamically)

"player" shot(ammo) LeftClick follow cursor

// Fire in a specific direction with custom speed

"player" shot(arrow) space up speed 650

// Auto-shoot an enemy toward the player every 0.5 seconds

"enemy" shot(bullet1) every 0.5s "player"

// Alternative syntax for auto-shoot

"enemy" shot(bullet2) evr 0.3s "player"

// Set bullet speed via its own line

"ammo" speed 400

4. Bounce Physics (Breakout-Style)

Realistic bouncing with strength and direction control:

// Bounce off ALL collidable objects and world bounds
"ball" bounce ".All" strng 250


// Bounce off a specific object only

"ball" bounce "wall" strng 60

// Bounce with initial direction

"ball" bounce ".All" strng 90 dir left

// Random direction between multiple options

"ball" bounce ".All" strng 90 dir up/down/left/right

// Auto start (diagonal)

"ball" bounce ".All" strng 100 dir auto

5. Events & Conditions

Trigger any logic when something happens:

// Touch detection
if "player" touches "coin" , score +10 , "coin" died


// Health check

if "player" hp <= 0 , lose + log "Game Over"

// Score check

if score >= 50 , win + log "You Win!"

// Bounce detection (fires when ball bounces off wall)

if "ball" bounce "wall" , "wall" died , score +10

// Multi-condition

if "player" touches "enemy" , "player" hp -20

// Wildcard support (+N for numbered copies)

if "enemy+1" touches "player" , "player" hp -5

// .All keyword for all matching objects

if "enemy.All" died , win + log "All Enemies Defeated!"

6. Aliases (Custom Shortcuts)

Define shortcuts to simplify repetitive code:

// Define alias: p = "player"
p = "player"


// Now use it

p move w a s d

p hp 100

7. HP & Score System

Built-in health and score management:

// Initialize health
"player" hp 100


// Reduce HP

if "enemy" touches "player" , "player" hp -25

// Add to score

if "player" touches "coin" , score +10

// Set score directly

if "player" touches "bonus" , score = 100

// Subtract from score

if "player" touches "trap" , score -5

8. Camera System

Follow the player, zoom, and control the viewport:

// Camera follows the player
camera follow "player"


// Set game world dimensions (larger than screen)

Game limit x=2000 y=2500

// Set background color

background color "#080c18"

9. Movement Patterns

AI-like movement without writing AI:

// Enemy follows the player
"enemy" follow "player" speed multiplier 0.8


// Patrol between two points

"guard" move left 200 right 200 speed 150

// Auto-move in a direction

"ball" auto move down 150

// Static directional movement

"rock" move left 100

10. Spawning Objects at Runtime

// Spawn an enemy every 2 seconds
spawn "enemy" every 2s


// Spawn on event

if score >= 100 , spawn "boss"

11. Show/Hide Objects

// Show an object after 5 seconds
"ball" show after 5s


// Show an object with animation

"coin" show dur 10s

// Hide an object

hide "menu"

12. UI Menus & Buttons

Build complete interactive menus:

if "player" lose , show 'gameover' {
width : 300px
height : 200px
background-color : blue
element : div


'restartBtn' (

text : "Restart"

color : red

background-color : yellow

width : 100px

height : 40px

cursor : pointer

)

if "player" win , show 'continueBtn' (

text : "Continue!"

color : white

background-color : green

width : 120px

height : 40px

border-radius : 10px

)

}

// Handle button clicks

if click 'restartBtn' , restart Game

13. Positional Events

// Trigger when player crosses a threshold
if "player" x >= 700 , win
if "player" y <= 50 , log "Top reached!"

🎨 The Visual Editor

Object Creation (No Code Required)

  1. Click + Object in the left panel.
  2. Choose name, shape (player, enemy, coin, wall, bullet, circle, square, triangle, star, diamond, hexagon).
  3. Set color, size, and collision mode (Pixel-Perfect, Bounding Box, or Manual Mask).
  4. Optionally upload a custom image or draw one in the built-in Drawing Studio.
  5. Click Save — the object appears on the canvas.

Drag, Drop & Resize

  1. Drag any object across the canvas.
  2. Resize using 8 handles around the selection.
  3. The canvas supports zoom (mouse wheel) and pan (right-click drag).

Layers & Z-Order

  1. Control rendering order with zIndex.
  2. Send to Front / Back / Forward / Backward via right-click menu.
  3. Background objects render behind everything (opt-in).

Folders

  1. Organize objects into collapsible folders.
  2. Move objects between folders via drag or right-click.

Collision Masks

Three modes per object:

  1. Pixel-Perfect: Exact shape collision.
  2. Bounding Box: Tight rectangle around visible content.
  3. Manual Mask: Draw a custom collision shape.

🎬 Animation Studio

Attach a full animation system to any object:

Multi-Frame Directional Animations

  1. 6 directions: Up, Down, Left, Right, Stop (Idle), Jump.
  2. Up to 5 frames per direction (including idle).
  3. Mirror mode: Draw only Right, mirror to Left automatically.

Sprite Sheet Support

  1. Upload a single sprite sheet.
  2. Define frame width and height.
  3. Automatic slicing and cycling.

Visual Effects (VFX)

Attach sprite-based visual effects to key events:

  1. Died — Explosion when object dies.
  2. HP-x — Damage flash.
  3. Move — Dust particles when walking.
  4. Jump — Jump puff.
  5. Shot — Muzzle flash.

Each VFX supports:

  1. Custom FPS (frames per second).
  2. Loop / Once.
  3. Fade-out.
  4. Anchor position (relative to sprite, so VFX follow the weapon).
  5. "Keep Upright" option (for text/number VFX that shouldn't mirror).
  6. Custom sound effect.

Camera Tracking (Yohoho-Style Rotation)

Rotate sprites toward the mouse cursor automatically:

camera follow cursor

Or enable in Animation Studio → Camera Animations.

🎵 Sound Library

A complete Web Audio API engine with:

  1. Event sounds: Move, Jump, Died, Shot, Been Shot, HP-x.
  2. Global sounds: Background music on game start.
  3. Per-object targeting: Play sound only for specific objects.
  4. Volume control per sound.
  5. Automatic conversion of uploaded audio to WebM/Opus (saves ~70% of file size).
  6. Ultra-low latency (under 5ms) with concurrent voice playback.

🕹️ Touch Controls (Mobile Support)

Full mobile support with zero code required on the developer's side.

Auto-Detection

The engine reads your RzX code and automatically creates touch buttons:

  1. Reads move w a s d → creates 4 direction buttons.
  2. Reads jump space → creates a jump button.
  3. Reads shot LeftClick follow cursor → creates an aim analog stick.

Manual Configuration

Open Touch Controls in the top bar to:

  1. Enable/disable touch controls globally.
  2. Show/hide buttons on the canvas during editing.
  3. Drag buttons to reposition them.
  4. Resize buttons.
  5. Add custom buttons (choose label, target object, action type).

Layout Options

  1. D-Pad (4 buttons) with jump in the center.
  2. 360° Smooth Analog Stick for fluid movement.
  3. Aim Analog for character rotation and cursor-following shooting.

Auto-Adaptation

  1. Only appears on touch devices (hidden on desktop).
  2. Automatically rotates to landscape when needed.
  3. Works on iPhone, iPad, Android, and tablets.

🖼️ Multi-Tab Script System

Split your game logic into multiple tabs:

  1. Tab 1: World & Physics — main game logic.
  2. Tab 2: UI & Menus — menus, dialogs, buttons.
  3. Tab 3: Levels — level-specific logic.

Each tab:

  1. Has its own isolated workspace.
  2. Can be renamed (double-click).
  3. Can be deleted (× button).

No cross-tab bugs. The system combines them into a single execution flow at runtime.

📤 Export System

Standalone HTML5 Export

Export your entire game as a ZIP file containing:

  1. index.html — entry point with preloader.
  2. style.css — full styling.
  3. game.js — engine core + your game data.
  4. icon.png — app icon.

The exported game:

  1. Runs in any modern browser (no dependencies).
  2. Enters fullscreen automatically.
  3. Includes a loading screen (waits for assets).
  4. Works 100% offline (if assets are embedded).

How to publish your exported game:

  1. Itch.io: Zip the folder and upload as HTML5.
  2. Your own server: Extract to any web host.
  3. Convert to Desktop (.exe): Use Web2Exe tools or upload to webexe.cc.

Cloud Platform

  1. Save projects to MongoDB cloud storage.
  2. Load them from any device.
  3. Publish to the RzX community platform.
  4. Get a public channel with followers.

Project Management

  1. Active Projects: All your saved projects.
  2. Archived Projects: Deleted projects are kept in archive (restorable).
  3. Auto-save every change.

🛡️ Security & Performance

Server-Side Security

  1. NoSQL Injection prevention and strict type validation.
  2. Secure token authentication locked against algorithm confusion.
  3. Rate limiting to prevent brute-force attacks.
  4. Request size limits to prevent payload abuse.
  5. CORS whitelist to prevent unauthorized domain access.
  6. Secure headers for browser protection.
  7. Password hashing for user data safety.
  8. User enumeration protection (unified error messages).

Client-Side Performance

  1. Smart rendering caching — non-moving objects are pre-rendered once.
  2. Optimized collision detection — only checks nearby objects.
  3. View culling — off-screen objects are skipped during render.
  4. Object pooling — bullets and effects reuse instances.
  5. Multi-frame budget loading — no freezing during scene init.

🆓 Pricing & Accessibility

RzX Engine is 100% FREE FOREVER.

  1. No downloads.
  2. No installation.
  3. No hidden fees.
  4. No premium tiers.
  5. Works on any modern browser (Chrome, Firefox, Safari, Edge).
  6. Works on mobile and desktop.
  7. PWA ready — add to home screen and use as a native-looking app.

❓ Frequently Asked Questions

Q: Is RzX a No-Code tool?

A: No. RzX is a formal programming language. It has a lexer, parser, and AST — the same architecture used by JavaScript, Python, and C++. You write real code. You have full control. It is not natural language processing, and not a chatbot.

Q: Is RzX Engine free?

A: Yes, 100% free forever. No hidden fees, no premium tiers, no downloads.

Q: Do I need to install anything?

A: No. RzX Engine runs entirely in your browser. Just visit the URL and start creating.

Q: Can I export my game?

A: Yes. You can export your game as a standalone ZIP file containing HTML, CSS, and JavaScript — ready to publish on Itch.io, your own server, or convert to a desktop .exe.

Q: Does it support mobile?

A: Yes. RzX Engine supports both mobile and desktop. It includes automatic touch controls, landscape rotation, and PWA support.

Q: What can I build with RzX Engine?

A: Platformers, top-down RPGs, arena shooters, puzzle games, Breakout-style games, Metroidvania-style games, and more. Any 2D game genre.

Q: Is the source code available?

A: The engine is proprietary but free to use. Exported games are yours to own and distribute.

Q: Does it support 3D?

A: Not yet. RzX Engine is focused exclusively on 2D games. 3D features are planned for the future.

Q: What programming background do I need?

A: None. The RzX language is designed to be readable by anyone who understands basic English. If you can say "player moves left with A", you can write RzX code.

Q: How does it compare to Unity or Godot?

A: RzX Engine is web-only and 2D-only. It's lighter, faster to learn, and easier to publish. Unity and Godot are more powerful for 3D and complex games, but they require downloads, installations, and complex workflows. RzX Engine is instant.

Q: Can I sell games made with RzX Engine?

A: Yes. Games you create are 100% yours. No royalties, no license fees.

🔗 Links

  1. Official Website: https://rzx-engine.onrender.com/
  2. Engine Studio: https://rzx-engine.onrender.com/engine
  3. GameDev.net Project Page: This page
  4. Developer: Lakel Oussama

🎯 Why RzX Engine?

FeatureRzX EngineUnityGodotConstruct
Free Forever✅⚠️✅❌
Runs in Browser✅❌❌⚠️
No Installation✅❌❌❌
Custom Language✅❌❌❌
2D Focus✅⚠️✅✅
Export to HTML5✅⚠️⚠️✅
PWA Support✅❌❌❌
Cloud Platform✅❌❌❌
Touch Controls Auto✅❌❌⚠️
Learning CurveVery LowHighMediumLow

🏆 What Makes RzX Engine Unique?

  1. The only 2D game engine with a custom-made language that is both powerful AND readable.
  2. Zero installation — start building in 5 seconds.
  3. Export to standalone HTML5 — publish anywhere.
  4. Built-in everything — drawing, animation, sound, physics, UI, touch controls.
  5. 100% free — no hidden costs.
  6. Cloud + Local — save anywhere, access everywhere.

Start building today: https://rzx-engine.onrender.com/engine


Official Website & Primary Source: For the most up-to-date information, documentation, and to access the live engine, please refer to the official RzX Engine website at https://rzx-engine.onrender.com/. This GameDev.net project page is a supplementary overview; the official website is the definitive resource for all things RzX Engine.

RzX Engine — Write games, not code. Or write code that reads like English.

Team

Discussions

Be the first to share your thoughts.

Popular now

View all

RzX Engine

Get the game