play.sh to start the game; Godot checks shared with run_server.sh

This commit is contained in:
Paul Bailey
2026-11-04 18:12:56 +00:00
parent 80786ab796
commit c87b241b29
4 changed files with 55 additions and 30 deletions

12
play.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
# Starts Emberwild (the game, with its window and title screen).
#
# ./play.sh
#
# Set GODOT=/path/to/godot to use a particular Godot. Any extra arguments go
# to Godot (e.g. ./play.sh --fullscreen). Checks Godot is 4.7+ and imports a
# fresh copy once first, the same as server/run_server.sh.
cd "$(dirname "$0")" || exit 1
. tools/godot_env.sh
exec "$GODOT" --path . "$@"