commit cd1cc3d91e3ff536685c6226ee0f01c2bd9e3fa9 Author: Fabien Freling Date: Fri Sep 2 20:42:36 2022 +0200 initial commit 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..4709183 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Godot 4+ specific ignores +.godot/ diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..4c44876 --- /dev/null +++ b/flake.lock @@ -0,0 +1,25 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1661799568, + "narHash": "sha256-P3xXCyYfd6WzVC3anpb5ZvUeZ6vMttcs05OWGWvgc+E=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c3e4dc4f6d23c7e41dda5ce98956c75c7779e2fa", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b964e17 --- /dev/null +++ b/flake.nix @@ -0,0 +1,16 @@ +{ + description = "Space explo"; + + outputs = { self, nixpkgs }: + let + pkgs = nixpkgs.legacyPackages.x86_64-linux; + in { + + devShell.x86_64-linux = with pkgs; + mkShell { + buildInputs = [ + just + ]; + }; + }; +} diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..adc26df --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..511185a --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bp4pu76k87q3" +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/lossy_quality=0.7 +compress/hdr_compression=1 +compress/bptc_ldr=0 +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 diff --git a/justfile b/justfile new file mode 100644 index 0000000..e3cb57c --- /dev/null +++ b/justfile @@ -0,0 +1,25 @@ +godot_project := "./project.godot" +godot_url := "https://downloads.tuxfamily.org/godotengine/4.0/alpha15/Godot_v4.0-alpha15_linux.x86_64.zip" +godot_exe := "Godot_v4.0-alpha15_linux.x86_64" +godot_exe_dir := "~/bin" +godot_path := godot_exe_dir + "/" + godot_exe + +setup: + #!/usr/bin/env bash + set -euo pipefail + if [ ! -e {{godot_path}} ]; then + curl {{godot_url}} -O + unzip Godot*.zip + mkdir -p {{godot_exe_dir}} + mv {{godot_exe}} {{godot_exe_dir}} + rm Godot*.zip + fi + +#run: +# nixGL zig build run + +godot: setup + {{godot_exe}} + +edit: setup + {{godot_exe}} {{godot_project}} diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..1201345 --- /dev/null +++ b/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="Space Explo" +config/features=PackedStringArray("4.0", "Vulkan Clustered") +config/icon="res://icon.svg"