Godot: Difference between revisions

Davidak (talk | contribs)
m improve style
Klinger (talk | contribs)
m Category:IDE added
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Expansion}}
{{Expansion}}


Godot is an open-source game engine, capable of creating both 2D and 3D games.  
[https://godotengine.org/ Godot] is an open-source game engine, capable of creating both 2D and 3D games.  


== Usage in NixOS ==
== Installation ==
 
Add <code>pkgs.godot</code> (GDScript only) to <code>environment.systemPackages</code>.
 
For installing Godot-Mono (C#), see [[Godot-Mono]] article.


Use <code>steam-run</code> to run a Godot exported project (without having to fix paths for Nix).
== Export Templates ==
On Godot upgrade, the new export template can be automatically provisioned this way:


== Installation ==
<code>home.file.".local/share/godot/export_templates/${builtins.replaceStrings [ "-" ] [ "." ] pkgs.godot_4-export-templates.version}".source = pkgs.godot_4-export-templates;</code>
 
=== Android Export Target ===
Accept Android license:
nixpkgs.config.android_sdk.accept_license = true;
Add to your system the usual Android and Java development packages, such as:
environment.systemPackages = with pkgs; [
   android-studio
   android-tools
   androidenv.androidPkgs.androidsdk
   androidenv.androidPkgs.emulator
   androidenv.androidPkgs.ndk-bundle
  jdk # Java
];
Configure Godot's '''Editor''' -> '''Editor Settings''' -> '''General''' [Tab] -> '''Export''' [Category]  -> '''Android''' [Sub-item], as such:
 
* '''Android SDK Path:''' Reference <code>pkgs.androidenv.androidPkgs.androidsdk</code> path. Like: <code>/nix/store/p2cdj75bbzswjc84789cmlwhy6ll7avr-androidsdk/libexec/android-sdk/</code>
* '''Java SDK Path:''' Reference <code>pkgs.jdk</code> path. Like: <code>/nix/store/55qm2mvhmv7n2n6yzym1idrvnlwia73z-openjdk-21.0.5+11</code>
 
=== Running Exported Application in NixOS ===
Use <code>steam-run</code> to run a Godot exported project without having to fix paths for Nix.


Add <code>pkgs.godot_4</code> to <code>environment.systemPackages</code>.
[[Category:Applications]]
[[Category:IDE]]