-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.tscn
55 lines (41 loc) · 1.47 KB
/
player.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[gd_scene load_steps=9 format=2]
[ext_resource path="res://scripts/player.gd" type="Script" id=1]
[ext_resource path="res://sprites/Micro Character Bases - Basics/PNG/Human/human_nude_bald.png" type="Texture" id=2]
[sub_resource type="CapsuleShape2D" id=4]
radius = 37.0
[sub_resource type="CapsuleShape2D" id=9]
radius = 38.0
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 2 )
region = Rect2( 0, 0, 20, 20 )
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 2 )
region = Rect2( 20, 0, 20, 20 )
[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 2 )
region = Rect2( 40, 0, 20, 20 )
[sub_resource type="SpriteFrames" id=8]
animations = [ {
"frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ) ],
"loop": true,
"name": "default",
"speed": 8.0
} ]
[node name="player" type="KinematicBody2D"]
collision_layer = 2
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 4 )
[node name="Muzzle" type="Position2D" parent="."]
scale = Vector2( 1, 1.00397 )
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
modulate = Color( 1, 0, 0, 1 )
shape = SubResource( 9 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( -5.96046e-08, -12 )
scale = Vector2( 7, 7 )
frames = SubResource( 8 )
frame = 1
playing = true
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]