Drop your email and be first in line
when the next handheld materializes.
CLICK A KEY, THEN PRESS ITS REPLACEMENT.
ESC CANCELS · KEYS CAN ONLY DO ONE JOB.
FABLE BOY CART API
Define any of: init(fb), update(fb), draw(fb). They run at 60 fps.
SCREEN 160 x 144, colors 0..3 (0 = light green, 3 = dark green)
fb.cls(c) clear screen
fb.px(x,y,c) set one pixel
fb.frect(x,y,w,h,c) filled rectangle
fb.rect(x,y,w,h,c) outlined rectangle
fb.circ(x,y,r,c) filled circle
fb.line(x1,y1,x2,y2,c) line
fb.text(str,x,y,c,scale)
fb.spr(rows,x,y,scale) rows like ['.33.','3003']
chars 0..3 draw that color, '.' is skipped
INPUT
fb.btn(name) true while held
fb.btnp(name) true on the frame it was pressed
names: up down left right a b start select
SOUND
fb.sfx(freq, dur, shape, vol, slide)
shapes: square, triangle, saw, noise. slide bends the pitch.
MISC
fb.t frames since boot fb.W, fb.H screen size
fb.rnd() 0..1 fb.irnd(n) integer 0..n-1
fb.clamp(v, lo, hi)
fb.score(n) report the player's score. the best one this
session can be posted to the cart's leaderboard
(START menu on the console, or just press SELECT)
SYSTEM START opens the console menu, SELECT opens TOP SCORES.
carts never see those presses, so use A for retry screens.