diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-17 22:42:34 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-17 22:42:34 +0200 |
commit | db36af42d34e1af26d4f76a14f310eea367396f9 (patch) | |
tree | f9b15aa94690895d0d18778f63277e45f23a1360 /pixel-client/src/game.rs | |
parent | 315864c63650c7b5d7dbb6efb53dea47c4610881 (diff) | |
download | hurrycurry-db36af42d34e1af26d4f76a14f310eea367396f9.tar hurrycurry-db36af42d34e1af26d4f76a14f310eea367396f9.tar.bz2 hurrycurry-db36af42d34e1af26d4f76a14f310eea367396f9.tar.zst |
show interact target
Diffstat (limited to 'pixel-client/src/game.rs')
-rw-r--r-- | pixel-client/src/game.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pixel-client/src/game.rs b/pixel-client/src/game.rs index cbc9954c..1fc49c6b 100644 --- a/pixel-client/src/game.rs +++ b/pixel-client/src/game.rs @@ -352,6 +352,16 @@ impl Game { self.tilemap.draw(ctx); + if let Some(me) = self.players.get(&self.my_id) { + let t = me.movement.get_interact_target(); + ctx.draw_world( + self.misc_textures + .interact_target + .at(t.as_vec2()) + .tint(100, 100, 255), + ) + } + for p in self.players.values() { ctx.draw_world(self.misc_textures.player.at(p.movement.position)); if let Some(item) = &p.item { |