43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://graphics/rock/rock.png" type="Texture" id=1]
|
|
[ext_resource path="res://shaders/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( 3.7, 4 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=3]
|
|
extents = Vector2( 4, 4 )
|
|
|
|
[node name="Rock" type="KinematicBody2D" groups=["pushable", "stop_arrow"]]
|
|
collision_layer = 4
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
material = SubResource( 1 )
|
|
position = Vector2( -1, -1 )
|
|
texture = ExtResource( 1 )
|
|
centered = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 4, 4 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Hitbox" type="Area2D" parent="." groups=["squash"]]
|
|
position = Vector2( -1, 0 )
|
|
collision_layer = 5
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
|
position = Vector2( 5, 4 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="Bottom" type="Position2D" parent="."]
|
|
position = Vector2( 4, 8 )
|
|
|
|
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
|