-
Notifications
You must be signed in to change notification settings - Fork 1
/
Mob.tscn
49 lines (42 loc) · 1.37 KB
/
Mob.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
[gd_scene load_steps=8 format=2]
[ext_resource path="res://moonshot-assets/art/stars/star1.png" type="Texture" id=1]
[ext_resource path="res://Mob.gd" type="Script" id=2]
[ext_resource path="res://moonshot-assets/art/stars/star2.png" type="Texture" id=3]
[ext_resource path="res://moonshot-assets/art/bugs/moody-bug1.png" type="Texture" id=4]
[ext_resource path="res://moonshot-assets/art/bugs/moody-bug2.png" type="Texture" id=5]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 4 ), ExtResource( 5 ) ],
"loop": true,
"name": "bugs",
"speed": 5.0
}, {
"frames": [ ExtResource( 3 ), ExtResource( 1 ) ],
"loop": true,
"name": "stars",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 16.8167
height = 10.5486
[node name="Mob" type="RigidBody2D" groups=[
"mobs",
]]
scale = Vector2( 2, 2 )
collision_mask = 0
gravity_scale = 0.0
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( 270.615, 18.3058 )
scale = Vector2( 1.5, 1.5 )
frames = SubResource( 1 )
animation = "bugs"
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 271.909, 19.1833 )
rotation = 1.5708
scale = Vector2( 1.5, 1.5 )
shape = SubResource( 2 )
one_way_collision = true
one_way_collision_margin = 2.3
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]