From cd1cc3d91e3ff536685c6226ee0f01c2bd9e3fa9 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Fri, 2 Sep 2022 20:42:36 +0200 Subject: [PATCH] initial commit --- .gitattributes | 2 ++ .gitignore | 2 ++ flake.lock | 25 +++++++++++++++++++++++++ flake.nix | 16 ++++++++++++++++ icon.svg | 1 + icon.svg.import | 35 +++++++++++++++++++++++++++++++++++ justfile | 25 +++++++++++++++++++++++++ project.godot | 15 +++++++++++++++ 8 files changed, 121 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 icon.svg create mode 100644 icon.svg.import create mode 100644 justfile create mode 100644 project.godot 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"