src/scene/clear.c
The File Screen overlay (SceneIdClear), the first thing the player sees after the title: the title logo, the file menu (new game, continue, copy, erase, the Battle Arena and Update) and what a new game asks. More…
#include "game/game.h"#include "menu/menu.h"#include "field/script_inline.h"#include "field/field_engine_script.h"#include "scene/scene.h"#include "scene/title.h"#include "window/screens.h"#include "window/window.h"#include "edition.h"#include "field/call.h"#include "macros.h"#include "item_ids.h"#include "field/field_engine.h"#include "window/text_font.h"#include "shop/shop.h"#include "text/msg_ids.h"#include "../window/screens_set_text_tile_rect.c"#include "shared/scene_entrances_mapless.c"
Structures
| Name | Description | |
|---|---|---|
struct | PASSWORD_STATE | The password grid's glyph sprites, one for each place of a page. |
Macros
| Name | Description | |
|---|---|---|
#define | OWN_mnPointingHandLoadIntoSlot | The password screen declares mnPointingHandLoadIntoSlot and mnNameCaretLoadIntoSlot itself, below, so window.h leaves them out. |
#define | OWN_mnNameCaretLoadIntoSlot | |
#define | SAVED_PLAY_TIME (*(Uint32 *)SceneLocalState) | The play time the save kept in the scene's own state, which an intact save's matches. |
#define | BUP_IMAGE_BYTES (BUP_SECTORS_PER_PART * BUP_SECTOR_SIZE) | The game's state as a file holds it, from BupBuffer (system/definitions.h's save image): a save part's three sectors. |
#define | TRANSFERRED_SAVE (RamMapMetatileBuffer + BUP_IMAGE_BYTES) | Where the data a password or link screen brings in waits for gmDataTransferApply, as a save image: after the state set aside at the start of the map metatile buffer, free on this screen. |
#define | BUP_IMAGE_STATE_BYTES | A save image from the game flags to the units' end: the flags, the main routine's state and the party's units. |
#define | YEAH_WIDTH BY_LANGUAGE(6, 8, 8, 10, 8, 8) | The width of the answers "Yeah!" and "Wait a sec" to "Play on EASY level?" and the two questions after it, as each language's words need. |
#define | COPY_SAVE_IMAGE (to, from) syWordsCopy(to, from, BUP_IMAGE_BYTES) | The password and link screens read The Broken Seal's data into the game's state: KEEP_SAVE_IMAGE sets the state aside in the map metatile buffer first, and RESTORE_SAVE_IMAGE copies what the screen left to TRANSFERRED_SAVE and puts the state back. |
#define | KEEP_SAVE_IMAGE () | |
#define | RESTORE_SAVE_IMAGE () | |
#define | LOBBY_FROM_FILE_MENU 1 | The Battle Arena lobby's entrance from the file menu. |
#define | RETURN_TO_SAVED (party) | Goes back to the saved scene and entrance. |
#define | PASSWORD_GOLD_LENGTH 260 | The symbols of each level's password: The Broken Seal packs 173, 39 or 9 bytes (scFileScreenPackPasswordData), then two of its checksum, six bits a symbol and a tenth symbol after every nine. |
#define | PASSWORD_SILVER_LENGTH 61 | |
#define | PASSWORD_BRONZE_LENGTH 16 | |
#define | PASSWORD_GOLD_BYTES 175 | The bytes each level decodes to, its checksum's two included. |
#define | PASSWORD_SILVER_BYTES 41 | |
#define | PASSWORD_BRONZE_BYTES 11 | |
#define | PASSWORD_SYMBOLS_PER_PAGE 50 | Five rows of ten. |
#define | PASSWORD_SYMBOLS_PER_ROW 10 | |
#define | PASSWORD_SYMBOL_MASK 0x3f | Six bits: 64 symbols. |
#define | PASSWORD_SYMBOL_EMPTY 99 | A place of the entered password that holds no symbol yet. |
#define | PASSWORD_CRC_BYTES 2 | The checksum's two bytes at the end of each level's (scClearCalculatePasswordCrc16). |
#define | PASSWORD_CRC_SEED 0xffff | |
#define | PASSWORD_CRC_POLYNOMIAL 0x1021 | |
#define | PASSWORD_CRC_TOP_BIT 0x8000 | Top bit of its 16 bits. |
#define | PASSWORD_FLAGS_BYTE 7 | Where a password's parts start among its bytes: the four levels and the Djinn from the first, the story flags, then Silver's and Bronze's Psynergy items, which Gold has not; the stats rows after those, two party members to a row; and Gold's alone, the party's items, 15 a member in nine bits each, their quantities, five bits for each of the 23 items that stack (ClearImportedStackItems), and the coins, high byte first. |
#define | PASSWORD_KEY_ITEMS_BYTE 8 | |
#define | PASSWORD_STATS_ROW_BYTES 15 | |
#define | PASSWORD_ITEMS_BYTE 39 | |
#define | PASSWORD_QUANTITIES_BYTE 107 | |
#define | PASSWORD_COINS_BYTE 165 | |
#define | PASSWORD_STACK_ITEMS 23 | |
#define | PASSWORD_QUANTITY_MASK | A stacking item's quantity in the password: its five bits. |
#define | PASSWORD_HP_SHIFT 21 | A party member's base stats in the password, two words of fields: HP (11 bits), PP (11) and Attack (10); then Defense (10), Agility (10) and Luck (8) over four bits of 0. |
#define | PASSWORD_PP_SHIFT 10 | |
#define | PASSWORD_DEFENSE_SHIFT 22 | |
#define | PASSWORD_AGILITY_SHIFT 12 | |
#define | PASSWORD_LUCK_SHIFT 4 | |
#define | PASSWORD_PP_MASK 0x7ff | Eleven bits. |
#define | PASSWORD_STAT_MASK 0x1ff | Nine bits: Attack, Defense and Agility. |
#define | PASSWORD_LUCK_MASK 0x7f | Seven bits. |
#define | PASSWORD_LEVEL_MASK 0x7f | A level in the password's first bytes: seven bits each. |
#define | GLYPH_SPRITE_BYTES (4 * TILE_SIZE_4BPP) | A password glyph's sprite: four tiles, 16 pixels square. |
#define | UNIT_DJINN_BYTES 40 | A unit's Djinn, djinnHeld to djinnSetCounts. |
#define | PASSWORD_BUFFER_SIZE | The password as entered, a symbol a byte: a Gold password is 260 symbols, which the Japanese buffer holds exactly, as in The Broken Seal. |
#define | SYMBOL_TA 15 | |
#define | SYMBOL_N 44 | |
#define | SYMBOL_WO 45 | |
#define | SYMBOL_GA 46 | |
#define | SYMBOL_DA 56 | |
#define | SYMBOL_BA 59 | |
#define | KANA_WO 134 | The character codes of kana that start runs in the font's order, as The Broken Seal's window/text_font.h names them. |
#define | KANA_A 145 | あ, then い to そ |
#define | KANA_KA 150 | か, then き to そ |
#define | KANA_TA 224 | た, then ち to ん |
#define | KANA_TE 227 | て |
#define | KANA_TO 228 | と |
#define | KANA_HA 234 | は, then ひ to ほ |
#define | KANA_N 253 | ん |
#define | VOICED (code) ((code) | 1 << TEXT_MARK_SHIFT) | A kana's code with the voiced mark, FontMarkGlyphCodes's second. |
#define | SYMBOL_DIGITS 24 | |
#define | SYMBOL_SMALL_LETTERS 32 | |
#define | SYMBOL_SIGNS 56 | |
#define | TRANSFERRED_FLAGS (TRANSFERRED_SAVE + BUP_IMAGE_GAME_FLAGS) | The transferred data's game flags, and its main routine's state and what follows (system/definitions.h's save image). |
#define | TRANSFERRED_MAIN_ROUTINE_STATE | |
#define | LINK_LANGUAGE_TAG BY_LANGUAGE('C', 'U', 'E', 'S', 'F', 'I') | The first letter of the greeting this screen answers The Broken Seal with, before V, T and S: the one its FILE_SCREEN_LINK_LANGUAGE_TAG waits for. |
#define | LINK_RECEIVE_TICKS 600000 | Receiving by cable stops waiting after this long, almost three hours, and ends with "Data transfer was interrupted" once The Broken Seal goes unheard this long, as its LINK_SEND_TICKS and LINK_SILENT_TICKS. |
#define | LINK_SILENT_TICKS 10 | |
#define | RECEIVE_WINDOW_X BY_LANGUAGE(6, 6, 5, 5, 2, 6) | The windows are as wide as each language's text needs. |
#define | RECEIVE_WINDOW_WIDTH BY_LANGUAGE(18, 18, 20, 20, 26, 18) | |
#define | STATUS_WINDOW_X FRENCH_OR(2, 5) | |
#define | STATUS_WINDOW_WIDTH FRENCH_OR(26, 20) | |
#define | SIDE_COLUMN 20 | The Japanese grid has 20 columns of kana and its side column is 20. |
#define | SIDE_HIGHLIGHT_WIDTH 3 | |
#define | CHECK_WINDOW_X 8 | |
#define | CHECK_WINDOW_WIDTH 14 | |
#define | CURSOR_ON_SIDE_COLUMN (column) ((column) == SIDE_COLUMN) | |
#define | DRAW_KEYS (window) | Draws the kana to choose from and the side column's Space, Return and Finish into the lower window. |
#define | TILE_GRID_COLUMNS 16 | The block of a window's tilemap the two unused functions below fill: 16 by 8 entries, and the second's tiles from TILE_GRID_FIRST_TILE on. |
#define | TILE_GRID_ROWS 8 | |
#define | TILE_GRID_FIRST_TILE 32 |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { KEY_ROW_SPACE, KEY_ROW_RETURN, KEY_ROW_WITHOUT_SIDE_KEY, KEY … } | The rows of symbols to choose from, and the side column's keys beside them: Space moves on a place as R does, Return back a place as L does, and Finish checks the password as Start does. |
enum | PASSWORD_ACTION { PASSWORD_ACTION_NONE, PASSWORD_ACTION_SYMBOL, PASSWORD_ACTIO … } | What A chose this tick: a symbol of the grid or a side key. |
enum | PASSWORD_STAGE { PASSWORD_STAGE_ENTERING, PASSWORD_STAGE_CHECK, PASSWORD_STAG … } | The password screen's stages: entering symbols; the last place just filled, which is drawn for a tick before the password is checked; and checking. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | scClearReceiveByLink (void) | Receives The Broken Seal's data over the link cable: waits for that game to greet with "0000", answers with the greeting it waits for, receives its save image into TRANSFERRED_SAVE and reads the image's flags and units into the game's state. |
Sint32 | scClearEnterPassword (void) | The password screen: chooses the password's level, then lets the player enter it on the grid of symbols, checks it and applies it; returns -1 when cancelled. |
void | scClearApplyImportedData (Sint32 level, Uint8 *in) | Applies a decoded password of the given level (PASSWORD_LEVEL) to Isaac's party: the unpacking of The Broken Seal's scFileScreenPackPasswordData. |
Sint32 | scClearDecodePassword (Uint8 *src, Sint32 length, Uint8 *dest) | Decodes length symbols of an entered password (src) into dest, undoing The Broken Seal's scFileScreenEncodePassword: each symbol less its place, the checksum symbols skipped, six bits a symbol, then every byte but the last XORed with the last. |
const SCENE_ENTRANCE * | scGetEntrances (void) | Where the party can enter: the cave under the spring has its own entrances. |
const SCENE_REGION * | scGetExitRegions (void) | The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room. |
const Uint32 * | scGetExits (void) | The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The scene's actor placements: a room of names for its entrance, else the debug room's. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
void | scClearLoadBackground (void) | Loads the title logo onto BG2 as scTitleLoadBackground (title.c) does, and stops the leader's motion. |
void | scClearFadeInBlend (void) | The event that fades BG0 and the sprites in over the logo, a step of the blend every second tick. |
void | scClearCheckButtonCodes (void) | Follows the two secret button codes: each held key that matches the next key of a code advances it, a wrong key starts it again, and finishing a code unlocks it with a sound. |
Sint32 | scClearIsRetreatBlocked (void) | Whether a save cannot be sent back to its Sanctum: it was made where Retreat is blocked, outside a town and off the world map. |
Sint32 | scInit (void) | Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
void | scClearGetPasswordCharacter (Sint32 symbol, Uint16 *text) | The character a password symbol stands for, in the font's codes, a kana's voiced mark in its top bits. |
Uint16 | scClearCalculatePasswordCrc16 (Uint32 length, Uint8 *p) | The password's checksum, as The Broken Seal's scFileScreenCalculatePasswordCrc16 makes it: over length bytes at p, shifted a bit at a time from PASSWORD_CRC_SEED, PASSWORD_CRC_POLYNOMIAL subtracted when the top bit falls out, and the result complemented. |
void | mnPointingHandLoadIntoSlot (void) | The password screen calls these without the VRAM cache entry their definitions take (window/screens_name_entry.c). |
void | mnNameCaretLoadIntoSlot (void) | Loads the name entry caret's tiles into VRAM cache entry slot. |
static inline void | scCursorAttach (MENU_CURSOR *cursor, WINDOW_SPR *sprite) | Gives a cursor its sprite. |
static inline void | scCursorPlace (MENU_CURSOR *cursor, Sint32 x, Sint32 y) | Sets a cursor where it starts. |
static inline void | scCursorShow (MENU_CURSOR *cursor, Sint32 x, Sint32 y) | Moves a cursor and shows it. |
void | scClearFillTileGrid (WINDOW *window, const void *compressedTiles) | Unused: unpacks compressedTiles into a scratch buffer and fills the block at the window's top left corner, in VRAM and in the window state's copy, with the window's tiles row by row, a row the window's width apart. |
void | scClearFillTileGridInOrder (WINDOW *window) | Unused: fills the block at the window's top left corner with the tiles from TILE_GRID_FIRST_TILE on, in order; the scratch buffer it takes goes unused. |
Sint32 | scClearPackPasswordData (Sint32 unused, Sint32 level, Uint8 *out) | Unused: packs Isaac's party for a password of the given level (PASSWORD_LEVEL) as The Broken Seal's scFileScreenPackPasswordData does, and returns the byte count. |
Variables
| Name | Description | |
|---|---|---|
extern Uint16 | ClearButtonCode [] | The two secret button codes, each ended by 0, and for each whether it is unlocked, how many of its keys have been pressed in order, and whether a key is still held. |
extern Uint16 | ClearExtraButtonCode [] | The second, longer code. |
extern Sint16 | ClearCodeUnlocked | |
extern Sint16 | ClearExtraCodeUnlocked | |
extern Sint16 | ClearCodeProgress | |
extern Sint16 | ClearExtraCodeProgress | |
extern Sint16 | ClearCodeHeld | |
extern Sint16 | ClearExtraCodeHeld | |
extern Uint16 | ClearBlendTick [] | The step of the logo's fade in (scClearFadeInBlend). |
extern Sint8 | ClearCursorBob [] | The password screen's tables: the caret's bob, the rows of symbols as drawn, the symbol each key of the grid enters, a row at a time, 99 on a key with none, and the story flags a password brings in. |
extern Uint8 | ClearFirstPasswordRow [] | The password grid's four rows of symbols as DRAW_KEYS writes them, five to a group (the Japanese grid is kana, MsgFieldPasswordKana). |
extern Uint8 | ClearSecondPasswordRow [] | |
extern Uint8 | ClearThirdPasswordRow [] | |
extern const Uint8 | ClearPasswordGrid [] | The symbol each key of the password grid enters, a row of SIDE_COLUMN keys at a time, and 99 (PASSWORD_SYMBOL_EMPTY) on a key with none. |
extern Uint16 | ClearImportedFlags [] | The six story flags of a password's PASSWORD_FLAGS_BYTE, by The Broken Seal's numbers, which gmDataTransferApply reads them by. |
Uint8 | ClearPasswordText [PASSWORD_BUFFER_SIZE] | The password as the player enters it, a symbol a byte. |
Uint8 | ClearDecodedPassword [PASSWORD_GOLD_BYTES] | The entered password's bytes, decoded (scClearDecodePassword). |
Uint8 | ClearPasswordSpare [60] | Unused: the Japanese edition's 60 bytes after the decoded password. |
extern Uint8 | ClearFourthPasswordRow [] | |
extern Uint8 | MsgFieldPasswordKana [] | |
extern Sint32 | ClearImportedMembers [] | The four whose data a Broken Seal password brings in, in its order. |
extern Uint16 | ClearImportedKeyItems [] | The key items a Broken Seal password gives Isaac's party, in its order. |
extern Uint16 | ClearImportedStackItems [] | The items a Broken Seal password gives a count of, in its order. |
extern Uint16 | ClearPasswordFlags [] | Its copy of ClearImportedFlags. |
extern Sint32 | ClearPasswordMembers [] | The unused scClearPackPasswordData's copy of ClearImportedMembers. |
extern Uint16 | ClearPasswordKeyItems [] | Its copy of ClearImportedKeyItems. |
extern Uint16 | ClearPasswordStackItems [] | Its copy of ClearImportedStackItems, without the end mark. |
Uint32 | SceneExits [] | The room has no exits of its own. |
ACTOR_PLACE | ActorPlacements [] | The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's. |
CUE | SceneCues [] | The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers. |
Description
The File Screen overlay (SceneIdClear), the first thing the player sees after
the title: the title logo, the file menu (new game, continue, copy, erase,
the Battle Arena and Update) and what a new game asks. A new game may bring
The Broken Seal's data over, by password or link cable (scClearEnterPassword,
scClearReceiveByLink), applied to Isaac's party (scClearApplyImportedData),
and two secret button codes on the screen (scClearCheckButtonCodes) name more
of the party.
Macros in detail
OWN_mnPointingHandLoadIntoSlot
#define OWN_mnPointingHandLoadIntoSlot
The password screen declares mnPointingHandLoadIntoSlot and
mnNameCaretLoadIntoSlot itself, below, so window.h leaves them out.
Definition at line 11 of file clear.c.
OWN_mnNameCaretLoadIntoSlot
#define OWN_mnNameCaretLoadIntoSlot
Definition at line 12 of file clear.c.
SAVED_PLAY_TIME
#define SAVED_PLAY_TIME (*(Uint32 *)SceneLocalState)
The play time the save kept in the scene's own state, which an intact save's matches.
Referenced by scInit().
Definition at line 246 of file clear.c.
BUP_IMAGE_BYTES
#define BUP_IMAGE_BYTES (BUP_SECTORS_PER_PART * BUP_SECTOR_SIZE)
The game's state as a file holds it, from BupBuffer (system/definitions.h's
save image): a save part's three sectors.
Definition at line 250 of file clear.c.
TRANSFERRED_SAVE
#define TRANSFERRED_SAVE (RamMapMetatileBuffer + BUP_IMAGE_BYTES)
Where the data a password or link screen brings in waits for
gmDataTransferApply, as a save image: after the state set aside at the start
of the map metatile buffer, free on this screen.
Referenced by scClearReceiveByLink() and scInit().
Definition at line 254 of file clear.c.
BUP_IMAGE_STATE_BYTES
#define BUP_IMAGE_STATE_BYTES
A save image from the game flags to the units' end: the flags, the main routine's state and the party's units.
Referenced by scClearEnterPassword() and scClearReceiveByLink().
Definition at line 257 of file clear.c.
YEAH_WIDTH
#define YEAH_WIDTH BY_LANGUAGE(6, 8, 8, 10, 8, 8)
The width of the answers "Yeah!" and "Wait a sec" to "Play on EASY level?" and the two questions after it, as each language's words need.
Referenced by scInit().
Definition at line 262 of file clear.c.
COPY_SAVE_IMAGE
#define COPY_SAVE_IMAGE(to, from) syWordsCopy(to, from, BUP_IMAGE_BYTES)
The password and link screens read The Broken Seal's data into the game's
state: KEEP_SAVE_IMAGE sets the state aside in the map metatile buffer first,
and RESTORE_SAVE_IMAGE copies what the screen left to TRANSFERRED_SAVE and
puts the state back.
Definition at line 268 of file clear.c.
KEEP_SAVE_IMAGE
#define KEEP_SAVE_IMAGE()
Referenced by scInit().
Definition at line 269 of file clear.c.
RESTORE_SAVE_IMAGE
#define RESTORE_SAVE_IMAGE()
Referenced by scInit().
Definition at line 272 of file clear.c.
LOBBY_FROM_FILE_MENU
#define LOBBY_FROM_FILE_MENU 1
The Battle Arena lobby's entrance from the file menu.
Referenced by scInit().
Definition at line 279 of file clear.c.
RETURN_TO_SAVED
#define RETURN_TO_SAVED(party)
Goes back to the saved scene and entrance.
Referenced by scInit().
Definition at line 282 of file clear.c.
PASSWORD_GOLD_LENGTH
#define PASSWORD_GOLD_LENGTH 260
The symbols of each level's password: The Broken Seal packs 173, 39 or 9
bytes (scFileScreenPackPasswordData), then two of its checksum, six bits a
symbol and a tenth symbol after every nine.
Referenced by scClearDecodePassword() and scClearEnterPassword().
Definition at line 716 of file clear.c.
PASSWORD_SILVER_LENGTH
#define PASSWORD_SILVER_LENGTH 61
Referenced by scClearDecodePassword() and scClearEnterPassword().
Definition at line 717 of file clear.c.
PASSWORD_BRONZE_LENGTH
#define PASSWORD_BRONZE_LENGTH 16
Referenced by scClearDecodePassword() and scClearEnterPassword().
Definition at line 718 of file clear.c.
PASSWORD_GOLD_BYTES
#define PASSWORD_GOLD_BYTES 175
The bytes each level decodes to, its checksum's two included.
Referenced by ClearDecodedPassword, scClearDecodePassword() and scClearPackPasswordData().
Definition at line 720 of file clear.c.
PASSWORD_SILVER_BYTES
#define PASSWORD_SILVER_BYTES 41
Referenced by scClearDecodePassword() and scClearPackPasswordData().
Definition at line 721 of file clear.c.
PASSWORD_BRONZE_BYTES
#define PASSWORD_BRONZE_BYTES 11
Referenced by scClearDecodePassword() and scClearPackPasswordData().
Definition at line 722 of file clear.c.
PASSWORD_SYMBOLS_PER_PAGE
#define PASSWORD_SYMBOLS_PER_PAGE 50
Five rows of ten.
Referenced by scClearEnterPassword().
Definition at line 724 of file clear.c.
PASSWORD_SYMBOLS_PER_ROW
#define PASSWORD_SYMBOLS_PER_ROW 10
Referenced by scClearDecodePassword() and scClearEnterPassword().
Definition at line 725 of file clear.c.
PASSWORD_SYMBOL_MASK
#define PASSWORD_SYMBOL_MASK 0x3f
Six bits: 64 symbols.
Referenced by scClearDecodePassword() and scClearEnterPassword().
Definition at line 727 of file clear.c.
PASSWORD_SYMBOL_EMPTY
#define PASSWORD_SYMBOL_EMPTY 99
A place of the entered password that holds no symbol yet.
Referenced by scClearEnterPassword().
Definition at line 729 of file clear.c.
PASSWORD_CRC_BYTES
#define PASSWORD_CRC_BYTES 2
The checksum's two bytes at the end of each level's
(scClearCalculatePasswordCrc16).
Referenced by scClearEnterPassword() and scClearPackPasswordData().
Definition at line 732 of file clear.c.
PASSWORD_CRC_SEED
#define PASSWORD_CRC_SEED 0xffff
Referenced by scClearCalculatePasswordCrc16().
Definition at line 733 of file clear.c.
PASSWORD_CRC_POLYNOMIAL
#define PASSWORD_CRC_POLYNOMIAL 0x1021
Referenced by scClearCalculatePasswordCrc16().
Definition at line 734 of file clear.c.
PASSWORD_CRC_TOP_BIT
#define PASSWORD_CRC_TOP_BIT 0x8000
Top bit of its 16 bits.
Referenced by scClearCalculatePasswordCrc16().
Definition at line 736 of file clear.c.
PASSWORD_FLAGS_BYTE
#define PASSWORD_FLAGS_BYTE 7
Where a password's parts start among its bytes: the four levels and the Djinn
from the first, the story flags, then Silver's and Bronze's Psynergy items,
which Gold has not; the stats rows after those, two party members to a row;
and Gold's alone, the party's items, 15 a member in nine bits each, their
quantities, five bits for each of the 23 items that stack
(ClearImportedStackItems), and the coins, high byte first.
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 743 of file clear.c.
PASSWORD_KEY_ITEMS_BYTE
#define PASSWORD_KEY_ITEMS_BYTE 8
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 744 of file clear.c.
PASSWORD_STATS_ROW_BYTES
#define PASSWORD_STATS_ROW_BYTES 15
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 745 of file clear.c.
PASSWORD_ITEMS_BYTE
#define PASSWORD_ITEMS_BYTE 39
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 746 of file clear.c.
PASSWORD_QUANTITIES_BYTE
#define PASSWORD_QUANTITIES_BYTE 107
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 747 of file clear.c.
PASSWORD_COINS_BYTE
#define PASSWORD_COINS_BYTE 165
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 748 of file clear.c.
PASSWORD_STACK_ITEMS
#define PASSWORD_STACK_ITEMS 23
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 749 of file clear.c.
PASSWORD_QUANTITY_MASK
#define PASSWORD_QUANTITY_MASK
A stacking item's quantity in the password: its five bits.
Referenced by scClearApplyImportedData().
Definition at line 751 of file clear.c.
PASSWORD_HP_SHIFT
#define PASSWORD_HP_SHIFT 21
A party member's base stats in the password, two words of fields: HP (11 bits), PP (11) and Attack (10); then Defense (10), Agility (10) and Luck (8) over four bits of 0. This game reads Attack, Defense and Agility back in nine bits and Luck in seven.
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 757 of file clear.c.
PASSWORD_PP_SHIFT
#define PASSWORD_PP_SHIFT 10
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 758 of file clear.c.
PASSWORD_DEFENSE_SHIFT
#define PASSWORD_DEFENSE_SHIFT 22
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 759 of file clear.c.
PASSWORD_AGILITY_SHIFT
#define PASSWORD_AGILITY_SHIFT 12
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 760 of file clear.c.
PASSWORD_LUCK_SHIFT
#define PASSWORD_LUCK_SHIFT 4
Referenced by scClearApplyImportedData() and scClearPackPasswordData().
Definition at line 761 of file clear.c.
PASSWORD_PP_MASK
#define PASSWORD_PP_MASK 0x7ff
Eleven bits.
Referenced by scClearApplyImportedData().
Definition at line 763 of file clear.c.
PASSWORD_STAT_MASK
#define PASSWORD_STAT_MASK 0x1ff
Nine bits: Attack, Defense and Agility.
Referenced by scClearApplyImportedData().
Definition at line 765 of file clear.c.
PASSWORD_LUCK_MASK
#define PASSWORD_LUCK_MASK 0x7f
Seven bits.
Referenced by scClearApplyImportedData().
Definition at line 767 of file clear.c.
PASSWORD_LEVEL_MASK
#define PASSWORD_LEVEL_MASK 0x7f
A level in the password's first bytes: seven bits each.
Referenced by scClearApplyImportedData().
Definition at line 769 of file clear.c.
GLYPH_SPRITE_BYTES
#define GLYPH_SPRITE_BYTES (4 * TILE_SIZE_4BPP)
A password glyph's sprite: four tiles, 16 pixels square.
Referenced by scClearEnterPassword().
Definition at line 771 of file clear.c.
UNIT_DJINN_BYTES
#define UNIT_DJINN_BYTES 40
A unit's Djinn, djinnHeld to djinnSetCounts.
Referenced by scClearApplyImportedData().
Definition at line 773 of file clear.c.
PASSWORD_BUFFER_SIZE
#define PASSWORD_BUFFER_SIZE
The password as entered, a symbol a byte: a Gold password is 260 symbols, which the Japanese buffer holds exactly, as in The Broken Seal. The other editions reserve 320 symbols for it, and the Japanese 60 bytes after the decoded password; nothing in this game writes or reads past 260 symbols or the decoded bytes, so the extra bytes are never used.
Referenced by ClearPasswordText.
Definition at line 780 of file clear.c.
SYMBOL_TA
#define SYMBOL_TA 15
Definition at line 816 of file clear.c.
SYMBOL_N
#define SYMBOL_N 44
Definition at line 817 of file clear.c.
SYMBOL_WO
#define SYMBOL_WO 45
Definition at line 818 of file clear.c.
SYMBOL_GA
#define SYMBOL_GA 46
Definition at line 819 of file clear.c.
SYMBOL_DA
#define SYMBOL_DA 56
Definition at line 820 of file clear.c.
SYMBOL_BA
#define SYMBOL_BA 59
Definition at line 821 of file clear.c.
KANA_WO
#define KANA_WO 134
The character codes of kana that start runs in the font's order, as The
Broken Seal's window/text_font.h names them.
を
Definition at line 825 of file clear.c.
KANA_A
#define KANA_A 145
あ, then い to そ
Definition at line 826 of file clear.c.
KANA_KA
#define KANA_KA 150
か, then き to そ
Definition at line 827 of file clear.c.
KANA_TA
#define KANA_TA 224
た, then ち to ん
Definition at line 828 of file clear.c.
KANA_TE
#define KANA_TE 227
て
Definition at line 829 of file clear.c.
KANA_TO
#define KANA_TO 228
と
Definition at line 830 of file clear.c.
KANA_HA
#define KANA_HA 234
は, then ひ to ほ
Definition at line 831 of file clear.c.
KANA_N
#define KANA_N 253
ん
Definition at line 832 of file clear.c.
VOICED
#define VOICED(code) ((code) | 1 << TEXT_MARK_SHIFT)
A kana's code with the voiced mark, FontMarkGlyphCodes's second.
Definition at line 835 of file clear.c.
SYMBOL_DIGITS
#define SYMBOL_DIGITS 24
Referenced by scClearGetPasswordCharacter().
Definition at line 837 of file clear.c.
SYMBOL_SMALL_LETTERS
#define SYMBOL_SMALL_LETTERS 32
Referenced by scClearGetPasswordCharacter().
Definition at line 838 of file clear.c.
SYMBOL_SIGNS
#define SYMBOL_SIGNS 56
Referenced by scClearGetPasswordCharacter().
Definition at line 839 of file clear.c.
TRANSFERRED_FLAGS
#define TRANSFERRED_FLAGS (TRANSFERRED_SAVE + BUP_IMAGE_GAME_FLAGS)
The transferred data's game flags, and its main routine's state and what
follows (system/definitions.h's save image).
Referenced by scClearEnterPassword() and scClearReceiveByLink().
Definition at line 903 of file clear.c.
TRANSFERRED_MAIN_ROUTINE_STATE
#define TRANSFERRED_MAIN_ROUTINE_STATE
Referenced by scClearReceiveByLink().
Definition at line 904 of file clear.c.
LINK_LANGUAGE_TAG
#define LINK_LANGUAGE_TAG BY_LANGUAGE('C', 'U', 'E', 'S', 'F', 'I')
The first letter of the greeting this screen answers The Broken Seal with,
before V, T and S: the one its FILE_SCREEN_LINK_LANGUAGE_TAG waits for.
Referenced by scClearReceiveByLink().
Definition at line 909 of file clear.c.
LINK_RECEIVE_TICKS
#define LINK_RECEIVE_TICKS 600000
Receiving by cable stops waiting after this long, almost three hours, and
ends with "Data transfer was interrupted" once The Broken Seal goes unheard
this long, as its LINK_SEND_TICKS and LINK_SILENT_TICKS.
Referenced by scClearReceiveByLink().
Definition at line 914 of file clear.c.
LINK_SILENT_TICKS
#define LINK_SILENT_TICKS 10
Referenced by scClearReceiveByLink().
Definition at line 915 of file clear.c.
RECEIVE_WINDOW_X
#define RECEIVE_WINDOW_X BY_LANGUAGE(6, 6, 5, 5, 2, 6)
The windows are as wide as each language's text needs.
Referenced by scClearReceiveByLink().
Definition at line 918 of file clear.c.
RECEIVE_WINDOW_WIDTH
#define RECEIVE_WINDOW_WIDTH BY_LANGUAGE(18, 18, 20, 20, 26, 18)
Referenced by scClearReceiveByLink().
Definition at line 919 of file clear.c.
STATUS_WINDOW_X
#define STATUS_WINDOW_X FRENCH_OR(2, 5)
Referenced by scClearReceiveByLink().
Definition at line 920 of file clear.c.
STATUS_WINDOW_WIDTH
#define STATUS_WINDOW_WIDTH FRENCH_OR(26, 20)
Referenced by scClearReceiveByLink().
Definition at line 921 of file clear.c.
SIDE_COLUMN
#define SIDE_COLUMN 20
#define SIDE_COLUMN 16
The Japanese grid has 20 columns of kana and its side column is 20.
Referenced by scClearEnterPassword().
Definition at lines 1092 and 1098 of file clear.c.
SIDE_HIGHLIGHT_WIDTH
#define SIDE_HIGHLIGHT_WIDTH 3
#define SIDE_HIGHLIGHT_WIDTH 6
Referenced by scClearEnterPassword().
Definition at lines 1093 and 1099 of file clear.c.
CHECK_WINDOW_X
#define CHECK_WINDOW_X 8
#define CHECK_WINDOW_X 5
Referenced by scClearEnterPassword().
Definition at lines 1094 and 1100 of file clear.c.
CHECK_WINDOW_WIDTH
#define CHECK_WINDOW_WIDTH 14
#define CHECK_WINDOW_WIDTH 20
Referenced by scClearEnterPassword().
Definition at lines 1095 and 1101 of file clear.c.
CURSOR_ON_SIDE_COLUMN
#define CURSOR_ON_SIDE_COLUMN(column) ((column) == SIDE_COLUMN)
#define CURSOR_ON_SIDE_COLUMN(column) ((column) > SIDE_COLUMN - 1)
Referenced by scClearEnterPassword().
Definition at lines 1096 and 1102 of file clear.c.
DRAW_KEYS
#define DRAW_KEYS(window)
Draws the kana to choose from and the side column's Space, Return and Finish into the lower window.
Draws the symbols to choose from and the side column's Space, Return and Finish into the lower window.
Referenced by scClearEnterPassword().
Definition at lines 1108 and 1133 of file clear.c.
TILE_GRID_COLUMNS
#define TILE_GRID_COLUMNS 16
The block of a window's tilemap the two unused functions below fill: 16 by 8
entries, and the second's tiles from TILE_GRID_FIRST_TILE on.
Referenced by scClearFillTileGrid() and scClearFillTileGridInOrder().
Definition at line 1625 of file clear.c.
TILE_GRID_ROWS
#define TILE_GRID_ROWS 8
Referenced by scClearFillTileGrid() and scClearFillTileGridInOrder().
Definition at line 1626 of file clear.c.
TILE_GRID_FIRST_TILE
#define TILE_GRID_FIRST_TILE 32
Referenced by scClearFillTileGridInOrder().
Definition at line 1627 of file clear.c.
Enumerations in detail
anonymous enum
enum { KEY_ROW_SPACE, KEY_ROW_RETURN, KEY_ROW_WITHOUT_SIDE_KEY, KEY_ROW_FINISH, … }
The rows of symbols to choose from, and the side column's keys beside them: Space moves on a place as R does, Return back a place as L does, and Finish checks the password as Start does. The third row has no side key.
| Enumerator | Value | Description |
|---|---|---|
KEY_ROW_SPACE | 0 | |
KEY_ROW_RETURN | 1 | |
KEY_ROW_WITHOUT_SIDE_KEY | 2 | |
KEY_ROW_FINISH | 3 | |
KEY_ROWS | 4 |
Definition at line 1150 of file clear.c.
PASSWORD_ACTION
enum PASSWORD_ACTION
What A chose this tick: a symbol of the grid or a side key.
| Enumerator | Value | Description |
|---|---|---|
PASSWORD_ACTION_NONE | -1 | |
PASSWORD_ACTION_SYMBOL | ||
PASSWORD_ACTION_SPACE | ||
PASSWORD_ACTION_RETURN | ||
PASSWORD_ACTION_FINISH |
Definition at line 1160 of file clear.c.
PASSWORD_STAGE
enum PASSWORD_STAGE
The password screen's stages: entering symbols; the last place just filled, which is drawn for a tick before the password is checked; and checking.
| Enumerator | Value | Description |
|---|---|---|
PASSWORD_STAGE_ENTERING | ||
PASSWORD_STAGE_CHECK | ||
PASSWORD_STAGE_LAST_ENTERED |
Definition at line 1171 of file clear.c.
Functions in detail
scClearReceiveByLink
Sint32 scClearReceiveByLink(void)
Receives The Broken Seal's data over the link cable: waits for that game to
greet with "0000", answers with the greeting it waits for, receives its save
image into TRANSFERRED_SAVE and reads the image's flags and units into the
game's state. Returns 1, or -1 when B gives up or the link is lost.
References CharacterUnits, fdScriptPlaySound(), GameFlagBytes, gmUnitCalculate(), LinkPeerSignatures, LinkStatusWork, MainRoutineStateWork, mnTextDrawMessage(), mnWindowClose(), mnWindowCreate(), mnWindowSpritePrepareForRedraw(), PerWork, scFieldWindowColorApply(), SerialReceiveDestination, SerialReceivedSize, SerialTransfer, Sint32, sySerialInit(), sySerialRemoveIRQHandlers(), sySerialStartReceive(), sySynch() and syWordsCopy().
Referenced by scInit().
Definition at lines 45 and 927 of file clear.c.
scClearEnterPassword
Sint32 scClearEnterPassword(void)
The password screen: chooses the password's level, then lets the player enter it on the grid of symbols, checks it and applies it; returns -1 when cancelled.
References __modsi3(), ClearCursorBob, ClearDecodedPassword, ClearPasswordGrid, ClearPasswordText, FrameCount, GameFlagBytes, gmMainRoutineStateInitDefaults(), gmPartyAddMember(), gmPartyRemoveMember(), MainRoutineStateWork, mnGlyphAddBlankSprite(), mnGlyphDrawToTiles(), mnGraphicsExpandVRAMTilesByColorTable(), mnIconMenuChooseSendOption(), mnNameCaretLoadIntoSlot(), mnNameEntryEditMemberName(), mnPointingHandLoadIntoSlot(), mnStatusScreenRun(), mnTextDrawMessageAsTiles(), mnWindowClose(), mnWindowColorApply(), mnWindowCreate(), mnWindowDrawDividerLine(), mnWindowSetTextTileRect(), mnWindowSetTilemapEntry(), mnWindowSpriteCreate(), mnWindowSpriteRedrawSavedRect(), PerWork, scClearApplyImportedData(), scClearCalculatePasswordCrc16(), scClearDecodePassword(), scClearGetPasswordCharacter(), scCursorAttach(), scCursorPlace(), scCursorShow(), Sint32, syDMAXCopy(), syHeapAllocateEWRAM(), sySoundPlay(), sySynch(), syVRAMCacheFindFreeEntry(), syWindowLoadGraphics() and syWordsCopy().
Referenced by scInit().
Definition at lines 46 and 1181 of file clear.c.
scClearApplyImportedData
void scClearApplyImportedData(Sint32 level, Uint8 *in)
Applies a decoded password of the given level (PASSWORD_LEVEL) to Isaac's
party: the unpacking of The Broken Seal's scFileScreenPackPasswordData.
References ClearImportedFlags, ClearImportedKeyItems, ClearImportedMembers, ClearImportedStackItems, gmDjinnGetRecoveryTable(), gmDjinnGiveToParty(), gmPartyInventoryAdd(), gmUnitCalculate(), gmUnitGet(), gmUnitGetExperienceForLevel(), gmUnitUpdateClass(), MainRoutineStateWork, Sint32, syGameFlagClear() and syGameFlagSet().
Referenced by scClearEnterPassword().
Definition at lines 47 and 1701 of file clear.c.
scClearDecodePassword
Sint32 scClearDecodePassword(Uint8 *src, Sint32 length, Uint8 *dest)
Decodes length symbols of an entered password (src) into dest, undoing The
Broken Seal's scFileScreenEncodePassword: each symbol less its place, the
checksum symbols skipped, six bits a symbol, then every byte but the last
XORed with the last. Returns the bytes written.
References Sint32.
Referenced by scClearEnterPassword().
Definition at lines 52 and 2116 of file clear.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 66 of file clear.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 71 of file clear.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 76 of file clear.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References ActorPlacements.
Definition at line 81 of file clear.c.
scGetCues
const CUE *scGetCues(void)
References SceneCues.
Definition at line 86 of file clear.c.
scClearLoadBackground
void scClearLoadBackground(void)
Loads the title logo onto BG2 as scTitleLoadBackground (title.c) does, and
stops the leader's motion.
References BgScrollWork, fdActorGet(), MainRoutineStateWork, scFieldDecompressTaggedLZ(), Sint32, syDMAXCopy(), syResourceGetTableEntry() and syScreenFadeToBlack().
Referenced by scInit().
Definition at line 93 of file clear.c.
scClearFadeInBlend
void scClearFadeInBlend(void)
The event that fades BG0 and the sprites in over the logo, a step of the blend every second tick.
References ClearBlendTick, scFieldCloseEvent() and Sint32.
Referenced by scInit().
Definition at line 146 of file clear.c.
scClearCheckButtonCodes
void scClearCheckButtonCodes(void)
Follows the two secret button codes: each held key that matches the next key of a code advances it, a wrong key starts it again, and finishing a code unlocks it with a sound.
References ClearButtonCode, ClearCodeHeld, ClearCodeProgress, ClearCodeUnlocked, ClearExtraButtonCode, ClearExtraCodeHeld, ClearExtraCodeProgress, ClearExtraCodeUnlocked, fdScriptPlaySound() and PerWork.
Referenced by scInit().
Definition at line 169 of file clear.c.
scClearIsRetreatBlocked
Sint32 scClearIsRetreatBlocked(void)
Whether a save cannot be sent back to its Sanctum: it was made where Retreat is blocked, outside a town and off the world map. Holding L and Start as a file loads, or recovering a corrupted one, restarts the party at the Sanctum unless this returns -1.
References fdScriptGetFlag(), MainRoutineStateWork and Sint32.
Referenced by scInit().
Definition at line 227 of file clear.c.
scInit
Sint32 scInit(void)
References AnyFileCleared, Call3(), ClearCodeUnlocked, ClearExtraCodeUnlocked, DebugMode, fdScriptClearFlag(), fdScriptFinishScreenTransition(), fdScriptGetFlag(), fdScriptSetDestination(), fdScriptSetFlag(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdYesNoAsk(), gmBuildStampGetTime(), gmClearDataApply(), gmDataTransferApply(), gmDataTransferGiveDefaultDjinn(), gmInventorySnapshotRestore(), gmMainRoutineStateInitDefaults(), gmPartyAddMember(), IdleSleepEnabled, MainRoutineStateWork, mnFieldMessageShow(), mnFieldMessageShowCentered(), mnFileListSelectAction(), mnIconMenuChooseSendOption(), mnMessageCloseFinishedWindows(), mnNameEntryEditMemberName(), mnSaveChooseAndLoadFile(), mnSaveCopyFile(), mnSaveEraseSelectedFile(), mnSaveScanFileSummaries(), mnSaveToChosenFile(), mnStatusScreenRun(), mnWindowColorApply(), mnYesNoMenuRun(), PerWork, result, scClearCheckButtonCodes(), scClearEnterPassword(), scClearFadeInBlend(), scClearIsRetreatBlocked(), scClearLoadBackground(), scClearReceiveByLink(), Sint32, SleepDisabled, sySetEvent(), sySoundPlay() and sySynch().
Definition at line 290 of file clear.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 708 of file clear.c.
scClearGetPasswordCharacter
void scClearGetPasswordCharacter(Sint32 symbol, Uint16 *text)
The character a password symbol stands for, in the font's codes, a kana's voiced mark in its top bits.
References Sint32.
Referenced by scClearEnterPassword().
Definition at line 844 of file clear.c.
scClearCalculatePasswordCrc16
Uint16 scClearCalculatePasswordCrc16(Uint32 length, Uint8 *p)
The password's checksum, as The Broken Seal's
scFileScreenCalculatePasswordCrc16 makes it: over length bytes at p, shifted
a bit at a time from PASSWORD_CRC_SEED, PASSWORD_CRC_POLYNOMIAL subtracted
when the top bit falls out, and the result complemented. The password screen
checks it against a decoded password's last PASSWORD_CRC_BYTES.
Referenced by scClearEnterPassword().
Definition at lines 1065 and 2178 of file clear.c.
scCursorAttach
static inline void scCursorAttach(MENU_CURSOR *cursor, WINDOW_SPR *sprite)
Gives a cursor its sprite.
Referenced by scClearEnterPassword().
Definition at line 1072 of file clear.c.
scCursorPlace
static inline void scCursorPlace(MENU_CURSOR *cursor, Sint32 x, Sint32 y)
Sets a cursor where it starts.
References mnCursorSetPosImmediate() and Sint32.
Referenced by scClearEnterPassword().
Definition at line 1078 of file clear.c.
scCursorShow
static inline void scCursorShow(MENU_CURSOR *cursor, Sint32 x, Sint32 y)
Moves a cursor and shows it.
References mnCursorAdvance(), mnCursorSet() and Sint32.
Referenced by scClearEnterPassword().
Definition at line 1084 of file clear.c.
scClearFillTileGrid
void scClearFillTileGrid(WINDOW *window, const void *compressedTiles)
Unused: unpacks compressedTiles into a scratch buffer and fills the block at
the window's top left corner, in VRAM and in the window state's copy, with
the window's tiles row by row, a row the window's width apart. The unpacked
tiles go nowhere.
References Sint32, syDecompressTaggedLZ(), syHeapAllocateEWRAM() and syHeapRelease().
Definition at line 1633 of file clear.c.
scClearFillTileGridInOrder
void scClearFillTileGridInOrder(WINDOW *window)
Unused: fills the block at the window's top left corner with the tiles from
TILE_GRID_FIRST_TILE on, in order; the scratch buffer it takes goes unused.
References Sint32, syHeapAllocateEWRAM() and syHeapRelease().
Definition at line 1665 of file clear.c.
scClearPackPasswordData
Sint32 scClearPackPasswordData(Sint32 unused, Sint32 level, Uint8 *out)
Unused: packs Isaac's party for a password of the given level
(PASSWORD_LEVEL) as The Broken Seal's scFileScreenPackPasswordData does, and
returns the byte count.
References ClearPasswordFlags, ClearPasswordKeyItems, ClearPasswordMembers, ClearPasswordStackItems, gmUnitGet(), MainRoutineStateWork, Sint32 and syGameFlagGet().
Definition at line 1898 of file clear.c.
Variables in detail
ClearButtonCode
extern Uint16 ClearButtonCode[]
Uint16 ClearButtonCode[]
The two secret button codes, each ended by 0, and for each whether it is unlocked, how many of its keys have been pressed in order, and whether a key is still held.
The first secret code, as The Broken Seal's: Select three times. With it a new game names
Jenna, Sheba and Piers as well as Felix (scInit).
Referenced by scClearCheckButtonCodes().
Definition at lines 33 and 2212 of file clear.c.
ClearExtraButtonCode
extern Uint16 ClearExtraButtonCode[]
Uint16 ClearExtraButtonCode[]
The second, longer code. With it a new game also names Garet, Ivan and Mia.
Referenced by scClearCheckButtonCodes().
Definition at lines 34 and 2217 of file clear.c.
ClearCodeUnlocked
extern Sint16 ClearCodeUnlocked
Sint16 ClearCodeUnlocked
Referenced by scClearCheckButtonCodes() and scInit().
Definition at lines 35 and 2270 of file clear.c.
ClearExtraCodeUnlocked
extern Sint16 ClearExtraCodeUnlocked
Sint16 ClearExtraCodeUnlocked
Referenced by scClearCheckButtonCodes() and scInit().
Definition at lines 36 and 2272 of file clear.c.
ClearCodeProgress
extern Sint16 ClearCodeProgress
Sint16 ClearCodeProgress
Referenced by scClearCheckButtonCodes().
Definition at lines 37 and 2274 of file clear.c.
ClearExtraCodeProgress
extern Sint16 ClearExtraCodeProgress
Sint16 ClearExtraCodeProgress
Referenced by scClearCheckButtonCodes().
Definition at lines 38 and 2276 of file clear.c.
ClearCodeHeld
extern Sint16 ClearCodeHeld
Sint16 ClearCodeHeld
Referenced by scClearCheckButtonCodes().
Definition at lines 39 and 2278 of file clear.c.
ClearExtraCodeHeld
extern Sint16 ClearExtraCodeHeld
Sint16 ClearExtraCodeHeld
Referenced by scClearCheckButtonCodes().
Definition at lines 40 and 2280 of file clear.c.
ClearBlendTick
extern Uint16 ClearBlendTick[]
Uint16 ClearBlendTick[]
The step of the logo's fade in (scClearFadeInBlend).
Referenced by scClearFadeInBlend().
Definition at lines 43 and 2266 of file clear.c.
ClearCursorBob
extern Sint8 ClearCursorBob[]
Sint8 ClearCursorBob[]
The password screen's tables: the caret's bob, the rows of symbols as drawn, the symbol each key of the grid enters, a row at a time, 99 on a key with none, and the story flags a password brings in.
The caret's bob in pixels: scClearEnterPassword adds the step (FrameCount >> 1) & 7 to its x
and the step five on to its y, so that it circles over the place being entered.
Referenced by scClearEnterPassword().
Definition at lines 57 and 2227 of file clear.c.
ClearFirstPasswordRow
extern Uint8 ClearFirstPasswordRow[]
Uint8 ClearFirstPasswordRow[]
The password grid's four rows of symbols as DRAW_KEYS writes them, five to a group (the
Japanese grid is kana, MsgFieldPasswordKana).
Definition at lines 58 and 2234 of file clear.c.
ClearSecondPasswordRow
extern Uint8 ClearSecondPasswordRow[]
Uint8 ClearSecondPasswordRow[]
Definition at lines 59 and 2235 of file clear.c.
ClearThirdPasswordRow
extern Uint8 ClearThirdPasswordRow[]
Uint8 ClearThirdPasswordRow[]
Definition at lines 60 and 2236 of file clear.c.
ClearPasswordGrid
extern const Uint8 ClearPasswordGrid[]
const Uint8 ClearPasswordGrid[]
The symbol each key of the password grid enters, a row of SIDE_COLUMN keys at
a time, and 99 (PASSWORD_SYMBOL_EMPTY) on a key with none.
Referenced by scClearEnterPassword().
Definition at lines 61 and 2308 of file clear.c.
ClearImportedFlags
extern Uint16 ClearImportedFlags[]
Uint16 ClearImportedFlags[]
The six story flags of a password's PASSWORD_FLAGS_BYTE, by The Broken Seal's numbers, which
gmDataTransferApply reads them by.
Referenced by scClearApplyImportedData().
Definition at lines 62 and 2242 of file clear.c.
ClearPasswordText
Uint8 ClearPasswordText[PASSWORD_BUFFER_SIZE]
The password as the player enters it, a symbol a byte.
Referenced by scClearEnterPassword().
Definition at line 783 of file clear.c.
ClearDecodedPassword
Uint8 ClearDecodedPassword[PASSWORD_GOLD_BYTES]
The entered password's bytes, decoded (scClearDecodePassword).
Referenced by scClearEnterPassword().
Definition at line 785 of file clear.c.
ClearPasswordSpare
Uint8 ClearPasswordSpare[60]
Unused: the Japanese edition's 60 bytes after the decoded password.
Definition at line 788 of file clear.c.
ClearFourthPasswordRow
extern Uint8 ClearFourthPasswordRow[]
Uint8 ClearFourthPasswordRow[]
Definition at lines 1061 and 2237 of file clear.c.
MsgFieldPasswordKana
extern Uint8 MsgFieldPasswordKana[]
Definition at line 1063 of file clear.c.
ClearImportedMembers
extern Sint32 ClearImportedMembers[]
LATE_DATA Sint32 ClearImportedMembers[]
The four whose data a Broken Seal password brings in, in its order.
References Sint32.
Referenced by scClearApplyImportedData().
Definition at lines 1695 and 2325 of file clear.c.
ClearImportedKeyItems
extern Uint16 ClearImportedKeyItems[]
LATE_DATA Uint16 ClearImportedKeyItems[]
The key items a Broken Seal password gives Isaac's party, in its order.
Referenced by scClearApplyImportedData().
Definition at lines 1696 and 2330 of file clear.c.
ClearImportedStackItems
extern Uint16 ClearImportedStackItems[]
LATE_DATA Uint16 ClearImportedStackItems[]
The items a Broken Seal password gives a count of, in its order.
Referenced by scClearApplyImportedData().
Definition at lines 1697 and 2336 of file clear.c.
ClearPasswordFlags
extern Uint16 ClearPasswordFlags[]
LATE_DATA Uint16 ClearPasswordFlags[]
Its copy of ClearImportedFlags.
Referenced by scClearPackPasswordData().
Definition at lines 1890 and 2351 of file clear.c.
ClearPasswordMembers
extern Sint32 ClearPasswordMembers[]
LATE_DATA Sint32 ClearPasswordMembers[]
The unused scClearPackPasswordData's copy of ClearImportedMembers.
References Sint32.
Referenced by scClearPackPasswordData().
Definition at lines 1891 and 2346 of file clear.c.
ClearPasswordKeyItems
extern Uint16 ClearPasswordKeyItems[]
LATE_DATA Uint16 ClearPasswordKeyItems[]
Its copy of ClearImportedKeyItems.
Referenced by scClearPackPasswordData().
Definition at lines 1892 and 2361 of file clear.c.
ClearPasswordStackItems
extern Uint16 ClearPasswordStackItems[]
LATE_DATA Uint16 ClearPasswordStackItems[]
Its copy of ClearImportedStackItems, without the end mark.
Referenced by scClearPackPasswordData().
Definition at lines 1893 and 2367 of file clear.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 2254 of file clear.c.
ActorPlacements
ACTOR_PLACE ActorPlacements[]
Referenced by scGetActorPlacements().
Definition at line 2258 of file clear.c.
SceneCues
CUE SceneCues[]
Referenced by scGetCues().
Definition at line 2262 of file clear.c.