-
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
4 changed files
with
28 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,5 +1,13 @@ | ||
# Zenith | ||
|
||
## Environment | ||
A indie fan game developed in godot engine | ||
|
||
## Build Guide | ||
|
||
Godot 4.2.2 | ||
|
||
Because of the godot extensions of Rust and Cpp,you should make sure that the rust and cpp compiler have been installed. | ||
|
||
Then you can run ```python script/build.py``` to build the extension (both Debug and Release) | ||
|
||
Finally,you can start godot editor and develop or export the game. |
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,18 @@ | ||
import os | ||
|
||
def msg_system(cmd, error_msg): | ||
if os.system(cmd) != 0: | ||
print(error_msg) | ||
exit(1) | ||
|
||
def main(): | ||
# build rust extension | ||
os.chdir("../gdrust") | ||
msg_system("cargo build", "Failed to build rust extension in debug mode") | ||
msg_system("cargo build --release", "Failed to build rust extension in release mode") | ||
os.chdir("..") | ||
print("Rust extension compilation is success") | ||
print("Build success") | ||
|
||
if __name__ == "__main__": | ||
main() |
File renamed without changes.