made some changes to enemies i dunno

This commit is contained in:
pennyrigate 2023-01-22 01:34:05 -05:00
parent 5f6968a7e9
commit e40e3de653
4 changed files with 54 additions and 14 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=10 format=2]
[gd_scene load_steps=13 format=2]
[ext_resource path="res://objects/Camera2D.tscn" type="PackedScene" id=1]
[ext_resource path="res://maps/map.gd" type="Script" id=2]
@ -8,7 +8,10 @@
[ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=6]
[ext_resource path="res://objects/hud/hud.tscn" type="PackedScene" id=7]
[ext_resource path="res://scripts/delete_on_game_running.gd" type="Script" id=8]
[ext_resource path="res://objects/enemy/spider.tscn" type="PackedScene" id=9]
[ext_resource path="res://objects/enemy/jumping_spider.tscn" type="PackedScene" id=10]
[ext_resource path="res://objects/collectibles/gold.tscn" type="PackedScene" id=11]
[ext_resource path="res://objects/environment/ladder/ladder.tscn" type="PackedScene" id=12]
[node name="Map" type="Node2D" groups=["map"]]
pause_mode = 1
@ -28,27 +31,61 @@ __meta__ = {
tile_set = ExtResource( 4 )
cell_size = Vector2( 8, 8 )
format = 1
tile_data = PoolIntArray( 1441792, 0, 0, 1441793, 0, 0, 1441794, 0, 0, 1441795, 0, 0, 1441796, 0, 0, 1441797, 0, 0, 1441798, 0, 0, 1441799, 0, 0, 1441800, 0, 0, 1441801, 0, 0, 1441802, 0, 0, 1441803, 0, 0, 1441804, 0, 0, 1441805, 0, 0, 1441806, 0, 0, 1441807, 0, 0, 1441808, 0, 0, 1441809, 0, 0, 1441810, 0, 0, 1441811, 0, 0, 1441812, 0, 0, 1441813, 0, 0, 1441814, 0, 0, 1441815, 0, 0, 1441816, 0, 0, 1441817, 0, 0, 1441818, 0, 0, 1441819, 0, 0, 1441820, 0, 0, 1441821, 0, 0, 1441822, 0, 0, 1441823, 0, 0, 1441824, 0, 0, 1441825, 0, 0, 1441826, 0, 0, 1441827, 0, 0, 1441828, 0, 0, 1441829, 0, 0, 1441830, 0, 0, 1441831, 0, 0, 1441832, 0, 0, 1441833, 0, 0, 1441834, 0, 0, 1441835, 0, 0, 1441836, 0, 0, 1441837, 0, 0, 1441838, 0, 0, 1441839, 0, 0, 1441840, 0, 0, 1441841, 0, 0, 1441842, 0, 0, 1441843, 0, 0, 1441844, 0, 0, 1441845, 0, 0, 1441846, 0, 0, 1441847, 0, 0, 1441848, 0, 0, 1441849, 0, 0, 1441850, 0, 0, 1441851, 0, 0, 1441852, 0, 0, 1441853, 0, 0, 1441854, 0, 0, 1441855, 0, 0, 1507328, 0, 65537, 1507329, 0, 65537, 1507330, 0, 65537, 1507331, 0, 65537, 1507332, 0, 65537, 1507333, 0, 65537, 1507334, 0, 65537, 1507335, 0, 65537, 1507336, 0, 65537, 1507337, 0, 65537, 1507338, 0, 65537, 1507339, 0, 65537, 1507340, 0, 65537, 1507341, 0, 65537, 1507342, 0, 65537, 1507343, 0, 65537, 1507344, 0, 65537, 1507345, 0, 65537, 1507346, 0, 65537, 1507347, 0, 65537, 1507348, 0, 65537, 1507349, 0, 65537, 1507350, 0, 65537, 1507351, 0, 65537, 1507352, 0, 65537, 1507353, 0, 65537, 1507354, 0, 65537, 1507355, 0, 65537, 1507356, 0, 65537, 1507357, 0, 65537, 1507358, 0, 65537, 1507359, 0, 65537, 1507360, 0, 65537, 1507361, 0, 65537, 1507362, 0, 65537, 1507363, 0, 65537, 1507364, 0, 65537, 1507365, 0, 65537, 1507366, 0, 65537, 1507367, 0, 65537, 1507368, 0, 65537, 1507369, 0, 65537, 1507370, 0, 65537, 1507371, 0, 65537, 1507372, 0, 65537, 1507373, 0, 65537, 1507374, 0, 65537, 1507375, 0, 65537, 1507376, 0, 65537, 1507377, 0, 65537, 1507378, 0, 65537, 1507379, 0, 65537, 1507380, 0, 65537, 1507381, 0, 65537, 1507382, 0, 65537, 1507383, 0, 65537, 1507384, 0, 65537, 1507385, 0, 65537, 1507386, 0, 65537, 1507387, 0, 65537, 1507388, 0, 65537, 1507389, 0, 65537, 1507390, 0, 65537, 1507391, 0, 65537 )
tile_data = PoolIntArray( 786439, 0, 65537, 786440, 0, 65537, 1048586, 0, 65537, 1048601, 0, 65537, 1048602, 0, 65537, 1048603, 0, 65537, 1048604, 0, 65537, 1048606, -1610612736, 65536, 1114112, 0, 65537, 1114113, 0, 65537, 1114114, 0, 65537, 1114115, 0, 65537, 1114116, 0, 65537, 1114117, 0, 65537, 1114118, 0, 65537, 1114119, 0, 65537, 1114120, 0, 65537, 1114121, 0, 65537, 1114122, 0, 65537, 1114142, 0, 1, 1179662, 0, 65537, 1179663, 0, 65537, 1179664, 0, 65537, 1179665, 0, 65537, 1179666, 0, 65537, 1179667, 0, 65537, 1179668, 0, 65537, 1179669, 0, 65537, 1179678, 0, 1, 1245197, 0, 65537, 1245198, 0, 65537, 1245214, 0, 1, 1310732, 0, 65537, 1310733, 0, 65537, 1310750, 0, 1, 1376286, 0, 1, 1441792, 0, 0, 1441793, 0, 0, 1441794, 0, 0, 1441795, 0, 0, 1441796, 0, 0, 1441797, 0, 0, 1441798, 0, 0, 1441799, 0, 0, 1441800, 0, 0, 1441801, 0, 0, 1441802, 0, 0, 1441803, 0, 0, 1441804, 0, 0, 1441805, 0, 0, 1441806, 0, 0, 1441807, 0, 0, 1441808, 0, 0, 1441809, 0, 0, 1441810, 0, 0, 1441811, 0, 0, 1441812, 0, 0, 1441813, 0, 0, 1441814, 0, 0, 1441815, 0, 0, 1441816, 0, 0, 1441817, 0, 0, 1441818, 0, 0, 1441819, 0, 0, 1441820, 0, 0, 1441821, 0, 0, 1441822, 0, 0, 1441823, 0, 0, 1441824, 0, 0, 1441825, 0, 0, 1441826, 0, 0, 1441827, 0, 0, 1441828, 0, 0, 1441829, 0, 0, 1441830, 0, 0, 1441831, 0, 0, 1441832, 0, 0, 1441833, 0, 0, 1441834, 0, 0, 1441835, 0, 0, 1441836, 0, 0, 1441837, 0, 0, 1441838, 0, 0, 1441839, 0, 0, 1441840, 0, 0, 1441841, 0, 0, 1441842, 0, 0, 1441843, 0, 0, 1441844, 0, 0, 1441845, 0, 0, 1441846, 0, 0, 1441847, 0, 0, 1441848, 0, 0, 1441849, 0, 0, 1441850, 0, 0, 1441851, 0, 0, 1441852, 0, 0, 1441853, 0, 0, 1441854, 0, 0, 1441855, 0, 0, 1507328, 0, 65537, 1507329, 0, 65537, 1507330, 0, 65537, 1507331, 0, 65537, 1507332, 0, 65537, 1507333, 0, 65537, 1507334, 0, 65537, 1507335, 0, 65537, 1507336, 0, 65537, 1507337, 0, 65537, 1507338, 0, 65537, 1507339, 0, 65537, 1507340, 0, 65537, 1507341, 0, 65537, 1507342, 0, 65537, 1507343, 0, 65537, 1507344, 0, 65537, 1507345, 0, 65537, 1507346, 0, 65537, 1507347, 0, 65537, 1507348, 0, 65537, 1507349, 0, 65537, 1507350, 0, 65537, 1507351, 0, 65537, 1507352, 0, 65537, 1507353, 0, 65537, 1507354, 0, 65537, 1507355, 0, 65537, 1507356, 0, 65537, 1507357, 0, 65537, 1507358, 0, 65537, 1507359, 0, 65537, 1507360, 0, 65537, 1507361, 0, 65537, 1507362, 0, 65537, 1507363, 0, 65537, 1507364, 0, 65537, 1507365, 0, 65537, 1507366, 0, 65537, 1507367, 0, 65537, 1507368, 0, 65537, 1507369, 0, 65537, 1507370, 0, 65537, 1507371, 0, 65537, 1507372, 0, 65537, 1507373, 0, 65537, 1507374, 0, 65537, 1507375, 0, 65537, 1507376, 0, 65537, 1507377, 0, 65537, 1507378, 0, 65537, 1507379, 0, 65537, 1507380, 0, 65537, 1507381, 0, 65537, 1507382, 0, 65537, 1507383, 0, 65537, 1507384, 0, 65537, 1507385, 0, 65537, 1507386, 0, 65537, 1507387, 0, 65537, 1507388, 0, 65537, 1507389, 0, 65537, 1507390, 0, 65537, 1507391, 0, 65537 )
[node name="Player" parent="." instance=ExtResource( 6 )]
position = Vector2( 24, 166 )
[node name="Ladder" type="TileMap" parent="."]
tile_set = ExtResource( 4 )
cell_size = Vector2( 8, 8 )
format = 1
tile_data = PoolIntArray( 917516, 0, 196608, 983052, 0, 196608, 1048588, 0, 196608 )
[node name="Platforms" type="Node2D" parent="."]
[node name="Ladder" parent="Platforms" instance=ExtResource( 12 )]
position = Vector2( 96, 112 )
scale = Vector2( 1, 3 )
[node name="Enemies" type="Node2D" parent="."]
[node name="JumpingSpider" parent="Enemies" instance=ExtResource( 10 )]
position = Vector2( 56, 168 )
left_boundary = 2
right_boundary = 4
[node name="Skelarcher" parent="Enemies" instance=ExtResource( 5 )]
position = Vector2( 128, 168 )
position = Vector2( 176, 136 )
scale = Vector2( -1, 1 )
shoot_time = 2.0
[node name="Skelarcher2" parent="Enemies" instance=ExtResource( 5 )]
position = Vector2( 160, 168 )
position = Vector2( 8, 128 )
shoot_time = 1.0
[node name="CanvasLayer" parent="." instance=ExtResource( 7 )]
[node name="JumpingSpider" parent="." instance=ExtResource( 10 )]
position = Vector2( 88, 168 )
[node name="JumpingSpider2" parent="Enemies" instance=ExtResource( 10 )]
position = Vector2( 144, 168 )
left_boundary = 3
right_boundary = 3
[node name="Spider" parent="Enemies" instance=ExtResource( 9 )]
position = Vector2( 208, 136 )
speed = 50.0
[node name="Collectibles" type="Node2D" parent="."]
[node name="Gold" parent="Collectibles" instance=ExtResource( 11 )]
position = Vector2( 56, 128 )
[node name="Gold2" parent="Collectibles" instance=ExtResource( 11 )]
position = Vector2( 40, 128 )
[node name="Gold3" parent="Collectibles" instance=ExtResource( 11 )]
position = Vector2( 24, 128 )
[node name="CanvasLayer" parent="." instance=ExtResource( 7 )]
[node name="ColorRect" type="ColorRect" parent="."]
margin_left = 256.0
margin_right = 512.0

View file

@ -5,7 +5,7 @@
[sub_resource type="Animation" id=1]
resource_name = "idle"
length = 0.5
length = 0.7
step = 0.35
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:region_rect")
@ -46,7 +46,7 @@ tracks/2/keys = {
[sub_resource type="Animation" id=2]
resource_name = "jump"
length = 0.3
length = 0.35
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:region_rect")
@ -67,10 +67,10 @@ tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.15, 0.3 ),
"times": PoolRealArray( 0, 0.15, 0.35 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 4, -2 ), Vector2( 4, -16 ), Vector2( 4, -2 ) ]
"values": [ Vector2( 4, -2 ), Vector2( 4, -12 ), Vector2( 4, -2 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Hitbox:position")
@ -79,10 +79,10 @@ tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.15, 0.3 ),
"times": PoolRealArray( 0, 0.15, 0.35 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 0, -4 ), Vector2( 0, -18 ), Vector2( 0, -4 ) ]
"values": [ Vector2( 0, -4 ), Vector2( 0, -14 ), Vector2( 0, -4 ) ]
}
[sub_resource type="RectangleShape2D" id=3]

View file

@ -120,9 +120,11 @@ anims/idle = SubResource( 19 )
anims/shoot = SubResource( 20 )
[node name="ArrowSpawnR" type="Position2D" parent="."]
visible = false
position = Vector2( 9, 2 )
[node name="ArrowSpawnL" type="Position2D" parent="."]
visible = false
position = Vector2( -9, 2 )
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]

View file

@ -33,6 +33,7 @@ width = 1.0
default_color = Color( 1, 1, 1, 1 )
[node name="RayCast2D" type="RayCast2D" parent="."]
visible = false
position = Vector2( 4.5, 4 )
cast_to = Vector2( 0, -192 )