diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-18 12:39:33 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-18 12:39:33 +0200 |
commit | 2a31d26fca33789ccf8ea28cdb214d20dd29f85d (patch) | |
tree | 426faa4d55905ecacdb9a1a4beca6d5a1ab97953 /pixel-client/src/game.rs | |
parent | c4ae8c2df44cac2a8b3e4c8db43c2870b7d2bf69 (diff) | |
download | hurrycurry-2a31d26fca33789ccf8ea28cdb214d20dd29f85d.tar hurrycurry-2a31d26fca33789ccf8ea28cdb214d20dd29f85d.tar.bz2 hurrycurry-2a31d26fca33789ccf8ea28cdb214d20dd29f85d.tar.zst |
serve-authorative movement
Diffstat (limited to 'pixel-client/src/game.rs')
-rw-r--r-- | pixel-client/src/game.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pixel-client/src/game.rs b/pixel-client/src/game.rs index 1fc49c6b..7e43bdc9 100644 --- a/pixel-client/src/game.rs +++ b/pixel-client/src/game.rs @@ -348,7 +348,10 @@ impl Game { } pub fn draw(&self, ctx: &mut SpriteRenderer) { - ctx.set_view(-self.camera_center + (ctx.size / ctx.get_scale() / 2.), 1.); + ctx.set_view( + -self.camera_center + (ctx.size / ctx.get_scale() / 2.), + ctx.size.min_element() / 32. / 10., + ); self.tilemap.draw(ctx); |