Skip to content

Commit

Permalink
another clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
z64a committed Oct 5, 2024
1 parent b02d37e commit cf66a3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions include/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ void game_input_to_move_vector(f32* x, f32* y);
void exec_ShakeCamX(s32 arg0, s32 arg1, s32 arg2, f32 arg3);
void exec_ShakeCam1(s32 arg0, s32 arg1, s32 arg2);

// returns the angle that the player *sprite* is facing in world-space, this is NOT the direction the player character
// is facing, i.e. the direction of motion. think of this as the direction of a hammer impact relative to the center
// of the player.
// returns the angle that the player is facing "toward" in world-space.
// this will always be to the left or the right relative to the current camera position.
// note that this is NOT the direction the player character is moving, nor the orientation of the sprite itself.
// think of this as the direction of a hammer impact relative to the center of the player.
f32 player_get_side_angle(void);

void draw_number(s32 value, s32 x, s32 y, s32 variableWidthChars, s32 palette, s32 opacity, u16 style);
Expand Down
2 changes: 1 addition & 1 deletion src/cam_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ Camera* initialize_next_camera(CameraInitData* initData) {
camera->lookAt_obj.x = 0;
camera->lookAt_obj.y = 0;
camera->lookAt_obj.z = -100.0f;
camera->curYaw = 0;
camera->curYaw = 0.0f;
camera->curBoomLength = 0;
camera->targetOffsetY = 0;
camera->curBoomYaw = 0.0f;
Expand Down

0 comments on commit cf66a3e

Please sign in to comment.