Operation Null Mind 0.4.1
A 2D roguelike top down shooter game made with SDL2
 
Loading...
Searching...
No Matches
player_preupdate.c File Reference

Pre-update logic for the player character. More...

#include <player.h>

Functions

int Player_Preupdate ()
 [PreUpdate] Resets player state at the beginning of each frame
 

Detailed Description

Pre-update logic for the player character.

Handles preliminary player state updates that need to occur before main game systems are updated.

Clears movement and location flags to ensure they're recalculated each frame, and resets direction vector if not locked.

Author
Mango
Date
2025-03-03

Function Documentation

◆ Player_Preupdate()

int Player_Preupdate ( )

[PreUpdate] Resets player state at the beginning of each frame

Pre-update operations for player.

Clears movement and location flags to ensure they're recalculated each frame, and resets direction vector if not locked.

Returns
int Status code (0 for success)