Go to the source code of this file.
Data Structures | |
| struct | RECT |
| struct | RGBA_u8 |
| struct | RGB_u8 |
| struct | BGR_u8 |
Macros | |
| #define | SCREEN_LEFT_EDGE 0x0 |
| #define | SCREEN_RIGHT_EDGE 0x200 |
| #define | SCREEN_TOP_EDGE 0x0 |
| #define | SCREEN_BOTTOM_EDGE 0xE8 |
| #define | FPS 30 |
| #define | WORLD_UNIT 4096 |
| #define | GAME_UNIT 64 |
Functions | |
| int | printf (const char *format,...) |
| int | sprintf (char *output, const char *format,...) |
| void | memset (void *str, int c, int n) |
| int | rand () |
| void | srand (int seed) |
| void | Maybe_ArrayCopy (int *outputArray, int *inputArray, int arrayLength) |
| void | RenderShadedMobys () |
| Renders shaded moby objects in the world. (Gems, HUD Elements, etc.) Address: 0x80022a2c. | |
| void | RenderNormalMobys () |
| Renders normal moby objects in the world. (Enemies, Chests, Dragons, etc.) Address: 0x8001f798. | |
| void | RenderAllObjects () |
| Renders all objects in the world. (Enemies, Chests, Dragons, etc.) Address: 0x8001f798. | |
| void | PrimitiveAlphaHack (void *param_1, int param_2, int param_3, short colorSpace, int param_5) |
| This is a weird hack that seems to be related to transparency for primitaves? Address: 0x80060670. | |
| void | CopyHudToShaded () |
| void | DrawLine (int point1X, int point1Y, int point2X, int point2Y) |
| Draws a golden line to the screen Address: 0x8001844c. | |
| void | FillScreenColor (int colorSpace, char r, char g, char b) |
| void | PlayIntroCutscenes () |
| void | TheAdventureBegins () |
| void | TheAdventureContinues () |
| void | LockCameraToSpyro (void) |
| void | Vec3IntToShortDiv4 (short *Vec3ShortPTR, int *Vec3PTR) |
| char * | GetNextParticleSlot (char param_1) |
| void | CreateParticle (int param_1, int param_2, int **ptrToMoby, int *param_4) |
| void | UpdateMobyCollision (int param_1, unsigned int param_2) |
| int | PlaySoundEffect (int soundEffectID, int ptrToMoby, int playbackMode, char *param_4) |
| void | PlayMusicTrack (int track_number, int flags) |
| Plays/Continues a music track Address: 0x800567f4. | |
| int | LoadImageOrTexture (RECT *rect, int *p) |
| int | DrawSync (int mode) |
| void | Maybe_ResetHudTimers (void) |
Variables | |
| bool | _isPastTitleScreen |
| If has started new game/continue game, then is 1 for true. Basically after you leave the title screen this is always 1. Address: 0x8007566c. | |
| bool | _isLoading |
| true/1 if is in loading screen. Address: 0x800756B0 | |
| bool | _isInsideOptionsMenu |
| true/1 If inside options menu in start menu. Address: 0x800757C8 | |
| bool | _canFlyIn |
| true/1 If can fly in to level. This is always 1. If set to 0, will just fade in instead of flying in. I assume this is a leftover from prototypes? Address: 0x800756D0 | |
| int | _globalTimer |
| This is the global timer. It is running at all times from game boot up past BIOS. Address: 0x800749e0. | |
| int | _pausedTimer |
| This is the pause/inventory menu timer. It is only running in those menus. Address: 0x800758B8. | |
| int | _loadingTimer |
| This is the pause/inventory menu timer. It is only running in those menus. Address: 0x8007588c. | |
| int | _levelTimerWhenActive |
| This is a level specific timer. This timer is running when when you are able to control spyro, and doesn't reset until you enter a new level. Address: 0x8007572C. | |
| int | _levelTimer_60fps |
| This is a level specific timer that runs at 60fps. This timer is running at all times, and doesn't reset until you enter a new level. Address: 0x800758C8. | |
| int | _vSyncTimer_60fps |
| This is a global timer at 60fps. It is running at all times, and controls the vSync. If frozen, video freezes. Can be unfrozen. Address: 0x800749E0. | |
| int | _wobbleAndOpacityTimer |
| This is a timer that is often used for changing the opacity of things like lines, the shimmer of text, etc. Address: 0x800770f4. | |
| int | _gameState |
| Main gamestate. Gamestate values are stored in the GameState enums. Address: 0x800757D8. | |
| unsigned short | _currentButtonsHeld |
| Value coorsponding the the current button(s) being held. Address: 0x80077380. | |
| unsigned short | _currentButtonsPressed |
| Value coorsponding the the current button(s) that were pressed for 1 frame. Goes back to 0 after 1 frame. Address: 0x80077378. | |
| int | _secondController |
| STILL RESEARCHING Address: 0x80078E50. | |
| int | _movementSubState |
| Research this more. 0xA is the loop for example. Address: 0x80078AD4. | |
| int | _isInPortal |
| 0x5 for in portal, 0xF for loading afterwards. Stays on 0xF until next portal. Address: 0x80078C70 | |
| short | _globalGemCount |
| Total amount of global gems Address: 0x80075860. | |
| int | _globalDragonCount |
| Total amount of global dragons Address: 0x80075750. | |
| int | _globalEggCount |
| Total amount of global eggs Address: 0x80075810. | |
| int | _levelID |
| Current Level ID according to the LevelIDS enum Address: 0x800758B4. | |
| char | _portalToExitFromInHW |
| Level ID for which portal to exit from in Homeworld. Uses same LevelIDS enum Address: 0x800758AC. | |
| short | _flyInAnimation |
| This is what determines the fly in animation during the loading screen of a level Address: 0x80076EA8. | |
| Vec3 | _cameraPosition |
| Camera Position Address: 0x80076DF8. | |
| CameraAngle | _cameraAngle |
| Camera Angle (yaw, pitch, roll) Address: 0x80076E1C. | |
| short | _cameraRotationMatrix [3][3] |
| short | _cameraPureRotationMatrix [3][3] |
| short | _sinArray [256] |
| A scaled up sin lookup table Address: 0x8006cbf8. | |
| char | _mainMenuState |
| This is the current state of the main menu. Should make an enum for this Address: 0x80078D88. | |
| int | _balloonistState |
| The State for the balloonist. Should make an enum for this. Address: 0x800777e8. | |
| int | _startMenuSelection |
| This is the current option selected in the main start menu, according to the StartMenuSelections enum. Address: 0x80075720. | |
| int | _inventoryMenuScreen |
| This is the current homeworld menu in the inventory menu according to the InventoryMenuSelections enum's. Address: 0x80075744. | |
| char | _whichCutscene |
| Which cutscene is currently being played Address: 0x80078D94. | |
| char | _effect_ScreenFadeIn |
| This is what determines how much to fill the screen with a black fade in effect. Address: 0x80075918. | |
| char | _effect_ScreenLetterBox |
| This is what determines how much to fill the screen with the top and bottom letterbox effect. Address: 0x800756C0. | |
| char | _collectablesStateFlags [1231] |
| The array for what collectables you have collected globally so far. Address: 0x80077900. | |
| int * | _ptr_levelMobys |
| This is a pointer to the start of the level moby's array of stucts. Address: 0x80075828. | |
| int * | _ptr_dynamicLevelMobys |
| This is a pointer to the start of the dynamic level moby's array. Address: 0x8007573C. | |
| int * | _ptr_levelMobySpecialData |
| This is a pointer to the start of the level moby's special data array of structs. Address: 0x80075930. | |
| int * | _ptr_primitivesArray |
| int * | _ptr_arrayGraphicsRelatedPointers |
| int | _ptrTextUnk |
| char * | _ptr_hudMobys |
| char * | _ptr_particleLinkedList |
| char | _hudChestState |
| char | _hudDragonState |
| char | _hudLivesState |
| char | _hudEggsState |
| char | _hudAnimationState |
| int | _hudElementsSpinTimer |
| int | _unk_spinRelated |
| char * | _localSoundEffects |
| int | _musicLevelTrack |
| The music track that is associated with the level you're currently in. Address: 0x80075828. | |
| int * | _maybe_ptr_levelTextureRelated |
| byte | _cdStatus |
| enum BalloonistStates |
| enum Buttons |
| enum GameState |
| enum LevelFlyInAnimations |
| enum LevelIDS |
| enum MovementSubStates |
| enum SpyroHealthStates |
| enum StartMenuSelections |