Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1cafe6e96d | |||
| ea8821b41a | |||
| 8338ce3dd9 | |||
| 39f45d418f | |||
| 4e756da1ba |
@@ -57,18 +57,18 @@ jobs:
|
|||||||
- name: Build Windows
|
- name: Build Windows
|
||||||
run: |
|
run: |
|
||||||
mkdir -v -p build/windows
|
mkdir -v -p build/windows
|
||||||
godot --headless --verbose --build-solutions --import --export-release "Windows Desktop" build/windows/${{ env.GAME_NAME }}.exe
|
godot --headless --verbose --build-solutions --export-release "Windows Desktop" build/windows/${{ env.GAME_NAME }}.exe
|
||||||
zip -r Windows.zip build/windows
|
zip -r Windows.zip build/windows
|
||||||
- name: Linux Build
|
# - name: Linux Build
|
||||||
run: |
|
# run: |
|
||||||
mkdir -v -p build/linux
|
# mkdir -v -p build/linux
|
||||||
godot --headless --verbose --export-release "Linux/X11" build/linux/${{ env.GAME_NAME }}.x86_64
|
# godot --headless --verbose --export-release "Linux/X11" build/linux/${{ env.GAME_NAME }}.x86_64
|
||||||
zip -r Linux.zip build/linux
|
# zip -r Linux.zip build/linux
|
||||||
- name: Mac Build
|
# - name: Mac Build
|
||||||
run: |
|
# run: |
|
||||||
mkdir -v -p build/mac
|
# mkdir -v -p build/mac
|
||||||
godot --headless --verbose --export-release "macOS" build/mac/${{ env.GAME_NAME }}.zip
|
# godot --headless --verbose --export-release "macOS" build/mac/${{ env.GAME_NAME }}.zip
|
||||||
zip -r Mac.zip build/mac
|
# zip -r Mac.zip build/mac
|
||||||
|
|
||||||
- name: Upload to Itch
|
- name: Upload to Itch
|
||||||
uses: KikimoraGames/itch-publish@v0.0.3
|
uses: KikimoraGames/itch-publish@v0.0.3
|
||||||
@@ -79,21 +79,21 @@ jobs:
|
|||||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||||
gameData: Windows.zip
|
gameData: Windows.zip
|
||||||
buildChannel: windows
|
buildChannel: windows
|
||||||
- name: Upload to Itch
|
# - name: Upload to Itch
|
||||||
uses: KikimoraGames/itch-publish@v0.0.3
|
# uses: KikimoraGames/itch-publish@v0.0.3
|
||||||
with:
|
# with:
|
||||||
butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
# butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
||||||
itchUsername: ${{ env.ITCHIO_USERNAME }}
|
# itchUsername: ${{ env.ITCHIO_USERNAME }}
|
||||||
itchGameId: ${{ env.ITCHIO_GAMEID }}
|
# itchGameId: ${{ env.ITCHIO_GAMEID }}
|
||||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
# buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||||
gameData: Linux.zip
|
# gameData: Linux.zip
|
||||||
buildChannel: linux
|
# buildChannel: linux
|
||||||
- name: Upload to Itch
|
# - name: Upload to Itch
|
||||||
uses: KikimoraGames/itch-publish@v0.0.3
|
# uses: KikimoraGames/itch-publish@v0.0.3
|
||||||
with:
|
# with:
|
||||||
butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
# butlerApiKey: ${{ secrets.BUTLER_TOKEN }}
|
||||||
itchUsername: ${{ env.ITCHIO_USERNAME }}
|
# itchUsername: ${{ env.ITCHIO_USERNAME }}
|
||||||
itchGameId: ${{ env.ITCHIO_GAMEID }}
|
# itchGameId: ${{ env.ITCHIO_GAMEID }}
|
||||||
buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
# buildNumber: ${{ needs.BumpTag.outputs.tag_name }}
|
||||||
gameData: Mac.zip
|
# gameData: Mac.zip
|
||||||
buildChannel: mac
|
# buildChannel: mac
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
class_name SceneLoaderClass
|
|
||||||
extends Node
|
extends Node
|
||||||
|
class_name SceneLoaderClass
|
||||||
## Autoload class for loading scenes with an optional loading screen.
|
## Autoload class for loading scenes with an optional loading screen.
|
||||||
|
|
||||||
signal scene_loaded
|
signal scene_loaded
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ script_export_mode=2
|
|||||||
|
|
||||||
custom_template/debug=""
|
custom_template/debug=""
|
||||||
custom_template/release=""
|
custom_template/release=""
|
||||||
debug/export_console_wrapper=1
|
debug/export_console_wrapper=2
|
||||||
binary_format/embed_pck=false
|
binary_format/embed_pck=false
|
||||||
texture_format/s3tc_bptc=true
|
texture_format/s3tc_bptc=true
|
||||||
texture_format/etc2_astc=false
|
texture_format/etc2_astc=false
|
||||||
|
|||||||
31
menus/scenes/menus/main_menu/new_main_menu.tscn
Normal file
31
menus/scenes/menus/main_menu/new_main_menu.tscn
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
[gd_scene load_steps=3 format=3 uid="uid://br8shfwk2lne0"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://brrt2uj47cmld" path="res://systems/ui/grab_focus.gd" id="1_c6nmr"]
|
||||||
|
[ext_resource type="Script" uid="uid://ckywnolvqy6w1" path="res://systems/ui/new_main_menu.gd" id="1_vi8ha"]
|
||||||
|
|
||||||
|
[node name="NewMainMenu" type="Control"]
|
||||||
|
layout_mode = 3
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
script = ExtResource("1_vi8ha")
|
||||||
|
game_scene_path = "uid://dmkw8cmalm5k"
|
||||||
|
|
||||||
|
[node name="Menus" type="MarginContainer" parent="."]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="StartGameButton" type="Button" parent="Menus"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 4
|
||||||
|
text = "Start game"
|
||||||
|
script = ExtResource("1_c6nmr")
|
||||||
|
|
||||||
|
[connection signal="pressed" from="Menus/StartGameButton" to="." method="on_new_game"]
|
||||||
4
systems/ui/grab_focus.gd
Normal file
4
systems/ui/grab_focus.gd
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
extends Control
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
grab_focus()
|
||||||
1
systems/ui/grab_focus.gd.uid
Normal file
1
systems/ui/grab_focus.gd.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://brrt2uj47cmld
|
||||||
6
systems/ui/new_main_menu.gd
Normal file
6
systems/ui/new_main_menu.gd
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
extends Control
|
||||||
|
|
||||||
|
@export_file("*.tscn") var game_scene_path : String
|
||||||
|
|
||||||
|
func on_new_game() -> void:
|
||||||
|
SceneLoader.load_scene(game_scene_path)
|
||||||
1
systems/ui/new_main_menu.gd.uid
Normal file
1
systems/ui/new_main_menu.gd.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://ckywnolvqy6w1
|
||||||
Reference in New Issue
Block a user