diff options
| author | iamcheeseman <[hidden email]> | 2026-01-15 13:51:07 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-01-15 13:51:07 -0500 |
| commit | 4563dfa077e029fbefd192f087338d186155ebfc (patch) | |
| tree | 4af1101f408081e74fc12cb372824b7e2d3e70d4 /src/player.odin | |
| parent | 3c640e0d8244f87fec9518a60c7e5e95713d7f78 (diff) | |
Debug mode; displays collision shapes
Diffstat (limited to 'src/player.odin')
| -rw-r--r-- | src/player.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.odin b/src/player.odin index abed174..497407c 100644 --- a/src/player.odin +++ b/src/player.odin @@ -124,7 +124,7 @@ _default_state :: proc(dt: f32) { rel_mouse_pos := get_mouse_pos() - pos if is_keybind_just_down(actions.shoot) { - mouse_dir := linalg.normalize0(rel_mouse_pos) + mouse_dir := linalg.normalize0(rel_mouse_pos + {0, PLAYER_GUN_HEIGHT}) bullet_pos := pos bullet_pos.y -= PLAYER_GUN_HEIGHT |
