WBW Template
Code Explorer
Creator Store Templates
Skyline Platformer
platformer • beginner
Village RPG Starter
rpg • intermediate
Mini Factory Tycoon
tycoon • intermediate
Arena Shooter Loop
shooter • advanced
Switch Puzzle Adventure
puzzle • beginner
Night Survival Rush
survival • advanced
main.wbw
CodePreview
Click Preview to test your game
Game Settings
WBW Syntax Guide
player x y [w h] spawn the player
size w h / pcolor #hex player defaults
speed n / gravity n / friction n
set NAME value / add|sub|mul|div|mod variables
rand NAME min max random value
bg #hex / color #hex background & draw color
platform x y w h solid ground
rect x y w h / circle x y r / line x1 y1 x2 y2
tri x1 y1 x2 y2 x3 y3 triangle
text "Hello" x y / textsize n / hud "HP" x y
spawn enemy|item [id] x y [w h] entities
patrol id minX maxX speed simple AI
on left move -1 0 hold input
onpress up jump 9 / onpress space shoot 1
onrelease left vel 0 0 release input
loop N ... end repeat block
if HP <= 0 goto gameover conditional jump
checkpoint x y / respawn save & reset
msg "Text" [sec] / shake 8 [sec] / stop