diff options
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 |
