SlimePlatformer/Hazards/piston.tscn
SnekInAScarf 38d7e6d761 Prototype: timed piston hazard that shatters the slime into pixels
The piston winds up, slams down, holds and retracts on a timer. Catching the
slime under the head breaks its current frame into one particle per non-black
pixel, which bounce off and settle on the level. The level reloads afterwards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:41:01 -08:00

24 lines
672 B
Text

[gd_scene format=3]
[ext_resource type="Script" path="res://Hazards/piston.gd" id="1_piston"]
[node name="Piston" type="Node2D"]
script = ExtResource("1_piston")
[node name="Shaft" type="Polygon2D" parent="."]
[node name="Head" type="AnimatableBody2D" parent="."]
position = Vector2(0, 8)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Head"]
[node name="Plate" type="Polygon2D" parent="Head"]
[node name="Stripe" type="Polygon2D" parent="Head"]
[node name="CrushZone" type="Area2D" parent="Head"]
monitorable = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Head/CrushZone"]
[node name="Housing" type="Polygon2D" parent="."]