summaryrefslogtreecommitdiff
path: root/pixel-client/src/game.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pixel-client/src/game.rs')
-rw-r--r--pixel-client/src/game.rs10
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 {