-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/build | ||
/pkg | ||
/pkg | ||
/*.tzst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Dodge the Creeps! | ||
|
||
This is an implementation of the Godot "Dodge the Creeps!" tutorial game using godot-cpp 3.2. | ||
|
||
## Running the packaged version | ||
|
||
After downloading and extracting the package, you will most likely need to mark the `Dodge the Creeps!.x86_64` file, located in the folder `Dodge the Creeps! (Linux 64)` as executable. | ||
Afterwards, simply launch the executable file. | ||
|
||
## Compiling | ||
|
||
Before you can use the "script" implementations in Godot, you will need to compile the shared library. | ||
You will need the following: | ||
|
||
* Conan | ||
* CMake >= 3.14 | ||
* GCC >= 9.2 | ||
|
||
If you have installed the required tools, issue the following commands from the root folder of your clone: | ||
|
||
``` | ||
$ cmake -S . -B build | ||
$ cmake --build build | ||
``` | ||
|
||
If the compilation succeeds, you can now open the project in the Godot editor. | ||
|
||
## Packaging | ||
|
||
To export the Godot project, simply issue the following commands from the root folder of your clone: | ||
|
||
``` | ||
mkdir -p pkg | ||
godot --path godot --export "Linux" '../pkg/Dodge the Creeps!.x86_64' | ||
``` | ||
|
||
You will be left with an executable and the "script" library. | ||
To further bundle them, use the following command from the root folder of your clone: | ||
|
||
``` | ||
tar -czf 'Dodge the Creeps! (Linux 64).tzst' --transform 's/pkg/Dodge the Creeps! (Linux 64)/' pkg/* | ||
``` |