- Carry item (Items/): picked up on touch, rides see-through in the slime's center, left behind at the mouth when the slime enters a tube. Has gravity. Placeholder Godot icon sprite. One placed in the test level. - Wall-press sprite (new frame 9, PressWall animation): shown when pushing into a wall from the floor or ceiling, into a tube mouth in a wall, or from a wall into a floor/ceiling mouth. Flipped/turned and shifted to sit flush. - Ceiling corners: pushing sideways into a wall keeps the slime on the ceiling; holding down moves it onto the wall. - Tubes: squeezing closes the gap to the mouth; mouths are found a frame ahead so climbing past one can't skip it; backing out of a wall mouth entered from the floor or ceiling puts the slime on the wall. - Tube goo draws behind the tiles (shows only through the channel); the manual tube's leader circle stays in front. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
624 B
Text
19 lines
624 B
Text
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="res://Items/carry_item.gd" id="1_item"]
|
|
[ext_resource type="Texture2D" uid="uid://bd60ddhri50de" path="res://icon.svg" id="2_icon"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_body"]
|
|
size = Vector2(12, 12)
|
|
|
|
[node name="CarryItem" type="CharacterBody2D"]
|
|
collision_layer = 0
|
|
collision_mask = 1
|
|
script = ExtResource("1_item")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
scale = Vector2(0.09375, 0.09375)
|
|
texture = ExtResource("2_icon")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_body")
|