From db10e319cc2201924815b2d8c9a4c2d21c2bfbb6 Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Sat, 17 Jan 2026 18:19:57 -0500 Subject: Verlet ropes :) --- src/prop.odin | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/prop.odin') diff --git a/src/prop.odin b/src/prop.odin index d46f181..1732467 100644 --- a/src/prop.odin +++ b/src/prop.odin @@ -92,7 +92,6 @@ object_spawner_prop :: proc(obj: Object_Resource) { return } - tile := tiles[tile_id] img := get_image(tile.image) @@ -108,7 +107,12 @@ object_spawner_prop :: proc(obj: Object_Resource) { } #partial switch tile.image { - case .Carrabasset_Vines_0, .Carrabasset_Vines_1, .Carrabasset_Vines_2: + case .Carrabasset_Vines_0, + .Carrabasset_Vines_1, + .Carrabasset_Vines_2, + .Small_Lamp, + .Windchimes_0, + .Windchimes_1: offset := linalg.round(Vec2{ f32(img.width) * 0.5, 0, @@ -122,7 +126,7 @@ object_spawner_prop :: proc(obj: Object_Resource) { make_wiggle_prop(Wiggle_Prop{ image_id = tile.image, - pos = pos, + pos = pos + offset, scale = scale, offset = offset, rotation_factor = -rotation_factor, -- cgit v1.3-2-g0d8e