Dodge - cleanup. Added Survivor. /JL

This commit is contained in:
2025-12-03 18:44:37 +01:00
parent b2e3877d3b
commit cfeaba54b4
18 changed files with 82 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
[gd_scene load_steps=3 format=3 uid="uid://cql0s0a26rpks"]
[ext_resource type="Script" uid="uid://bm3hot0cb2ls8" path="res://hud.gd" id="1_64ctp"]
[ext_resource type="Script" uid="uid://bm3hot0cb2ls8" path="res://scripts/hud.gd" id="1_64ctp"]
[ext_resource type="FontFile" uid="uid://col2dlmx64bnf" path="res://fonts/Xolonium-Regular.ttf" id="2_8sq4i"]
[node name="HUD" type="CanvasLayer"]

View File

@@ -1,9 +1,9 @@
[gd_scene load_steps=6 format=3 uid="uid://d16wqwmxi6r6u"]
[ext_resource type="Script" uid="uid://c6ywdg0jd2u57" path="res://main.gd" id="1_0xm2m"]
[ext_resource type="PackedScene" uid="uid://clybje3qfbio0" path="res://player.tscn" id="1_ig7tw"]
[ext_resource type="PackedScene" uid="uid://2eni4bs27j67" path="res://mob.tscn" id="2_h2yge"]
[ext_resource type="PackedScene" uid="uid://cql0s0a26rpks" path="res://hud.tscn" id="4_1bvp3"]
[ext_resource type="Script" uid="uid://c6ywdg0jd2u57" path="res://scripts/main.gd" id="1_jyhfs"]
[ext_resource type="PackedScene" uid="uid://2eni4bs27j67" path="res://scenes/mob.tscn" id="2_tbgi4"]
[ext_resource type="PackedScene" uid="uid://clybje3qfbio0" path="res://scenes/player.tscn" id="3_tefeu"]
[ext_resource type="PackedScene" uid="uid://cql0s0a26rpks" path="res://scenes/hud.tscn" id="4_o6xl0"]
[sub_resource type="Curve2D" id="Curve2D_ig7tw"]
_data = {
@@ -12,10 +12,10 @@ _data = {
point_count = 6
[node name="main" type="Node"]
script = ExtResource("1_0xm2m")
mob_scene = ExtResource("2_h2yge")
script = ExtResource("1_jyhfs")
mob_scene = ExtResource("2_tbgi4")
[node name="Player" parent="." instance=ExtResource("1_ig7tw")]
[node name="Player" parent="." instance=ExtResource("3_tefeu")]
[node name="MobTimer" type="Timer" parent="."]
wait_time = 0.5
@@ -36,7 +36,7 @@ curve = SubResource("Curve2D_ig7tw")
position = Vector2(-3, -3)
rotation = 0.7853982
[node name="HUD" parent="." instance=ExtResource("4_1bvp3")]
[node name="HUD" parent="." instance=ExtResource("4_o6xl0")]
[connection signal="hit" from="Player" to="." method="game_over"]
[connection signal="timeout" from="MobTimer" to="." method="_on_mob_timer_timeout"]

View File

@@ -1,6 +1,6 @@
[gd_scene load_steps=10 format=3 uid="uid://2eni4bs27j67"]
[ext_resource type="Script" uid="uid://byts86xvp7fx5" path="res://mob.gd" id="1_1qmh0"]
[ext_resource type="Script" uid="uid://byts86xvp7fx5" path="res://scripts/mob.gd" id="1_1qmh0"]
[ext_resource type="Texture2D" uid="uid://c4q2xg7ghmu0u" path="res://art/enemyFlyingAlt_1.png" id="1_b3mxk"]
[ext_resource type="Texture2D" uid="uid://biqy7mqwcxgy1" path="res://art/enemyFlyingAlt_2.png" id="2_1qmh0"]
[ext_resource type="Texture2D" uid="uid://b4bdmsm2sb3mo" path="res://art/enemySwimming_1.png" id="3_gfurk"]

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=8 format=3 uid="uid://clybje3qfbio0"]
[ext_resource type="Texture2D" uid="uid://twyr3m3mqj74" path="res://art/playerGrey_up1.png" id="1_hqtel"]
[ext_resource type="Script" uid="uid://uto2x8nu0r1u" path="res://player.gd" id="1_sweqy"]
[ext_resource type="Script" uid="uid://uto2x8nu0r1u" path="res://scripts/player.gd" id="1_sweqy"]
[ext_resource type="Texture2D" uid="uid://vdvw5mdy2dsi" path="res://art/playerGrey_up2.png" id="2_sweqy"]
[ext_resource type="Texture2D" uid="uid://d30i17te0nve0" path="res://art/playerGrey_walk1.png" id="3_2hs0m"]
[ext_resource type="Texture2D" uid="uid://8rmp6koh2moy" path="res://art/playerGrey_walk2.png" id="4_1jxqw"]

View File

@@ -35,5 +35,5 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
func _process(_delta: float) -> void:
pass

View File

@@ -10,7 +10,7 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
func _process(_delta: float) -> void:
pass
func game_over():

View File

@@ -9,7 +9,7 @@ func _ready():
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
func _process(_delta: float) -> void:
pass
func _on_visible_on_screen_notifier_2d_screen_exited():

4
survivor/.editorconfig Normal file
View File

@@ -0,0 +1,4 @@
root = true
[*]
charset = utf-8

2
survivor/.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf

3
survivor/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
# Godot 4+ specific ignores
.godot/
/android/

1
survivor/icon.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>

After

Width:  |  Height:  |  Size: 995 B

43
survivor/icon.svg.import Normal file
View File

@@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c1tcul17vvmyr"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.svg"
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

15
survivor/project.godot Normal file
View File

@@ -0,0 +1,15 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=5
[application]
config/name="Survivor"
config/features=PackedStringArray("4.5", "Forward Plus")
config/icon="res://icon.svg"