diff options
| author | iamcheeseman <[hidden email]> | 2026-01-17 18:19:57 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-01-17 18:19:57 -0500 |
| commit | db10e319cc2201924815b2d8c9a4c2d21c2bfbb6 (patch) | |
| tree | 17c7d1b0e485dc07161cbdca80ae2239fd6146c5 /src/prop.odin | |
| parent | eee06361048e34f6ca21348e8776636da95ef3f8 (diff) | |
Verlet ropes :)
Diffstat (limited to 'src/prop.odin')
| -rw-r--r-- | src/prop.odin | 10 |
1 files changed, 7 insertions, 3 deletions
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, |
