Skip to content

SB3 Quirks

Seemann edited this page Oct 30, 2023 · 9 revisions
  • setters and constructors can be used in two ways, using prop=val or function call syntaxes:
Player.Create($PLAYER_CHAR, 0,0,0,0)
$PLAYER_CHAR = Player.Create(0,0,0,0,$PLAYER_CHAR)

Player.CanMove($PLAYER_CHAR, False)
Player.CanMove($PLAYER_CHAR) = False
  • string literals don't support escape sequences ("\t" compiles as "\t").

  • opcode 00d6: can be compiled without arguments

  • second argument in Alloc command is optional and 0 by default

  • hardcoded indexes in opcodes 05B6, 0A66, 0A67, 0A68, 0A6E

  • anonymous enums in classes

Clone this wiki locally