diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..d3d192d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,31 @@ +# EditorConfig is awesome: https://editorconfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = tab +indent_size = 8 +# shfmt +switch_case_indent = true + +[*.md] +indent_style = space +indent_size = 2 + +[*.{yml,yaml}] +indent_style = space +indent_size = 2 + +[{justfile,*.just}] +indent_style = space +indent_size = 4 + +# gdscript for godot apps +[*.gd] +indent_style = tab +indent_size = 4 diff --git a/.gitattributes b/.gitattributes index 827d33b..0c09125 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,12 +1,21 @@ # Common settings that generally should always be used with your language specific settings # Auto detect text files and perform LF normalization -* text=auto +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf # # The above will handle all files NOT found below # +# Godot-specific files +*.tscn text eol=lf merge=union +*.tres text eol=lf merge=union +*.godot text eol=lf +*.gd text eol=lf diff=gdscript +*.gdshader text eol=lf +*.import text eol=lf + # Documents *.bibtex text diff=bibtex *.doc diff=astextplain diff --git a/.gitignore b/.gitignore index c9d5335..83d633e 100644 --- a/.gitignore +++ b/.gitignore @@ -38,8 +38,9 @@ go.work.sum # repo-level cache for justfiles, etc. /.cache -# our hugo run artifact -/public.prev - # tasks for this repo are in github actions /TODO.md + +# Godot 4+ specific ignores +.godot/ +/android/ 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..f349502 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b5n2ltkmxhpct" +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/justfile b/justfile index d229ee2..08dd189 100644 --- a/justfile +++ b/justfile @@ -10,3 +10,8 @@ import? '.just/shellcheck.just' list: just --list @echo "{{GREEN}}Your justfile is waiting for more scripts and snippets{{NORMAL}}" + +# install prerequisites for development +[group('Utility')] +devsetup: + git config diff.gdscript.xfuncname '^[\t ]*(class|func|signal)[\t ].*$' diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..70e63a5 --- /dev/null +++ b/project.godot @@ -0,0 +1,19 @@ +; 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="FINI Clock" +config/features=PackedStringArray("4.5", "Mobile") +config/icon="res://icon.svg" + +[rendering] + +renderer/rendering_method="mobile"