1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- [gd_scene load_steps=10 format=3 uid="uid://ixe1g4hv46xs"]
- [ext_resource type="Script" path="res://Mob.cs" id="1"]
- [ext_resource type="Texture2D" uid="uid://cs7c2mx7kjda5" path="res://art/enemySwimming_1.png" id="2"]
- [ext_resource type="Texture2D" uid="uid://dwhy2f3yw4bc8" path="res://art/enemySwimming_2.png" id="3"]
- [ext_resource type="Texture2D" uid="uid://brrcidfqf6bgp" path="res://art/enemyWalking_1.png" id="4"]
- [ext_resource type="Texture2D" uid="uid://bctq8ot1ilm0m" path="res://art/enemyWalking_2.png" id="5"]
- [ext_resource type="Texture2D" uid="uid://6agt7sebvtk0" path="res://art/enemyFlyingAlt_1.png" id="6"]
- [ext_resource type="Texture2D" uid="uid://co0kr2y7s2u0e" path="res://art/enemyFlyingAlt_2.png" id="7"]
- [sub_resource type="SpriteFrames" id="1"]
- animations = [{
- "frames": [{
- "duration": 1.0,
- "texture": ExtResource("6")
- }, {
- "duration": 1.0,
- "texture": ExtResource("7")
- }],
- "loop": true,
- "name": &"fly",
- "speed": 3.0
- }, {
- "frames": [{
- "duration": 1.0,
- "texture": ExtResource("2")
- }, {
- "duration": 1.0,
- "texture": ExtResource("3")
- }],
- "loop": true,
- "name": &"swim",
- "speed": 4.0
- }, {
- "frames": [{
- "duration": 1.0,
- "texture": ExtResource("4")
- }, {
- "duration": 1.0,
- "texture": ExtResource("5")
- }],
- "loop": true,
- "name": &"walk",
- "speed": 4.0
- }]
- [sub_resource type="CapsuleShape2D" id="2"]
- radius = 37.0
- height = 100.0
- [node name="Mob" type="RigidBody2D" groups=["mobs"]]
- collision_mask = 0
- gravity_scale = 0.0
- script = ExtResource("1")
- [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
- scale = Vector2(0.75, 0.75)
- sprite_frames = SubResource("1")
- animation = &"walk"
- [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
- rotation = 1.5708
- shape = SubResource("2")
- [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
- [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="OnVisibleOnScreenNotifier2DScreenExited"]
|