bad guy mvmnt, player death, UI with health, timer, and coins, and we started looking into adding a dictionary for bad guys
This commit is contained in:
1 parent
9ceb59f89f
commit
3943a4c1a3
17 files changed
+386
-11
No files matched your search
@@ -0,0 +1,65 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://by75e75hc6mru"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://c8245dvygofsq" path="res://Assets/fonts/PixelOperator8.ttf" id="1_14vep"]
|
||||
[ext_resource type="Script" path="res://Scripts/ui.gd" id="1_e51tv"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bn8em"]
|
||||
bg_color = Color(0.195707, 0.483861, 0.218543, 1)
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_e51tv")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
grow_horizontal = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HBoxContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="health" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("1_14vep")
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Health"
|
||||
|
||||
[node name="healthProgress" type="ProgressBar" parent="VBoxContainer/HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_bn8em")
|
||||
show_percentage = false
|
||||
|
||||
[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="timer" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("1_14vep")
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Timer"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="MarginContainer3" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="coins" type="Label" parent="VBoxContainer/HBoxContainer/MarginContainer3"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("1_14vep")
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Coins"
|
||||
horizontal_alignment = 2
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=22 format=4 uid="uid://dj7i8q4okyc4t"]
|
||||
[gd_scene load_steps=23 format=4 uid="uid://dj7i8q4okyc4t"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/gamecontroller.gd" id="1_8umew"]
|
||||
[ext_resource type="Texture2D" uid="uid://b0qpo3wfi6qju" path="res://Assets/graphics/backgrounds/block.png" id="2_bhclh"]
|
||||
@@ -13,6 +13,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://b0snboj7mbad5" path="res://Scenes/player.tscn" id="11_q3vru"]
|
||||
[ext_resource type="Script" path="res://Scripts/scene_manager.gd" id="12_cqomf"]
|
||||
[ext_resource type="PackedScene" uid="uid://d0ve3ds64sk3p" path="res://Scenes/trigger.tscn" id="13_buf7s"]
|
||||
[ext_resource type="PackedScene" uid="uid://by75e75hc6mru" path="res://Scenes/UI.tscn" id="14_yul7q"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_ky1en"]
|
||||
texture = ExtResource("6_aca0c")
|
||||
@@ -495,3 +496,8 @@ effect = "powerup"
|
||||
position = Vector2(4, -1)
|
||||
shape = SubResource("RectangleShape2D_ilkes")
|
||||
debug_color = Color(0.304464, 0.623664, 0.204875, 0.42)
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" parent="CanvasLayer" instance=ExtResource("14_yul7q")]
|
||||
metadata/_edit_use_anchors_ = true
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=21 format=4 uid="uid://663q2oo8cvte"]
|
||||
[gd_scene load_steps=22 format=4 uid="uid://663q2oo8cvte"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b0qpo3wfi6qju" path="res://Assets/graphics/backgrounds/block.png" id="1_ci28m"]
|
||||
[ext_resource type="Texture2D" uid="uid://cq4t2eebwx5mj" path="res://Assets/graphics/backgrounds/forestbackground.png" id="2_yaphm"]
|
||||
@@ -12,6 +12,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://b0snboj7mbad5" path="res://Scenes/player.tscn" id="10_qs1yn"]
|
||||
[ext_resource type="Script" path="res://Scripts/scene_manager.gd" id="11_7dhkr"]
|
||||
[ext_resource type="PackedScene" uid="uid://d0ve3ds64sk3p" path="res://Scenes/trigger.tscn" id="12_nm3ll"]
|
||||
[ext_resource type="PackedScene" uid="uid://by75e75hc6mru" path="res://Scenes/UI.tscn" id="13_nwu02"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_ky1en"]
|
||||
texture = ExtResource("5_txjyq")
|
||||
@@ -493,3 +494,8 @@ effect = "powerup"
|
||||
position = Vector2(4, -1)
|
||||
shape = SubResource("RectangleShape2D_ilkes")
|
||||
debug_color = Color(0.304464, 0.623664, 0.204875, 0.42)
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" parent="CanvasLayer" instance=ExtResource("13_nwu02")]
|
||||
metadata/_edit_use_anchors_ = true
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=23 format=4 uid="uid://cpuc12n61qg6b"]
|
||||
[gd_scene load_steps=24 format=4 uid="uid://cpuc12n61qg6b"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://fwqc3qyc3jss" path="res://Assets/graphics/terrains/Terrain (32x32).png" id="2_2rxht"]
|
||||
[ext_resource type="Texture2D" uid="uid://b0qpo3wfi6qju" path="res://Assets/graphics/backgrounds/block.png" id="2_d6us3"]
|
||||
@@ -14,6 +14,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://c1k7osqmbur1d" path="res://Assets/graphics/backgrounds/rocks.png" id="5_umo5t"]
|
||||
[ext_resource type="PackedScene" uid="uid://buyuw4dj3uovh" path="res://Scenes/coin.tscn" id="13_o1lsv"]
|
||||
[ext_resource type="PackedScene" uid="uid://col8ryohnxcnw" path="res://Scenes/slime.tscn" id="14_dmc5d"]
|
||||
[ext_resource type="PackedScene" uid="uid://by75e75hc6mru" path="res://Scenes/UI.tscn" id="15_clvfp"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_ky1en"]
|
||||
texture = ExtResource("2_2rxht")
|
||||
@@ -514,3 +515,8 @@ position = Vector2(561, 372)
|
||||
|
||||
[node name="Area2D2" parent="badguys" instance=ExtResource("14_dmc5d")]
|
||||
position = Vector2(293, 566)
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" parent="CanvasLayer" instance=ExtResource("15_clvfp")]
|
||||
metadata/_edit_use_anchors_ = true
|
||||
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=33 format=3 uid="uid://b0snboj7mbad5"]
|
||||
[gd_scene load_steps=44 format=3 uid="uid://b0snboj7mbad5"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Player.gd" id="1_mjl5w"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1udsh0kjwm6p" path="res://Assets/graphics/player/death/Player Death 64x64.png" id="2_3mg5s"]
|
||||
[ext_resource type="Texture2D" uid="uid://jnn6hcmfgyfo" path="res://Assets/graphics/player/idle/Player Idle 48x48.png" id="2_20p21"]
|
||||
[ext_resource type="Texture2D" uid="uid://b21la5hkk8w5l" path="res://Assets/graphics/player/hurt/Player Hurt 48x48.png" id="2_xgiy8"]
|
||||
[ext_resource type="Texture2D" uid="uid://ciaht230dnmu3" path="res://Assets/graphics/player/run/player run 48x48.png" id="3_ergv2"]
|
||||
@@ -8,6 +9,46 @@
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_xiumq"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tj7s0"]
|
||||
atlas = ExtResource("2_3mg5s")
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2s788"]
|
||||
atlas = ExtResource("2_3mg5s")
|
||||
region = Rect2(48, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_y3jwc"]
|
||||
atlas = ExtResource("2_3mg5s")
|
||||
region = Rect2(96, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8l2gc"]
|
||||
atlas = ExtResource("2_3mg5s")
|
||||
region = Rect2(144, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bxljl"]
|
||||
atlas = ExtResource("2_3mg5s")
|
||||
region = Rect2(192, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uroio"]
|
||||
atlas = ExtResource("2_3mg5s")
|
||||
region = Rect2(240, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ou44u"]
|
||||
atlas = ExtResource("2_3mg5s")
|
||||
region = Rect2(288, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s01m7"]
|
||||
atlas = ExtResource("2_3mg5s")
|
||||
region = Rect2(336, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_520ja"]
|
||||
atlas = ExtResource("2_3mg5s")
|
||||
region = Rect2(384, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_msh31"]
|
||||
atlas = ExtResource("2_3mg5s")
|
||||
region = Rect2(432, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_b4hot"]
|
||||
atlas = ExtResource("2_xgiy8")
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
@@ -112,6 +153,41 @@ region = Rect2(336, 0, 48, 48)
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tj7s0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2s788")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_y3jwc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8l2gc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bxljl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_uroio")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ou44u")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s01m7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_520ja")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_msh31")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"death",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_b4hot")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
@@ -231,8 +307,10 @@ texture_filter = 1
|
||||
position = Vector2(2, -11)
|
||||
scale = Vector2(1.54734, 1.26736)
|
||||
sprite_frames = SubResource("SpriteFrames_tbufb")
|
||||
animation = &"hurt"
|
||||
animation = &"death"
|
||||
autoplay = "hurt"
|
||||
frame = 9
|
||||
frame_progress = 1.0
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
|
||||
@@ -56,4 +56,18 @@ frame_progress = 0.192104
|
||||
position = Vector2(0, 4.5)
|
||||
shape = SubResource("RectangleShape2D_khbh8")
|
||||
|
||||
[node name="rightCast" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(13, 0)
|
||||
|
||||
[node name="leftCast" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-13, 0)
|
||||
|
||||
[node name="rightCastFloor" type="RayCast2D" parent="."]
|
||||
position = Vector2(6, 0)
|
||||
target_position = Vector2(0, 14)
|
||||
|
||||
[node name="leftCastFloor" type="RayCast2D" parent="."]
|
||||
position = Vector2(-6, 0)
|
||||
target_position = Vector2(0, 14)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
Reference in new issue
Block a user