[gd_scene load_steps=7 format=2] [ext_resource path="res://graphics/rock/rock.png" type="Texture" id=1] [ext_resource path="res://scripts/1px_border.gdshader" type="Shader" id=2] [ext_resource path="res://objects/environment/rock/rock.gd" type="Script" id=3] [sub_resource type="ShaderMaterial" id=1] shader = ExtResource( 2 ) shader_param/border_color = Color( 0, 0, 0, 1 ) shader_param/border_corners = false [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 5, 4.5 ) [sub_resource type="RectangleShape2D" id=3] extents = Vector2( 5, 4.5 ) [node name="Rock" type="KinematicBody2D" groups=["pushable"]] collision_layer = 4 script = ExtResource( 3 ) [node name="Sprite" type="Sprite" parent="."] material = SubResource( 1 ) position = Vector2( 0, -1 ) texture = ExtResource( 1 ) centered = false [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( 5, 3.5 ) shape = SubResource( 2 ) [node name="Area2D" type="Area2D" parent="." groups=["squash"]] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] position = Vector2( 5, 3.5 ) shape = SubResource( 3 ) [node name="Bottom" type="Position2D" parent="."] position = Vector2( 5, 8 )