SuperCode IDE
Lua 5.4 IDE Hub/Game Scripting, Metatables & Coroutines
4.9 ★ NATIVE LUA 5.4.7 · METATABLE OOP · COROUTINE STATE MACHINES · ~400µs

Prototype Lua Game Logic, Metatables & Coroutines Offline on Android.

Master the scripting patterns behind Roblox (Luau), Love2D, Defold, and Solar2D wherever inspiration strikes. Execute native Lua 5.4.7 in ~400 microseconds with full metatable OOP, cooperative coroutines, and . vs : method-aware AST completion.

~400µs
Native Lua 5.4.7
__index
Metatable OOP
yield()
Coroutine FSMs
. vs :
Method AST Guard
01 INTERACTIVE LUA GAME LOGIC, METATABLE OOP & COROUTINE WORKBENCH
Metatable Vec2 OOP · Coroutine Boss AI · Live io.read() RPG Loop
lua-game-sandbox/entity_oop.lua — Metatable OOP & Operator Overloading
Interactive Console Output
Ready
Lua 5.4.7 · ~400µs Native
UTF-8 LF Ln 8, Col 1
02 CORE CAPABILITIES

Built for Aspiring Game Scripters, Modders & Indie Prototypers

Desktop game engines weigh gigabytes, yet 90% of gameplay engineering comes down to clean table architecture, metatables, state machines, and math.

02.1

Metatable OOP Classes & Vector Operator Overloading

Build reusable Entity, Inventory, and Vec2 classes using __index, __newindex, __call constructors, __tostring debuggers, and arithmetic metamethods (__add, __sub, __mul, __eq) exactly as used in production Lua engines.

__index · __call · __add · Custom Class Hierarchies
02.2

Cooperative Coroutine State Machines (coroutine.*)

Script multi-turn boss phases, dialogue trees, cutscene timelines, and cooldown timers cleanly with coroutine.create, resume, yield, wrap, and status — no messy callback pyramids required.

coroutine.yield · Dialogue & AI FSMs · ~400µs Run
02.3

Method-Aware (. vs :) Offline AST Autocomplete

Mixing up dot functions (Vec2.new) and colon methods (player:take_damage()) is the most common Lua bug. SuperCode's offline AST engine distinguishes . from : across both Lua stdlib and your own tables.

Prevents nil self Bugs · Table-Aware AST
02.4

Modular Entity-Component Folders via require()

Organize combat math, loot tables, and enemy behaviors into separate modules across src/, core/, and modules/ directories — mirroring Roblox ModuleScripts and Love2D project layouts.

Multi-File require() · Unsaved Tab Resolution
02.5

8 Runnable Starter Scripts Including adventure.lua

Open the built-in template picker to dissect adventure.lua, metatables.lua, tables.lua, and guess.lua immediately offline, complete with live interactive io.read() turn-based prompts.

adventure.lua · metatables.lua · Live io.read()
02.6

Infinite Game-Loop Protection & Memory Telemetry

Experimenting with while game.running do loops on your phone? An isolated VM memory cap and execution timeout stop runaway ticks cleanly while displaying microsecond and kilobyte stats.

Safe Loop Guard · µs Timing · KB VM Telemetry
Built for Phones, Foldables & Tablets · Lightweight 45 MB Lua 5.4 IDE Hub
03 STEP-BY-STEP WORKFLOW

How to Practice Game Scripting Logic on Your Phone

Build, test, and refine core gameplay systems on your commute, then drop the pure Lua modules straight into your PC engine.

STEP 01 Templates -> adventure.lua

Load a Built-In Game Script or Create Entity Modules

Start from adventure.lua or metatables.lua, or organize fresh files like player.lua, combat.lua, and main.lua in your workspace.

STEP 02 AST : and .

Write Metatable Classes With Colon-Method Autocomplete

Type : on entity instances for self-bound method suggestions and tap Format to align nested table constructors.

STEP 03 Toolbar -> Run ▶

Simulate Turns & Coroutine Ticks in ~400 Microseconds

Tap Run ▶ to test combat formulas, RNG drop rates, and live io.read() player choices with sub-millisecond feedback.

STEP 04 Visual Git / SFTP

Sync Pure Lua Modules to Love2D, Defold, or GitHub

Commit decoupled gameplay modules via Visual Git so your desktop Love2D, Defold, or Luau project pulls them cleanly.

100% Offline Lua 5.4.7 · 8 Starter Templates · 21-Key Lua Symbol Bar App Guide
04 CAPABILITY MATRIX

SuperCode Lua Game Lab vs. Generic Mobile Lua Editors

SuperCode Lua Game Scripting Studio lets Android developers prototype gameplay systems offline in native Lua 5.4.7 with sub-millisecond startup. Practice metatable OOP classes, vector operator overloading, and coroutine state machines for Roblox/Luau and Love2D using dot-versus-colon AST completion, multi-file require(), and eight built-in Lua scripts.

MOBILE LUA GAME SCRIPTING & PRACTICE COMPARISON
Game Scripting Need SuperCode Lua 5.4 Studio Legacy Mobile Lua Apps Online Lua Repls PC Game Engine Only
Metatables & Coroutines Full Lua 5.4.7 OOP + coroutine.yield (~400 µs) Outdated Lua 5.2 subset Network latency per run Full engine
Dot vs Colon Safety Offline AST Distinguishes . Functions vs : Methods Plain text only No AST completion Desktop plugin
Modular ModuleScripts Multi-Folder require() + Smart main.lua Routing Single-file scratchpad Single snippet box Supported
Interactive Turn Testing Live io.read() Console + 8 Built-In Templates Static input or none No interactive stdin GUI window
Offline Commute Ready 100% Airplane-Mode Ready + Visual Git Sync Varies / ad-locked Fails without Wi-Fi Not pocketable
Built for Phones, Foldables & Tablets · Lightweight 45 MB Google Play
05 QUESTIONS & ANSWERS

Frequently Asked Questions

Answers about learning Lua for Roblox/Luau, Love2D, metatables, and coroutines on Android.

Does practicing Lua 5.4 in SuperCode transfer directly to Roblox (Luau) and Love2D?
Yes! Core Lua tables, closures, lexical scoping, metatables (`__index`, `__add`), coroutines, math, and modular `return M` scripts form the exact foundation shared by Roblox Luau, Love2D, Defold, Solar2D, and World of Warcraft/ Garry's Mod addons.
Can SuperCode render 3D Roblox worlds or Love2D OpenGL windows directly?
SuperCode focuses on fast, decoupled gameplay logic, data-driven RPG systems, inventory SQLite/JSON persistence, and algorithm prototyping in a native console — letting you perfect core module scripts anywhere and sync them to your desktop renderer via Git.
How does SuperCode help prevent `.` vs `:` method errors in Lua OOP?
When you type `entity:` versus `Entity.`, SuperCode's offline AST completion filters suggestions contextually so you immediately see colon-defined instance methods separately from static module functions.
Are starter game scripts included for offline study?
Yes. Eight runnable Lua templates — including `adventure.lua`, `guess.lua`, `metatables.lua`, and `tables.lua` — are built right in and work 100% offline.
06 LUA 5.4, GAME LOGIC & BUILT-IN MODULES GUIDES

Complete Lua 5.4.7 IDE Documentation Suite

Navigate between the main Offline Lua 5.4 IDE hub and all 5 specialized Lua scripting guides.

LUA-HUB Lua 5.4.7 · 11+ Mods · Pillar Hub

Offline Lua 5.4.7 Studio Overview

Main overview of SuperCode's native ~400µs Lua 5.4.7 engine, 11+ built-in offline modules, multi-file require(), and . vs : AST completion.

lua-ide Open Guide →
LUA-01 Entity OOP · Coroutines · ~400µs

Game Scripting, Metatables & Coroutines

Prototype RPG state machines, coroutines, and metatable OOP classes offline for Luau/Roblox, Love2D, and embedded game engines.

lua-game-scripting-metatables-oop Viewing Guide
LUA-02 cjson · lsqlite3 · lfs · crypto

11+ Built-In Modules (cjson, lsqlite3, lfs)

Require cjson, lsqlite3, lfs (LuaFileSystem), crypto/sha2, regex, base64, socket.http, and inspect out of the box with zero luarocks setup.

lua-builtin-modules-cjson-sqlite Open Guide →
LUA-03 64-Bit & | << // · <const>/<close>

Lua 5.4 Bitwise, <close> & Multi-File

Use true Lua 5.4 64-bit bitwise operators, integer floor division //, <const>/<close> variables, utf8, and multi-folder require() packages.

lua-54-bitwise-close-multifile Open Guide →
LUA-04 8 Lua Scripts · . vs : AST · PDF

Learn Lua Offline on Android

Master Lua tables, closures, and pattern matching offline with 8 runnable templates, . vs : AST autocomplete, Lua formatter, and PDF export.

learn-lua-offline-android Open Guide →
LUA-05 crypto · regex · socket.http · lfs

Crypto, Regex, HTTP & File Automation

Automate Android tasks in microseconds with native Lua 5.4.7 backed by BoringSSL crypto/sha2, ICU Unicode regex, OkHttp socket.http (1MB OOM guard), lfs filesystem ops, and 1-tap formatting.

lua-android-crypto-regex-http-automation Open Guide →
6 Interconnected Lua 5.4.7 Guides · Built-In cjson, lfs, lsqlite3, crypto & socket Lua 5.4 IDE Hub