Skip to content

Tutorials

Learn RedScript step-by-step, from installation to building complete mini-games.

Learning Path

Start here if you're new:

#TutorialTimeFocus
1Getting Started20 minInstall CLI, first compile
2Variables and Types25 minlet, const, basic types
3Control Flow30 minif, for, while, match
4Functions25 minParameters, returns, recursion
5Structs and Enums30 minData modeling, impl blocks
6Stdlib Tour20 minMath, random, particles
7Events and Ticks25 min@load, @tick, @on(...)
8Advanced30 min@coroutine, optimizer

Language Detail Coverage

The beginner path now introduces the language surface in layers instead of leaving key details only in the reference:

Feature areaFirst tutorial touchpointFull reference
let, const, inference02 — Variables and TypesSyntax
int, fixed, double, string, bool02 — Variables and Types, 09 — Precision ArithmeticTypes
arrays and dynamic indexing02 — Variables and Types, 03 — Control FlowExpressions
if, while, range for, array for, foreach03 — Control FlowSyntax
match, _, integer ranges, enum cases03 — Control Flow, 05 — Structs and EnumsExpressions
Option<T>, Some, None, if let03 — Control FlowExpressions
struct, enum, impl05 — Structs and EnumsTypes
selectors, @s, execute context04 — Functions, 04 — Selectors & Execute ContextSyntax
decorators, load/tick/trigger hooks07 — Events and TicksDecorators
imports, retention, coroutines, optimizer08 — AdvancedCLI

Project Tutorials

Complete mini-game examples:

TutorialDifficultyDescription
Hello WorldBeginnerPlayer greetings, scoreboards, titles
Zombie SurvivalIntermediateWaves, spawning, difficulty scaling
Parkour RaceIntermediateCheckpoints, timers, leaderboards
Capture the FlagAdvancedTeams, scoring, respawns

Quick Reference

Released under the MIT License.