commit cb2caa44cd93979d5c573b2cb6dc16d96df3c8f7 Author: Jack Case Date: Mon Aug 18 20:14:18 2025 -0400 initial commit 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/game_window.tscn b/game_window.tscn new file mode 100644 index 0000000..10ea5b9 --- /dev/null +++ b/game_window.tscn @@ -0,0 +1,9 @@ +[gd_scene load_steps=2 format=3 uid="uid://bai2mcthexgm5"] + +[ext_resource type="Script" uid="uid://c1k5pgejmn3bb" path="res://grid.gd" id="1_mn5vm"] + +[node name="GameWindow" type="Node2D"] + +[node name="Grid" type="Node2D" parent="."] +position = Vector2(553, 259) +script = ExtResource("1_mn5vm") diff --git a/grid.gd b/grid.gd new file mode 100644 index 0000000..50de5a8 --- /dev/null +++ b/grid.gd @@ -0,0 +1,17 @@ +extends Node2D + +var rows: int = 5 +var cols: int = 5 + +var grid: Array + +var token = preload("res://token.tscn") + +func _ready(): + for row in rows: + grid.append([]) + for column in cols: + var token_node = token.instantiate() + add_child(token_node) + token_node.position = Vector2(10*row, 10*column) + grid[row].append(token_node) diff --git a/grid.gd.uid b/grid.gd.uid new file mode 100644 index 0000000..8df837b --- /dev/null +++ b/grid.gd.uid @@ -0,0 +1 @@ +uid://c1k5pgejmn3bb diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..9d8b7fa --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..6dce838 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cqtw7t2uag6f8" +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/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +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..a0792a7 --- /dev/null +++ b/project.godot @@ -0,0 +1,21 @@ +; 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="combo car" +run/main_scene="uid://bai2mcthexgm5" +config/features=PackedStringArray("4.4", "GL Compatibility") +config/icon="res://icon.svg" + +[rendering] + +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility" diff --git a/token.tscn b/token.tscn new file mode 100644 index 0000000..6183969 --- /dev/null +++ b/token.tscn @@ -0,0 +1,8 @@ +[gd_scene load_steps=2 format=3 uid="uid://b50otusq306jl"] + +[ext_resource type="Texture2D" uid="uid://cqtw7t2uag6f8" path="res://icon.svg" id="1_bd72f"] + +[node name="Token" type="Node2D"] + +[node name="Sprite2D" type="Sprite2D" parent="."] +texture = ExtResource("1_bd72f")