33 lines
949 B
Plaintext
33 lines
949 B
Plaintext
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
|
[ext_resource path="res://assets/wakka.ogg" type="AudioStream" id=2]
|
|
|
|
[sub_resource type="CubeMesh" id=1]
|
|
|
|
[sub_resource type="SpatialMaterial" id=2]
|
|
albedo_color = Color( 1, 0.541176, 0.847059, 1 )
|
|
|
|
[sub_resource type="BoxShape" id=3]
|
|
|
|
[node name="Player" type="KinematicBody"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="."]
|
|
mesh = SubResource( 1 )
|
|
skeleton = NodePath("../..")
|
|
material/0 = SubResource( 2 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="."]
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="HitBox" type="Area" parent="."]
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="HitBox"]
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 2 )
|
|
|
|
[connection signal="area_entered" from="HitBox" to="." method="_on_HitBox_area_entered"]
|