53 if (resolved_level_id == 0xb || resolved_level_id == 0x10 || resolved_level_id == 0x15 || resolved_level_id == 0x1a)
61 if (resolved_level_id < 7 || resolved_level_id >= 0x1b)
63 if (resolved_level_id >= 0x1b && resolved_level_id < 0x21)
69 int32_t completion_bits = (int32_t)(int8_t)
g_collectiblesData.level_completion_flags[save_index];
70 int32_t completed_collectible_count = 0;
75 for (int32_t i = 0; i < 6; i += 1)
78 completed_collectible_count += 1;
124 if (current_level_id == 6)
134 ((int64_t)(cheat_window_height * 0x142) / cheat_window_height + 0x20)
136 (uint32_t)(uint16_t)((int64_t)(cheat_window_width * 0x14) / cheat_window_width),
137 "Cheater!", 0, NULL);
183 if (displayed_bone_count == -1)
193 if (displayed_puppy_count == -1)
202 if (displayed_player_bone_count < 0)
206 if (displayed_player_bone_count == -1)
208 displayed_player_bone_count = 0;
252 int32_t draw_x = (int32_t)((uint32_t)width * 20) / width;
264 uint32_t remaining = (uint32_t)(int32_t)frames->
frame_count;
270 }
while (--remaining);
281 int32_t bottom_margin = (int32_t)((uint32_t)height * 32) / height;
282 uint32_t draw_y = (uint32_t)height - bottom_margin - icon_height;
290 draw_x += (int32_t)((uint32_t)width * 3) / width + icon_width;
313 if (bone_count_or_level_id < 0)
329 int16_t puppy_count_or_completion_bits = (*(uint16_t *)&
g_submenuCount);
538 else if (!target_menu)
541 int32_t highest_world_index = (int32_t)highest_world_byte;
543 if ((int64_t)highest_world_index % 5)
bool Animation_ProcessController(struct Material_Node **material_nodes, Animation_PackedControllerState *packed_controller_state_in_out, int32_t frame_count_q12)
#define g_boneCounterUIState
void Audio_FadeInMusic(void)
int32_t Audio_SetMusicFadeTarget(int32_t target_volume, int16_t frame_count)
void Audio_ResumeAllSounds(void)
int32_t Audio_PlaySound3D(struct Audio_SoundDefinition *sound_def, struct Math_Vec3I32 *position)
#define g_soundDefinitionTable
void Camera_StartRollEffect(int16_t amplitude, int16_t duration_ticks)
struct Actor_State * Entity_GetCurrentOrFirstActiveActor(void)
#define GAME_TRANSITION_GAME_OVER
#define GAME_OVERLAY_SKIP_NODE_ANIMATION
#define GAME_TRANSITION_RESPAWN_PENDING
#define GAME_TRANSITION_BONUS_REPLAY
#define GAME_TRANSITION_CHEAT_ENABLED
#define GAME_TRANSITION_SCRIPT_PAUSED
#define GAME_TRANSITION_UNLOAD_LEVEL
#define GAME_TRANSITION_MENU_ACTIVE
void Game_TriggerPause(int32_t pause_type)
void Player_SetCompletionFlags(struct Actor_State *actor)
#define Game_FrameTransitionFlags
#define Game_FrameOverlayFlags
#define Game_PauseStateCounter
void Graphics_RenderTexturedSprite(uint32_t packed_xy, uint32_t packed_wh, struct Graphics_Render_SpriteContext *sprite, uint32_t render_flags, uint32_t rotation_angle, uint32_t rotation_pivot_xy)
#define Graphics_WindowWidth
#define Graphics_WindowHeight
int32_t Level_GetSaveArrayIndex(int32_t level_id)
int32_t Level_PassthroughIndex(int32_t level_id)
void Level_InitializeBonusData(int32_t level_id, int32_t save_index)
#define g_currentLevelCompletionBits
void Material_ReleaseSectionTextures(struct Material_SectionHeader *material_section)
void Pkg_CleanupResourceHandle(void *resource_data)
void Pkg_FreeResourceData(void *resource_data)
#define g_sharedSoundDataBase
#define g_sharedMaterialSection
#define g_resourceDataBuffer
void Save_SetGameComplete(uint8_t complete)
int32_t Save_GetGameHighestWorld(void)
int32_t Save_IsGameComplete(void)
#define g_collectiblesData
struct Material_RuntimeDescriptor * textureDescriptor
struct Material_FrameData ** frame_ptr_array
struct Math_SizeU8 dimensions_minus_1
char * String_GetByIndex(int32_t string_id)
#define UI_PROMPT_BLINK_FRAME_MASK
#define UI_TEXT_ALIGN_CENTER
#define UI_PACKED_Y_SHIFT
#define UI_COUNTER_REARM_FRAME
#define UI_BIT_INDEX_MASK
#define UI_COUNTER_HOLD_FRAME
#define UI_LIVES_DISABLED_BASE
#define UI_COMPLETION_FIRST_ITEM
#define UI_COUNTER_ANIMATION_FINISHED
int32_t UI_UpdateLives(int32_t icon_count, int32_t lives)
void UI_UpdatePuppyCounter(int32_t puppy_count)
void UI_UpdateBoneCounter(int32_t bone_count)
void UI_RenderText(uint32_t packed_xy, char const *text, uint32_t text_flags, void *font_context)
#define g_skipTitleScreen
#define UI_PuppyCounterAnimState
#define UI_LivesCounterLastValue
#define g_puppyCounterUIState
#define g_livesUICurrentValue
#define UI_BoneCounterAnimState
#define UI_LivesCounterAnimState
#define g_resourceHandle1
#define g_currentUseableMats
#define g_bonusCheckpointIndex1Based