GbPokemon
A component script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2Pokémon Red — vertical slice. One component owns the whole game: the state machine, the 160x144 Game Boy framebuffer, all UI, and every subsystem.
newState( ) → void
readInput( ) → void
down(list: ?) → void
| arg | type | description |
|---|---|---|
| list | ? |
pressed(list: ?) → void
| arg | type | description |
|---|---|---|
| list | ? |
cellAt(map: ?, x: ?, y: ?) → void
map cell char at tile (x,y)
| arg | type | description |
|---|---|---|
| map | ? | |
| x | ? | |
| y | ? |
npcAt(map: ?, x: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| map | ? | |
| x | ? | |
| y | ? |
ballAt(map: ?, x: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| map | ? | |
| x | ? | |
| y | ? |
solidAt(map: ?, x: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| map | ? | |
| x | ? | |
| y | ? |
loadMap(id: ?, tx: ?, ty: ?, face: ?) → void
| arg | type | description |
|---|---|---|
| id | ? | |
| tx | ? | |
| ty | ? | |
| face | ? |
openDialogue(lines: ?, onDone: ?) → void
| arg | type | description |
|---|---|---|
| lines | ? | |
| onDone | ? |
pageText(pg: ?) → void
| arg | type | description |
|---|---|---|
| pg | ? |
dialogueTick(dt: ?, p: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? | |
| p | ? |
drawTextbox(fb: ?) → void
| arg | type | description |
|---|---|---|
| fb | ? |
drawDialogue(fb: ?) → void
| arg | type | description |
|---|---|---|
| fb | ? |
computeCamera( ) → void
playerSprite( ) → void
drawOverworld(fb: ?) → void
| arg | type | description |
|---|---|---|
| fb | ? |
drawStartMenu(fb: ?) → void
| arg | type | description |
|---|---|---|
| fb | ? |
drawParty(fb: ?) → void
| arg | type | description |
|---|---|---|
| fb | ? |
drawBag(fb: ?) → void
| arg | type | description |
|---|---|---|
| fb | ? |
drawOptions(fb: ?) → void
| arg | type | description |
|---|---|---|
| fb | ? |
drawTitle(fb: ?) → void
| arg | type | description |
|---|---|---|
| fb | ? |
ensureAudioEntities( ) → void
playMusic(name: ?) → void
| arg | type | description |
|---|---|---|
| name | ? |
playSfx(name: ?) → void
| arg | type | description |
|---|---|---|
| name | ? |
manageAudio( ) → void
queueSfx(name: ?) → void
| arg | type | description |
|---|---|---|
| name | ? |
present( ) → void
saveGame( ) → void
saveExists( ) → void
giveStarter(speciesId: ?) → void
| arg | type | description |
|---|---|---|
| speciesId | ? |
healParty( ) → void
firstHealthy( ) → void
startWildBattle(species: ?, lvl: ?) → void
| arg | type | description |
|---|---|---|
| species | ? | |
| lvl | ? |
startTrainerBattle(npc: ?) → void
| arg | type | description |
|---|---|---|
| npc | ? |
whiteout( ) → void
tryEncounter( ) → void
checkWarp( ) → void
interact( ) → void
trainerSpotting( ) → void
overworldTick(dt: ?, d: ?, p: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? | |
| d | ? | |
| p | ? |
menuTick(dt: ?, d: ?, p: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? | |
| d | ? | |
| p | ? |
titleTick(dt: ?, d: ?, p: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? | |
| d | ? | |
| p | ? |
newGame( ) → void
loadGame( ) → void
spottingTick(dt: ?, d: ?, p: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? | |
| d | ? | |
| p | ? |
fadeTick(dt: ?, d: ?, p: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? | |
| d | ? | |
| p | ? |
drawWhiteout(fb: ?) → void
| arg | type | description |
|---|---|---|
| fb | ? |
drawWin(fb: ?) → void
| arg | type | description |
|---|---|---|
| fb | ? |
renderFrame( ) → void
tick(dt: ?, playing: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? | |
| playing | ? |
awake( ) → void
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
editorUpdate(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
press(btn: string) → void
| arg | type | description |
|---|---|---|
| btn | string |
hold(btn: string, on: boolean) → void
| arg | type | description |
|---|---|---|
| btn | string | |
| on | boolean |
cmd(name: string, a: string?, b: string?, c2: string?) → any
| arg | type | description |
|---|---|---|
| name | string | |
| a | string? | |
| b | string? | |
| c2 | string? |
state( ) → any
onDestroy( ) → void
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.