Skip to content

Commit abf8f4a

Browse files
authored
🟒 [godot] create skeleton project (#5)
* 🟒 [godot] create skeleton project * gdscript uses tabs with 4 space indent * godot files are UNIX text files * include git config fix as a just recipe
1 parent 066a812 commit abf8f4a

File tree

7 files changed

+113
-4
lines changed

7 files changed

+113
-4
lines changed

β€Ž.editorconfigβ€Ž

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# EditorConfig is awesome: https://editorconfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
indent_style = tab
12+
indent_size = 8
13+
# shfmt
14+
switch_case_indent = true
15+
16+
[*.md]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[*.{yml,yaml}]
21+
indent_style = space
22+
indent_size = 2
23+
24+
[{justfile,*.just}]
25+
indent_style = space
26+
indent_size = 4
27+
28+
# gdscript for godot apps
29+
[*.gd]
30+
indent_style = tab
31+
indent_size = 4

β€Ž.gitattributesβ€Ž

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
# Common settings that generally should always be used with your language specific settings
22

33
# Auto detect text files and perform LF normalization
4-
* text=auto
4+
# Normalize EOL for all files that Git considers text files.
5+
* text=auto eol=lf
56

67
#
78
# The above will handle all files NOT found below
89
#
910

11+
# Godot-specific files
12+
*.tscn text eol=lf merge=union
13+
*.tres text eol=lf merge=union
14+
*.godot text eol=lf
15+
*.gd text eol=lf diff=gdscript
16+
*.gdshader text eol=lf
17+
*.import text eol=lf
18+
1019
# Documents
1120
*.bibtex text diff=bibtex
1221
*.doc diff=astextplain

β€Ž.gitignoreβ€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ go.work.sum
3838
# repo-level cache for justfiles, etc.
3939
/.cache
4040

41-
# our hugo run artifact
42-
/public.prev
43-
4441
# tasks for this repo are in github actions
4542
/TODO.md
43+
44+
# Godot 4+ specific ignores
45+
.godot/
46+
/android/

β€Žicon.svgβ€Ž

Lines changed: 1 addition & 0 deletions
Loading

β€Žicon.svg.importβ€Ž

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://b5n2ltkmxhpct"
6+
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://icon.svg"
14+
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/uastc_level=0
22+
compress/rdo_quality_loss=0.0
23+
compress/hdr_compression=1
24+
compress/normal_map=0
25+
compress/channel_pack=0
26+
mipmaps/generate=false
27+
mipmaps/limit=-1
28+
roughness/mode=0
29+
roughness/src_normal=""
30+
process/channel_remap/red=0
31+
process/channel_remap/green=1
32+
process/channel_remap/blue=2
33+
process/channel_remap/alpha=3
34+
process/fix_alpha_border=true
35+
process/premult_alpha=false
36+
process/normal_map_invert_y=false
37+
process/hdr_as_srgb=false
38+
process/hdr_clamp_exposure=false
39+
process/size_limit=0
40+
detect_3d/compress_to=1
41+
svg/scale=1.0
42+
editor/scale_with_editor_scale=false
43+
editor/convert_colors_with_editor_theme=false

β€Žjustfileβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ import? '.just/shellcheck.just'
1010
list:
1111
just --list
1212
@echo "{{GREEN}}Your justfile is waiting for more scripts and snippets{{NORMAL}}"
13+
14+
# install prerequisites for development
15+
[group('Utility')]
16+
devsetup:
17+
git config diff.gdscript.xfuncname '^[\t ]*(class|func|signal)[\t ].*$'

β€Žproject.godotβ€Ž

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
; Engine configuration file.
2+
; It's best edited using the editor UI and not directly,
3+
; since the parameters that go here are not all obvious.
4+
;
5+
; Format:
6+
; [section] ; section goes between []
7+
; param=value ; assign values to parameters
8+
9+
config_version=5
10+
11+
[application]
12+
13+
config/name="FINI Clock"
14+
config/features=PackedStringArray("4.5", "Mobile")
15+
config/icon="res://icon.svg"
16+
17+
[rendering]
18+
19+
renderer/rendering_method="mobile"

0 commit comments

Comments
Β (0)