Compare commits

...

3 commits

Author SHA1 Message Date
1d215f28c4 Scripts/GameManager.gd aktualisiert
All checks were successful
godot-ci export / Export Game (push) Successful in 2m5s
2023-10-28 10:21:12 +00:00
548bf4279d
upgrading GD Build version
All checks were successful
godot-ci export / Export Game (push) Successful in 1m56s
2023-10-28 12:01:55 +02:00
1241cd725a
Upgrading to GD 4.1
All checks were successful
godot-ci export / Export Game (push) Successful in 2m13s
2023-10-28 11:58:59 +02:00
3 changed files with 10 additions and 12 deletions

View file

@ -17,21 +17,21 @@ jobs:
- name: Download Godot build-libs - name: Download Godot build-libs
run: | run: |
mkdir -p /root/.local/share/godot/ mkdir -p /root/.local/share/godot/
wget -nv https://github.com/godotengine/godot/releases/download/4.0.2-stable/Godot_v4.0.2-stable_linux.x86_64.zip -O "/root/.local/share/godot/godot.zip" wget -nv https://github.com/godotengine/godot/releases/download/4.1.2-stable/Godot_v4.1.2-stable_linux.x86_64.zip -O "/root/.local/share/godot/godot.zip"
wget -nv https://github.com/godotengine/godot/releases/download/4.0.2-stable/Godot_v4.0.2-stable_export_templates.tpz -O /root/.local/share/godot/godot_templates.tpz wget -nv https://github.com/godotengine/godot/releases/download/4.1.2-stable/Godot_v4.1.2-stable_export_templates.tpz -O /root/.local/share/godot/godot_templates.tpz
- name: Setup Godot build-libs - name: Setup Godot build-libs
run: | run: |
7z x /root/.local/share/godot/godot.zip -o/root/.local/share/godot/godot_executable -y 7z x /root/.local/share/godot/godot.zip -o/root/.local/share/godot/godot_executable -y
chmod +x /root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 chmod +x /root/.local/share/godot/godot_executable/Godot_v4.1.2-stable_linux.x86_64
unzip /root/.local/share/godot/godot_templates.tpz -d /root/.local/share/godot unzip /root/.local/share/godot/godot_templates.tpz -d /root/.local/share/godot
mv /root/.local/share/godot/templates /root/.local/share/godot/4.0.2.stable mv /root/.local/share/godot/templates /root/.local/share/godot/4.1.2.stable
mkdir -p /root/.local/share/godot/export_templates mkdir -p /root/.local/share/godot/export_templates
mv /root/.local/share/godot/4.0.2.stable /root/.local/share/godot/export_templates mv /root/.local/share/godot/4.1.2.stable /root/.local/share/godot/export_templates
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 --version /root/.local/share/godot/godot_executable/Godot_v4.1.2-stable_linux.x86_64 --version
- name: Export for Linux - name: Export for Linux
run: | run: |
mkdir -p ./builds/linux/ mkdir -p ./builds/linux/
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 /var/lib/actions/project.godot -q --headless --export-release "Linux/X11" ./builds/linux/Game.x86_64 /root/.local/share/godot/godot_executable/Godot_v4.1.2-stable_linux.x86_64 /var/lib/actions/project.godot -q --headless --export-release "Linux/X11" ./builds/linux/Game.x86_64
- name: Package for Linux - name: Package for Linux
run: | run: |
cd builds cd builds
@ -39,7 +39,7 @@ jobs:
- name: Export for Windows - name: Export for Windows
run: | run: |
mkdir -p ./builds/windows/ mkdir -p ./builds/windows/
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 /var/lib/actions/project.godot -q --headless --export-release "Windows Desktop" ./builds/windows/Game.exe /root/.local/share/godot/godot_executable/Godot_v4.1.2-stable_linux.x86_64 /var/lib/actions/project.godot -q --headless --export-release "Windows Desktop" ./builds/windows/Game.exe
- name: Package for Windows - name: Package for Windows
run: | run: |
cd builds cd builds

View file

@ -98,9 +98,7 @@ func process_snake_rotation():
func _ready(): func _ready():
#load Config #load Config
var err = config.load("user://config.cfg") config.load("user://config.cfg")
if err != OK:
return
map_size = config.get_value("Game Play", "grid_size", 10) map_size = config.get_value("Game Play", "grid_size", 10)
speed = float(config.get_value("Game Play", "speed", 1)) speed = float(config.get_value("Game Play", "speed", 1))
print(speed) print(speed)

View file

@ -12,7 +12,7 @@ config_version=5
config/name="Snake" config/name="Snake"
run/main_scene="res://Scene/Main Menu.tscn" run/main_scene="res://Scene/Main Menu.tscn"
config/features=PackedStringArray("4.0", "GL Compatibility") config/features=PackedStringArray("4.1", "GL Compatibility")
config/icon="res://icon.svg" config/icon="res://icon.svg"
[display] [display]