From 1890638bb5f60c3d1b6421f83f94a1b6c59a7091 Mon Sep 17 00:00:00 2001 From: godzilla5hrimp Date: Wed, 25 Feb 2026 00:13:13 +0100 Subject: [PATCH] feat: add card node; --- .editorconfig | 4 ++++ .gitattributes | 2 ++ .gitignore | 3 +++ card_node.tscn | 23 +++++++++++++++++++++++ icon.svg | 1 + icon.svg.import | 43 +++++++++++++++++++++++++++++++++++++++++++ project.godot | 25 +++++++++++++++++++++++++ 7 files changed, 101 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 card_node.tscn create mode 100644 icon.svg create mode 100644 icon.svg.import create mode 100644 project.godot diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f28239b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0af181c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/card_node.tscn b/card_node.tscn new file mode 100644 index 0000000..afb1cf2 --- /dev/null +++ b/card_node.tscn @@ -0,0 +1,23 @@ +[gd_scene format=3 uid="uid://dx6ujq4qfxei"] + +[ext_resource type="Texture2D" uid="uid://nnvyuxm410hh" path="res://icon.svg" id="1_uo7av"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_tejjf"] + +[node name="CardNode" type="Node2D" unique_id=1544669836] + +[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1062767143] +scale = Vector2(0.47, 0.7) +texture = ExtResource("1_uo7av") + +[node name="Area2D" type="Area2D" parent="." unique_id=1277785163] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1443156341] +scale = Vector2(3, 4.5) +shape = SubResource("RectangleShape2D_tejjf") + +[node name="Label" type="Label" parent="." unique_id=975650331] +offset_left = -20.0 +offset_top = -43.0 +offset_right = 20.0 +offset_bottom = -20.0 diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..c6bbb7d --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..31724d7 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://nnvyuxm410hh" +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/project.godot b/project.godot new file mode 100644 index 0000000..1ebbf03 --- /dev/null +++ b/project.godot @@ -0,0 +1,25 @@ +; 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="Dwarf Card Crawler" +config/features=PackedStringArray("4.7", "GL Compatibility") +config/icon="res://icon.svg" + +[physics] + +3d/physics_engine="Jolt Physics" + +[rendering] + +rendering_device/driver.windows="d3d12" +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility"