Skip to content

Commit 9dfd63c

Browse files
Ig the color trigger was broken too
I am depresso expresso about this. Also while making this I was just thinking about how godot renders hitboxes automatically while playing with the click of a button. I miss godot.
1 parent 9551cce commit 9dfd63c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/game/playing/hitboxes.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,17 @@ pub fn hitbox_draw(
409409
Color::from_rgba(0, 255, 255, 255)
410410
);
411411
}
412+
413+
if object.id == 23 {
414+
draw_rectangle_lines(
415+
object.x as f32 - world_offset,
416+
obj_y + player_cam_y,
417+
40.0,
418+
40.0,
419+
2.0,
420+
Color::from_rgba(0, 255, 255, 255)
421+
)
422+
}
412423
}
413424

414425
draw_rectangle_lines(player.x, player.y, 40.0, 40.0, 2.0, WHITE);

0 commit comments

Comments
 (0)