Index
Modules:
tic80
.
API symbols
AudioChannel:
tic80: AudioChannel
AudioNote:
tic80: AudioNote
AudioSfx:
tic80: AudioSfx
AudioSpeed:
tic80: AudioSpeed
AudioVolume:
tic80: AudioVolume
btn:
tic80: btn(id: Buttons): bool
BtnA:
Buttons.BtnA
BtnB:
Buttons.BtnB
BtnDown:
Buttons.BtnDown
BtnLeft:
Buttons.BtnLeft
btnp:
tic80: btnp(id: Buttons; hold, period: int): bool
BtnRight:
Buttons.BtnRight
BtnUp:
Buttons.BtnUp
BtnX:
Buttons.BtnX
BtnY:
Buttons.BtnY
Button:
tic80: Button
Buttons:
tic80: Buttons
Byte4:
tic80: Byte4
circ:
tic80: circ(x, y, radius: int; color: Color)
circb:
tic80: circb(x, y, radius: int; color: Color)
tic80: circb(x, y, radiusH, radiusW: int; color: Color)
clip:
tic80: clip()
tic80: clip(x, y, width, height: int)
cls:
tic80: cls(color: Color = 0)
Color:
tic80: Color
DefaultPallete:
tic80: DefaultPallete
DisplaySize:
tic80: DisplaySize
exit:
tic80: exit()
fget:
tic80: fget(spriteId: SpriteWithFlag; flag: SpriteFlag): bool
font:
tic80: font(text: cstring; x, y: int; transparentColor: Color; charWidth, charHeight: int; fixed = false; scale = 1)
fset:
tic80: fset(spriteId: SpriteWithFlag; flag: SpriteFlag; state: bool)
Key:
tic80: Key
key:
tic80: key(code: Key)
keyp:
tic80: keyp(code: Key; hold, pediod: int)
Keys:
tic80: Keys
line:
tic80: line(x0, y0, x1, y1: int; color: Color)
map:
tic80: map(x, y: int; w = 30; h = 17; sx = 0; sy = 0; colorkey: Color = noColor; scale = 1; remap = proc (tileId, x, y: int): array[3, int])
MapTile:
tic80: MapTile
memcpy:
tic80: memcpy(toAddr, fromAddr, length: int)
MemoryBank:
tic80: MemoryBank
memset:
tic80: memset(memAddr: int; value: byte; length: int)
mget:
tic80: mget(x, y: int): MapTile
mouse:
tic80: mouse(): array[7, int]
mset:
tic80: mset(x, y: int; tile: MapTile)
music:
tic80: music()
tic80: music(track: MusicTrack; frame: MusicFrame = -1; row: MusicRow = -1; loop = true; sustain = false; tempo: MusicTempo = -1; speed: MusicSpeed = -1)
MusicFrame:
tic80: MusicFrame
MusicRow:
tic80: MusicRow
MusicSpeed:
tic80: MusicSpeed
MusicTempo:
tic80: MusicTempo
MusicTrack:
tic80: MusicTrack
noColor:
tic80: noColor
OVR:
tic80: OVR(scanline: untyped; body: untyped): untyped
peek:
tic80: peek(ramAddr: int): byte
peek4:
tic80: peek4(ramAddr4: int): Byte4
pix:
tic80: pix(x, y: int): Color
tic80: pix(x, y: int; color: Color)
pmem:
tic80: pmem(index: byte): uint32
tic80: pmem(index: byte; value: uint32)
poke:
tic80: poke(ramAddr: int; val: byte)
poke4:
tic80: poke4(ramAddr: int; val: Byte4)
print:
tic80: print(text: cstring; x = 0; y = 0; color: Color = DefaultPallete.white; fixed = false; scale = 1; smallfont = false)
rect:
tic80: rect(x, y, w, h: int; color: Color)
rectb:
tic80: rectb(x, y, w, h: int; color: Color)
reset:
tic80: reset()
SCN:
tic80: SCN(scanline: untyped; body: untyped): untyped
sfx:
tic80: sfx(id: AudioSfx; note: AudioNote = -1; duration = -1; channel: AudioChannel = 0; volume: AudioVolume = 15; speed: AudioSpeed = 0)
spr:
tic80: spr(id: Sprite; x, y: int; transparentColor: Color = noColor; scale = 1; flip: TransformFlip = 0; rotate: TransformRotate = 0; w = 1; h = 1)
Sprite:
tic80: Sprite
SpriteFlag:
tic80: SpriteFlag
SpriteWithFlag:
tic80: SpriteWithFlag
sync:
tic80: sync(mask = 0; bank: MemoryBank = 0; toCart = false)
textri:
tic80: textri(x1, y1, x2, y2, x3, y3, u1, v1, u2, v2, u3, v3: int; use_map = false; trans: seq[Color] = @[])
TIC:
tic80: TIC(body: untyped): untyped
ticHeader:
tic80: ticHeader(title, author, desc: string; saveId = ""): string
time:
tic80: time(): uint64
trace:
tic80: trace(message: cstring; color: Color = DefaultPallete.black)
TransformFlip:
tic80: TransformFlip
TransformRotate:
tic80: TransformRotate
tri:
tic80: tri(x1, y1, x2, y2, x3, y3: int; color: Color)
trib:
tic80: trib(x1, y1, x2, y2, x3, y3: int; color: Color)
tstamp:
tic80: tstamp(): uint64