level 4 a bowser

This commit is contained in:
Jonas Braus
2024-08-03 22:13:40 +02:00
parent 30b0a527b4
commit a9c2f587da
24 changed files with 8249 additions and 5 deletions
+62
View File
@@ -0,0 +1,62 @@
[gd_scene load_steps=9 format=3 uid="uid://43ujxqfabnuq"]
[ext_resource type="Texture2D" uid="uid://ddl5f3lldrp2n" path="res://assets/enemies.png" id="1_7p65b"]
[ext_resource type="Script" path="res://scripts/enemies/bowser_jr_fire.gd" id="1_tnrjq"]
[ext_resource type="AudioStream" uid="uid://csx5laixrg5dh" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Enemy Fire.wav" id="3_i70fm"]
[sub_resource type="AtlasTexture" id="AtlasTexture_4dnoh"]
atlas = ExtResource("1_7p65b")
region = Rect2(101, 253, 24, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_7tb0p"]
atlas = ExtResource("1_7p65b")
region = Rect2(131, 253, 24, 8)
[sub_resource type="SpriteFrames" id="SpriteFrames_kv1f5"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_4dnoh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7tb0p")
}],
"loop": true,
"name": &"default",
"speed": 10.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_axybf"]
size = Vector2(24, 8)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mxod3"]
size = Vector2(24, 8)
[node name="BowserJRFire" type="Area2D"]
collision_layer = 128
collision_mask = 2
script = ExtResource("1_tnrjq")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(-12, 0)
sprite_frames = SubResource("SpriteFrames_kv1f5")
autoplay = "default"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-12, 0)
shape = SubResource("RectangleShape2D_axybf")
[node name="die" type="Area2D" parent="."]
collision_layer = 2147483648
[node name="CollisionShape2D" type="CollisionShape2D" parent="die"]
position = Vector2(-12, 0)
shape = SubResource("RectangleShape2D_mxod3")
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_i70fm")
autoplay = true
[connection signal="body_entered" from="." to="." method="_on_body_entered_player"]
[connection signal="body_entered" from="die" to="." method="_on_die_body_entered"]
[connection signal="finished" from="AudioStreamPlayer2D" to="." method="_on_audio_stream_player_2d_finished"]
+119
View File
@@ -0,0 +1,119 @@
[gd_scene load_steps=11 format=3 uid="uid://byk5q0ddm54hi"]
[ext_resource type="Script" path="res://scripts/enemies/bowserjr.gd" id="1_0ucqp"]
[ext_resource type="Texture2D" uid="uid://ddl5f3lldrp2n" path="res://assets/enemies.png" id="1_q71vc"]
[sub_resource type="AtlasTexture" id="AtlasTexture_jv53y"]
atlas = ExtResource("1_q71vc")
region = Rect2(122, 211, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_1tyng"]
atlas = ExtResource("1_q71vc")
region = Rect2(82, 211, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_q2270"]
atlas = ExtResource("1_q71vc")
region = Rect2(2, 211, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_3jf1h"]
atlas = ExtResource("1_q71vc")
region = Rect2(42, 211, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_xw3te"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_jv53y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1tyng")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_q2270")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3jf1h")
}],
"loop": true,
"name": &"open_mouth",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_tvg0d"]
radius = 16.0
[sub_resource type="Animation" id="Animation_pjtcx"]
resource_name = "default"
length = 6.0
loop_mode = 1
tracks/0/type = "method"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(3, 5.9),
"transitions": PackedFloat32Array(1, 1),
"values": [{
"args": [],
"method": &"shoot"
}, {
"args": [],
"method": &"jump"
}]
}
tracks/1/type = "method"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(6),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"shoot"
}]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_y7g55"]
_data = {
"default": SubResource("Animation_pjtcx")
}
[node name="bowserjr" type="RigidBody2D"]
collision_layer = 128
gravity_scale = 0.6
script = ExtResource("1_0ucqp")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(16, -16)
sprite_frames = SubResource("SpriteFrames_xw3te")
animation = &"open_mouth"
autoplay = "default"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(16, -16)
shape = SubResource("CircleShape2D_tvg0d")
[node name="ShootSpawner" type="Node2D" parent="."]
position = Vector2(0, -22)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_y7g55")
}
autoplay = "default"
[node name="Timer" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
+238
View File
@@ -0,0 +1,238 @@
[gd_scene load_steps=6 format=3 uid="uid://d0npbb0w73ajk"]
[ext_resource type="Texture2D" uid="uid://cbcqfbbrmin4n" path="res://assets/bg-1-4.png" id="1_gsxjq"]
[ext_resource type="Script" path="res://scripts/enemies/bridge.gd" id="1_itywv"]
[ext_resource type="AudioStream" uid="uid://d33nllvmlw3oh" path="res://assets/sounds/07. Castle Complete.mp3" id="3_aqpeh"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7th4j"]
size = Vector2(16, 16)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6td4j"]
size = Vector2(16, 16)
[node name="bridge" type="Node2D"]
script = ExtResource("1_itywv")
[node name="RigidBody2D" type="RigidBody2D" parent="."]
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D2" type="RigidBody2D" parent="."]
position = Vector2(16, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D2"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D3" type="RigidBody2D" parent="."]
position = Vector2(32, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D3"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D3"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D4" type="RigidBody2D" parent="."]
position = Vector2(48, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D4"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D4"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D5" type="RigidBody2D" parent="."]
position = Vector2(64, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D5"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D5"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D6" type="RigidBody2D" parent="."]
position = Vector2(80, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D6"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D6"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D7" type="RigidBody2D" parent="."]
position = Vector2(96, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D7"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D7"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D8" type="RigidBody2D" parent="."]
position = Vector2(112, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D8"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D8"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D9" type="RigidBody2D" parent="."]
position = Vector2(128, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D9"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D9"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D10" type="RigidBody2D" parent="."]
position = Vector2(144, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D10"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D10"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D11" type="RigidBody2D" parent="."]
position = Vector2(160, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D11"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D11"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D12" type="RigidBody2D" parent="."]
position = Vector2(176, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D12"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D12"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="RigidBody2D13" type="RigidBody2D" parent="."]
position = Vector2(192, 0)
gravity_scale = 0.0
lock_rotation = true
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D13"]
position = Vector2(8, -8)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2048, 160, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D13"]
position = Vector2(8, -8)
shape = SubResource("RectangleShape2D_7th4j")
[node name="chain" type="Sprite2D" parent="."]
position = Vector2(200, -24)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2240, 144, 16, 16)
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 2
collision_mask = 2
[node name="Sprite2D15" type="Sprite2D" parent="Area2D"]
position = Vector2(216, -40)
texture = ExtResource("1_gsxjq")
region_enabled = true
region_rect = Rect2(2256, 128, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(216, -40)
shape = SubResource("RectangleShape2D_6td4j")
[node name="Timer" type="Timer" parent="."]
wait_time = 0.2
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_aqpeh")
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
[connection signal="finished" from="AudioStreamPlayer" to="." method="_on_audio_stream_player_finished"]
+1
View File
@@ -51,6 +51,7 @@ lock_rotation = true
script = ExtResource("1_iin32")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
z_index = 3
position = Vector2(8, -12)
sprite_frames = SubResource("SpriteFrames_g2x7m")
autoplay = "default"
+95
View File
@@ -0,0 +1,95 @@
[gd_scene load_steps=9 format=3 uid="uid://b4rid627344t4"]
[ext_resource type="Texture2D" uid="uid://ddl5f3lldrp2n" path="res://assets/enemies.png" id="1_gwkcq"]
[ext_resource type="Script" path="res://scripts/enemies/fire_wand.gd" id="1_lapua"]
[sub_resource type="AtlasTexture" id="AtlasTexture_yd1fw"]
atlas = ExtResource("1_gwkcq")
region = Rect2(26, 150, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_owi6g"]
atlas = ExtResource("1_gwkcq")
region = Rect2(41, 150, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_e5nv8"]
atlas = ExtResource("1_gwkcq")
region = Rect2(26, 165, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_5oy1g"]
atlas = ExtResource("1_gwkcq")
region = Rect2(41, 165, 8, 8)
[sub_resource type="SpriteFrames" id="SpriteFrames_6y4se"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_yd1fw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_owi6g")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e5nv8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5oy1g")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2qrrp"]
size = Vector2(58, 8)
[node name="fire_wand" type="Area2D"]
collision_mask = 2
script = ExtResource("1_lapua")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_6y4se")
autoplay = "default"
frame = 1
frame_progress = 0.284379
[node name="AnimatedSprite2D3" type="AnimatedSprite2D" parent="."]
position = Vector2(10, 0)
sprite_frames = SubResource("SpriteFrames_6y4se")
autoplay = "default"
frame_progress = 0.428306
[node name="AnimatedSprite2D2" type="AnimatedSprite2D" parent="."]
position = Vector2(20, 0)
sprite_frames = SubResource("SpriteFrames_6y4se")
autoplay = "default"
frame = 1
frame_progress = 0.284379
[node name="AnimatedSprite2D4" type="AnimatedSprite2D" parent="."]
position = Vector2(30, 0)
sprite_frames = SubResource("SpriteFrames_6y4se")
autoplay = "default"
frame_progress = 0.428306
[node name="AnimatedSprite2D5" type="AnimatedSprite2D" parent="."]
position = Vector2(40, 0)
sprite_frames = SubResource("SpriteFrames_6y4se")
autoplay = "default"
frame = 1
frame_progress = 0.284379
[node name="AnimatedSprite2D6" type="AnimatedSprite2D" parent="."]
position = Vector2(50, 0)
sprite_frames = SubResource("SpriteFrames_6y4se")
autoplay = "default"
frame_progress = 0.428306
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(25, 0)
shape = SubResource("RectangleShape2D_2qrrp")
[node name="Timer" type="Timer" parent="."]
one_shot = true
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]