diff options
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, |
