adding buggy hover, teleport
This commit is contained in:
1 parent
542251725c
commit
7c292f7cec
7 files changed
+179
-11
No files matched your search
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=17 format=4 uid="uid://dcmyx5g6dksl8"]
|
||||
[gd_scene load_steps=24 format=4 uid="uid://dcmyx5g6dksl8"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://d1ej2kiy7jcpv" path="res://scenes/crate.tscn" id="1_uivx3"]
|
||||
[ext_resource type="Script" path="res://scripts/trigger.gd" id="3_2qbah"]
|
||||
@@ -10,7 +10,8 @@
|
||||
[ext_resource type="Script" path="res://scripts/scenemanager.gd" id="6_n2kp0"]
|
||||
[ext_resource type="Texture2D" uid="uid://btdvc25chjgd" path="res://assets/graphics/terrains/Terrain (32x32).png" id="7_v20os"]
|
||||
[ext_resource type="PackedScene" uid="uid://ix6oxq0kduyx" path="res://scenes/coin.tscn" id="10_nxy68"]
|
||||
[ext_resource type="PackedScene" uid="uid://clitp4u6pd426" path="res://scenes/badguy.tscn" id="11_dbqj0"]
|
||||
[ext_resource type="Script" path="res://scripts/badguy.gd" id="11_k2u02"]
|
||||
[ext_resource type="Texture2D" uid="uid://ds7phwfwavsqj" path="res://assets/graphics/enemies/slime_green.png" id="12_u2djp"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_3ut3v"]
|
||||
texture = ExtResource("7_v20os")
|
||||
@@ -381,6 +382,45 @@ distance = -181.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_mfh1j"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s1yph"]
|
||||
atlas = ExtResource("12_u2djp")
|
||||
region = Rect2(0, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ft2a6"]
|
||||
atlas = ExtResource("12_u2djp")
|
||||
region = Rect2(24, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gg3ce"]
|
||||
atlas = ExtResource("12_u2djp")
|
||||
region = Rect2(48, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dlo6y"]
|
||||
atlas = ExtResource("12_u2djp")
|
||||
region = Rect2(72, 24, 24, 24)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_dgoyr"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s1yph")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ft2a6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gg3ce")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dlo6y")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_i8bk0"]
|
||||
size = Vector2(15, 18)
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
@@ -429,8 +469,8 @@ shape = SubResource("WorldBoundaryShape2D_bqh70")
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("3_8h5jv")]
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
position = Vector2(359, 141)
|
||||
scale = Vector2(5, 5)
|
||||
position = Vector2(43, -53)
|
||||
scale = Vector2(2.5, 2.5)
|
||||
script = ExtResource("3_2qbah")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
@@ -480,8 +520,35 @@ position = Vector2(400, 40)
|
||||
|
||||
[node name="enemies" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D3" parent="enemies" instance=ExtResource("11_dbqj0")]
|
||||
[node name="Area2D3" type="Area2D" parent="enemies" groups=["enemies"]]
|
||||
position = Vector2(369, 55)
|
||||
script = ExtResource("11_k2u02")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="enemies/Area2D3"]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_dgoyr")
|
||||
animation = &"idle"
|
||||
frame_progress = 0.764829
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="enemies/Area2D3"]
|
||||
position = Vector2(0, 2)
|
||||
shape = SubResource("RectangleShape2D_i8bk0")
|
||||
|
||||
[node name="RightRay" type="RayCast2D" parent="enemies/Area2D3"]
|
||||
target_position = Vector2(14, 0)
|
||||
|
||||
[node name="LeftRay" type="RayCast2D" parent="enemies/Area2D3"]
|
||||
target_position = Vector2(-14, 0)
|
||||
|
||||
[node name="RightFloorRay" type="RayCast2D" parent="enemies/Area2D3"]
|
||||
position = Vector2(9, 0)
|
||||
target_position = Vector2(0, 18)
|
||||
|
||||
[node name="LeftFloorRay" type="RayCast2D" parent="enemies/Area2D3"]
|
||||
position = Vector2(-9, 0)
|
||||
target_position = Vector2(0, 18)
|
||||
|
||||
[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="enemies/Area2D3" to="enemies/Area2D3" method="_on_body_entered"]
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=15 format=4 uid="uid://d383o6j0l3d2m"]
|
||||
[gd_scene load_steps=23 format=4 uid="uid://d383o6j0l3d2m"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/scenemanager.gd" id="1_g37ru"]
|
||||
[ext_resource type="Texture2D" uid="uid://jlbx6yvcmten" path="res://assets/graphics/terrains/backgrounds/forestbackground.png" id="2_ehg0h"]
|
||||
@@ -9,6 +9,8 @@
|
||||
[ext_resource type="Script" path="res://scripts/trigger.gd" id="7_2y6a6"]
|
||||
[ext_resource type="PackedScene" uid="uid://ix6oxq0kduyx" path="res://scenes/coin.tscn" id="9_fv1rd"]
|
||||
[ext_resource type="PackedScene" uid="uid://d1ej2kiy7jcpv" path="res://scenes/crate.tscn" id="9_sys65"]
|
||||
[ext_resource type="Script" path="res://scripts/badguy.gd" id="10_5rofm"]
|
||||
[ext_resource type="Texture2D" uid="uid://ds7phwfwavsqj" path="res://assets/graphics/enemies/slime_green.png" id="11_1pe1f"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_3ut3v"]
|
||||
texture = ExtResource("5_p6mo5")
|
||||
@@ -379,6 +381,45 @@ distance = -181.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_mfh1j"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s1yph"]
|
||||
atlas = ExtResource("11_1pe1f")
|
||||
region = Rect2(0, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ft2a6"]
|
||||
atlas = ExtResource("11_1pe1f")
|
||||
region = Rect2(24, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gg3ce"]
|
||||
atlas = ExtResource("11_1pe1f")
|
||||
region = Rect2(48, 24, 24, 24)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dlo6y"]
|
||||
atlas = ExtResource("11_1pe1f")
|
||||
region = Rect2(72, 24, 24, 24)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_8wjrh"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s1yph")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ft2a6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gg3ce")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dlo6y")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_060tc"]
|
||||
size = Vector2(15, 18)
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
@@ -473,5 +514,36 @@ position = Vector2(370, 40)
|
||||
[node name="Area2D2" parent="coins" instance=ExtResource("9_fv1rd")]
|
||||
position = Vector2(400, 40)
|
||||
|
||||
[node name="enemies" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D3" type="Area2D" parent="enemies" groups=["enemies"]]
|
||||
position = Vector2(369, 55)
|
||||
script = ExtResource("10_5rofm")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="enemies/Area2D3"]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_8wjrh")
|
||||
animation = &"idle"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="enemies/Area2D3"]
|
||||
position = Vector2(0, 2)
|
||||
shape = SubResource("RectangleShape2D_060tc")
|
||||
|
||||
[node name="RightRay" type="RayCast2D" parent="enemies/Area2D3"]
|
||||
target_position = Vector2(14, 0)
|
||||
|
||||
[node name="LeftRay" type="RayCast2D" parent="enemies/Area2D3"]
|
||||
target_position = Vector2(-14, 0)
|
||||
|
||||
[node name="RightFloorRay" type="RayCast2D" parent="enemies/Area2D3"]
|
||||
position = Vector2(9, 0)
|
||||
target_position = Vector2(0, 18)
|
||||
|
||||
[node name="LeftFloorRay" type="RayCast2D" parent="enemies/Area2D3"]
|
||||
position = Vector2(-9, 0)
|
||||
target_position = Vector2(0, 18)
|
||||
|
||||
[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="enemies/Area2D3" to="enemies/Area2D3" method="_on_body_entered"]
|
||||
Reference in new issue
Block a user