From cfeaba54b4869fd91018be3947ece5dece7861b4 Mon Sep 17 00:00:00 2001 From: Jan Lerking Date: Wed, 3 Dec 2025 18:44:37 +0100 Subject: [PATCH] Dodge - cleanup. Added Survivor. /JL --- dodge/{ => scenes}/hud.tscn | 2 +- dodge/{ => scenes}/main.tscn | 16 ++++++------ dodge/{ => scenes}/mob.tscn | 2 +- dodge/{ => scenes}/player.tscn | 2 +- dodge/{ => scripts}/hud.gd | 2 +- dodge/{ => scripts}/hud.gd.uid | 0 dodge/{ => scripts}/main.gd | 2 +- dodge/{ => scripts}/main.gd.uid | 0 dodge/{ => scripts}/mob.gd | 2 +- dodge/{ => scripts}/mob.gd.uid | 0 dodge/{ => scripts}/player.gd | 0 dodge/{ => scripts}/player.gd.uid | 0 survivor/.editorconfig | 4 +++ survivor/.gitattributes | 2 ++ survivor/.gitignore | 3 +++ survivor/icon.svg | 1 + survivor/icon.svg.import | 43 +++++++++++++++++++++++++++++++ survivor/project.godot | 15 +++++++++++ 18 files changed, 82 insertions(+), 14 deletions(-) rename dodge/{ => scenes}/hud.tscn (98%) rename dodge/{ => scenes}/main.tscn (81%) rename dodge/{ => scenes}/mob.tscn (98%) rename dodge/{ => scenes}/player.tscn (97%) rename dodge/{ => scripts}/hud.gd (95%) rename dodge/{ => scripts}/hud.gd.uid (100%) rename dodge/{ => scripts}/main.gd (97%) rename dodge/{ => scripts}/main.gd.uid (100%) rename dodge/{ => scripts}/mob.gd (91%) rename dodge/{ => scripts}/mob.gd.uid (100%) rename dodge/{ => scripts}/player.gd (100%) rename dodge/{ => scripts}/player.gd.uid (100%) create mode 100644 survivor/.editorconfig create mode 100644 survivor/.gitattributes create mode 100644 survivor/.gitignore create mode 100644 survivor/icon.svg create mode 100644 survivor/icon.svg.import create mode 100644 survivor/project.godot diff --git a/dodge/hud.tscn b/dodge/scenes/hud.tscn similarity index 98% rename from dodge/hud.tscn rename to dodge/scenes/hud.tscn index 3ab726b..a87034c 100644 --- a/dodge/hud.tscn +++ b/dodge/scenes/hud.tscn @@ -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"] diff --git a/dodge/main.tscn b/dodge/scenes/main.tscn similarity index 81% rename from dodge/main.tscn rename to dodge/scenes/main.tscn index 97f678c..554f322 100644 --- a/dodge/main.tscn +++ b/dodge/scenes/main.tscn @@ -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"] diff --git a/dodge/mob.tscn b/dodge/scenes/mob.tscn similarity index 98% rename from dodge/mob.tscn rename to dodge/scenes/mob.tscn index 0262457..69ba5f5 100644 --- a/dodge/mob.tscn +++ b/dodge/scenes/mob.tscn @@ -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"] diff --git a/dodge/player.tscn b/dodge/scenes/player.tscn similarity index 97% rename from dodge/player.tscn rename to dodge/scenes/player.tscn index e9a0663..6c6961f 100644 --- a/dodge/player.tscn +++ b/dodge/scenes/player.tscn @@ -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"] diff --git a/dodge/hud.gd b/dodge/scripts/hud.gd similarity index 95% rename from dodge/hud.gd rename to dodge/scripts/hud.gd index abf0091..e4dba97 100644 --- a/dodge/hud.gd +++ b/dodge/scripts/hud.gd @@ -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 diff --git a/dodge/hud.gd.uid b/dodge/scripts/hud.gd.uid similarity index 100% rename from dodge/hud.gd.uid rename to dodge/scripts/hud.gd.uid diff --git a/dodge/main.gd b/dodge/scripts/main.gd similarity index 97% rename from dodge/main.gd rename to dodge/scripts/main.gd index da79230..5367054 100644 --- a/dodge/main.gd +++ b/dodge/scripts/main.gd @@ -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(): diff --git a/dodge/main.gd.uid b/dodge/scripts/main.gd.uid similarity index 100% rename from dodge/main.gd.uid rename to dodge/scripts/main.gd.uid diff --git a/dodge/mob.gd b/dodge/scripts/mob.gd similarity index 91% rename from dodge/mob.gd rename to dodge/scripts/mob.gd index 17c1c41..36ee4bd 100644 --- a/dodge/mob.gd +++ b/dodge/scripts/mob.gd @@ -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(): diff --git a/dodge/mob.gd.uid b/dodge/scripts/mob.gd.uid similarity index 100% rename from dodge/mob.gd.uid rename to dodge/scripts/mob.gd.uid diff --git a/dodge/player.gd b/dodge/scripts/player.gd similarity index 100% rename from dodge/player.gd rename to dodge/scripts/player.gd diff --git a/dodge/player.gd.uid b/dodge/scripts/player.gd.uid similarity index 100% rename from dodge/player.gd.uid rename to dodge/scripts/player.gd.uid diff --git a/survivor/.editorconfig b/survivor/.editorconfig new file mode 100644 index 0000000..f28239b --- /dev/null +++ b/survivor/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 diff --git a/survivor/.gitattributes b/survivor/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/survivor/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/survivor/.gitignore b/survivor/.gitignore new file mode 100644 index 0000000..0af181c --- /dev/null +++ b/survivor/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/survivor/icon.svg b/survivor/icon.svg new file mode 100644 index 0000000..c6bbb7d --- /dev/null +++ b/survivor/icon.svg @@ -0,0 +1 @@ + diff --git a/survivor/icon.svg.import b/survivor/icon.svg.import new file mode 100644 index 0000000..639dc43 --- /dev/null +++ b/survivor/icon.svg.import @@ -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 diff --git a/survivor/project.godot b/survivor/project.godot new file mode 100644 index 0000000..e4a40bc --- /dev/null +++ b/survivor/project.godot @@ -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"