-
Notifications
You must be signed in to change notification settings - Fork 0
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
61 changed files
with
1,981 additions
and
48 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,42 +1,46 @@ | ||
name: Build Godot Game | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- "scenes/**" | ||
- "scripts/**" | ||
- "sprites/**" | ||
- "Main.tscn" | ||
- "project.godot" | ||
#- "ans/answers.json" | ||
# Uncomment when we get to this stage. | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
paths: | ||
- "scenes/**" | ||
- "scripts/**" | ||
- "sprites/**" | ||
- "Main.tscn" | ||
- "project.godot" | ||
#- "ans/answers.json" | ||
# Uncomment when we get to this stage. | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
setup-godot: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Godot Setup | ||
uses: lihop/[email protected] | ||
with: | ||
version: 4.2.2-stable # Specify the Godot version you want to use | ||
bits: 64 # Optional, default is 64 | ||
mono: false # Optional, set to true if using the Mono build | ||
alias: godot # Optional, default is godot | ||
cache: true # Optional, default is true | ||
export-templates: false # Optional, set to true if you need export templates | ||
github-token: ${{ github.token }} # Optional, default is ${{ github.token }} | ||
|
||
- name: Build Godot | ||
uses: yeslayla/[email protected] | ||
with: | ||
name: StarJump # Specify the name of the exported binary | ||
preset: "Game Entry" # Specify the name of the preset in `export_presets.cfg` to use | ||
subdirectory: "" # Optional, default is an empty string | ||
package: true # Optional, set to true to output an artifact zip file | ||
projectDir: build # Optional, default is . | ||
debugMode: true # Optional, specify true or false to use `--export-debug` | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Godot Build Info | ||
uses: robpc/[email protected] | ||
with: | ||
version: 1.0.0 # Specify package version | ||
commit: ${{ github.sha }} # Specify the commit hash | ||
build_date: ${{ github.run_date }} # Specify the build date/time | ||
file: override.cfg # Specify the file to add the overrides | ||
- name: Export Godot project | ||
uses: mirror12k/godot-export-build@v1 | ||
with: | ||
godot-version: '4.2.1' | ||
project-path: '.' | ||
|
||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: builds | ||
path: build/* |
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,4 @@ | ||
{ | ||
"recommendations": ["alfish.godot-files", "geequlim.godot-tools", "esbenp.prettier-vscode", "ms-vscode.remote-repositories", "github.remotehub", "donjayamanne.githist"], | ||
"unwantedRecommendations": [] | ||
} |
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 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "GDScript: Launch Project", | ||
"type": "godot", | ||
"request": "launch", | ||
"project": "${workspaceFolder}", | ||
"debug_collisions": false, | ||
"debug_paths": false, | ||
"debug_navigation": false, | ||
"additional_options": "" | ||
} | ||
] | ||
} |
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,6 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://bh3k50jwrtolm"] | ||
|
||
[ext_resource type="Script" path="res://scripts/Main.gd" id="1_x5cq3"] | ||
|
||
[node name="Main" type="Node2D"] | ||
script = ExtResource("1_x5cq3") |
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,4 @@ | ||
{ | ||
"star": "Sun", | ||
"clues": ["We see this everyday from ~6am to ~6pm."] | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,205 @@ | ||
[preset.0] | ||
|
||
name="StarJump Windows App" | ||
platform="Windows Desktop" | ||
runnable=true | ||
dedicated_server=false | ||
custom_features="" | ||
export_filter="all_resources" | ||
include_filter="" | ||
exclude_filter="*.md, old_scripts/*, .github/*, .vscode/*, and/*, LICENSE, export_presets.cfg, *.import, build/*" | ||
export_path="build/StarJump build.exe" | ||
encryption_include_filters="" | ||
encryption_exclude_filters="" | ||
encrypt_pck=false | ||
encrypt_directory=false | ||
|
||
[preset.0.options] | ||
|
||
custom_template/debug="" | ||
custom_template/release="" | ||
debug/export_console_wrapper=2 | ||
binary_format/embed_pck=false | ||
texture_format/bptc=true | ||
texture_format/s3tc=true | ||
texture_format/etc=false | ||
texture_format/etc2=false | ||
binary_format/architecture="x86_64" | ||
codesign/enable=false | ||
codesign/timestamp=true | ||
codesign/timestamp_server_url="" | ||
codesign/digest_algorithm=1 | ||
codesign/description="" | ||
codesign/custom_options=PackedStringArray() | ||
application/modify_resources=true | ||
application/icon="res://sprites/Astronaut Sprite 1 fire.png" | ||
application/console_wrapper_icon="" | ||
application/icon_interpolation=4 | ||
application/file_version="" | ||
application/product_version="" | ||
application/company_name="" | ||
application/product_name="" | ||
application/file_description="" | ||
application/copyright="" | ||
application/trademarks="" | ||
application/export_angle=0 | ||
ssh_remote_deploy/enabled=false | ||
ssh_remote_deploy/host="user@host_ip" | ||
ssh_remote_deploy/port="22" | ||
ssh_remote_deploy/extra_args_ssh="" | ||
ssh_remote_deploy/extra_args_scp="" | ||
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}' | ||
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}' | ||
$trigger = New-ScheduledTaskTrigger -Once -At 00:00 | ||
$settings = New-ScheduledTaskSettingsSet | ||
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings | ||
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true | ||
Start-ScheduledTask -TaskName godot_remote_debug | ||
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 } | ||
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue" | ||
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue | ||
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue | ||
Remove-Item -Recurse -Force '{temp_dir}'" | ||
|
||
[preset.1] | ||
|
||
name="StarJump Web App" | ||
platform="Web" | ||
runnable=true | ||
dedicated_server=false | ||
custom_features="" | ||
export_filter="all_resources" | ||
include_filter="" | ||
exclude_filter="md, old_scripts/*, .github/*, .vscode/*, and/*, LICENSE, export_presets.cfg, *.import, build/*" | ||
export_path="" | ||
encryption_include_filters="" | ||
encryption_exclude_filters="" | ||
encrypt_pck=false | ||
encrypt_directory=false | ||
|
||
[preset.1.options] | ||
|
||
custom_template/debug="" | ||
custom_template/release="" | ||
variant/extensions_support=false | ||
vram_texture_compression/for_desktop=true | ||
vram_texture_compression/for_mobile=false | ||
html/export_icon=true | ||
html/custom_html_shell="" | ||
html/head_include="" | ||
html/canvas_resize_policy=2 | ||
html/focus_canvas_on_start=true | ||
html/experimental_virtual_keyboard=false | ||
progressive_web_app/enabled=false | ||
progressive_web_app/offline_page="" | ||
progressive_web_app/display=1 | ||
progressive_web_app/orientation=0 | ||
progressive_web_app/icon_144x144="" | ||
progressive_web_app/icon_180x180="" | ||
progressive_web_app/icon_512x512="" | ||
progressive_web_app/background_color=Color(0, 0, 0, 1) | ||
|
||
[preset.2] | ||
|
||
name="StarJump Mac App" | ||
platform="macOS" | ||
runnable=true | ||
dedicated_server=false | ||
custom_features="" | ||
export_filter="all_resources" | ||
include_filter="" | ||
exclude_filter="" | ||
export_path="" | ||
encryption_include_filters="" | ||
encryption_exclude_filters="" | ||
encrypt_pck=false | ||
encrypt_directory=false | ||
|
||
[preset.2.options] | ||
|
||
export/distribution_type=1 | ||
binary_format/architecture="universal" | ||
custom_template/debug="" | ||
custom_template/release="" | ||
debug/export_console_wrapper=1 | ||
application/icon="" | ||
application/icon_interpolation=4 | ||
application/bundle_identifier="" | ||
application/signature="" | ||
application/app_category="Games" | ||
application/short_version="" | ||
application/version="" | ||
application/copyright="" | ||
application/copyright_localized={} | ||
application/min_macos_version="10.12" | ||
application/export_angle=0 | ||
display/high_res=true | ||
xcode/platform_build="14C18" | ||
xcode/sdk_version="13.1" | ||
xcode/sdk_build="22C55" | ||
xcode/sdk_name="macosx13.1" | ||
xcode/xcode_version="1420" | ||
xcode/xcode_build="14C18" | ||
codesign/codesign=1 | ||
codesign/installer_identity="" | ||
codesign/apple_team_id="" | ||
codesign/identity="" | ||
codesign/entitlements/custom_file="" | ||
codesign/entitlements/allow_jit_code_execution=false | ||
codesign/entitlements/allow_unsigned_executable_memory=false | ||
codesign/entitlements/allow_dyld_environment_variables=false | ||
codesign/entitlements/disable_library_validation=false | ||
codesign/entitlements/audio_input=false | ||
codesign/entitlements/camera=false | ||
codesign/entitlements/location=false | ||
codesign/entitlements/address_book=false | ||
codesign/entitlements/calendars=false | ||
codesign/entitlements/photos_library=false | ||
codesign/entitlements/apple_events=false | ||
codesign/entitlements/debugging=false | ||
codesign/entitlements/app_sandbox/enabled=false | ||
codesign/entitlements/app_sandbox/network_server=false | ||
codesign/entitlements/app_sandbox/network_client=false | ||
codesign/entitlements/app_sandbox/device_usb=false | ||
codesign/entitlements/app_sandbox/device_bluetooth=false | ||
codesign/entitlements/app_sandbox/files_downloads=0 | ||
codesign/entitlements/app_sandbox/files_pictures=0 | ||
codesign/entitlements/app_sandbox/files_music=0 | ||
codesign/entitlements/app_sandbox/files_movies=0 | ||
codesign/entitlements/app_sandbox/files_user_selected=0 | ||
codesign/entitlements/app_sandbox/helper_executables=[] | ||
codesign/custom_options=PackedStringArray() | ||
notarization/notarization=0 | ||
privacy/microphone_usage_description="" | ||
privacy/microphone_usage_description_localized={} | ||
privacy/camera_usage_description="" | ||
privacy/camera_usage_description_localized={} | ||
privacy/location_usage_description="" | ||
privacy/location_usage_description_localized={} | ||
privacy/address_book_usage_description="" | ||
privacy/address_book_usage_description_localized={} | ||
privacy/calendar_usage_description="" | ||
privacy/calendar_usage_description_localized={} | ||
privacy/photos_library_usage_description="" | ||
privacy/photos_library_usage_description_localized={} | ||
privacy/desktop_folder_usage_description="" | ||
privacy/desktop_folder_usage_description_localized={} | ||
privacy/documents_folder_usage_description="" | ||
privacy/documents_folder_usage_description_localized={} | ||
privacy/downloads_folder_usage_description="" | ||
privacy/downloads_folder_usage_description_localized={} | ||
privacy/network_volumes_usage_description="" | ||
privacy/network_volumes_usage_description_localized={} | ||
privacy/removable_volumes_usage_description="" | ||
privacy/removable_volumes_usage_description_localized={} | ||
ssh_remote_deploy/enabled=false | ||
ssh_remote_deploy/host="user@host_ip" | ||
ssh_remote_deploy/port="22" | ||
ssh_remote_deploy/extra_args_ssh="" | ||
ssh_remote_deploy/extra_args_scp="" | ||
ssh_remote_deploy/run_script="#!/usr/bin/env bash | ||
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\" | ||
open \"{temp_dir}/{exe_name}.app\" --args {cmd_args}" | ||
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash | ||
kill $(pgrep -x -f \"{temp_dir}/{exe_name}.app/Contents/MacOS/{exe_name} {cmd_args}\") | ||
rm -rf \"{temp_dir}\"" |
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,39 @@ | ||
extends CharacterBody2D | ||
|
||
var speed = 200 | ||
var sprite_index = 0 | ||
var sprite_textures = [] | ||
|
||
func _ready(): | ||
# Load the textures | ||
sprite_textures.append(load("res://sprites/Astronaut Sprite 1.png")) | ||
sprite_textures.append(load("res://sprites/Astronaut Sprite 1 fire.png")) | ||
|
||
# Set initial sprite texture | ||
$Sprite2D.texture = sprite_textures[sprite_index] | ||
|
||
func _process(delta): | ||
# Handle player movement | ||
var velocity = Vector2() | ||
if Input.is_action_pressed("ui_right"): | ||
velocity.x += 1 | ||
if Input.is_action_pressed("ui_left"): | ||
velocity.x -= 1 | ||
if Input.is_action_pressed("ui_down"): | ||
velocity.y += 1 | ||
if Input.is_action_pressed("ui_up"): | ||
velocity.y -= 1 | ||
|
||
if velocity.length() > 0: | ||
velocity = velocity.normalized() * speed | ||
|
||
move_and_slide() | ||
|
||
# Handle sprite toggle on key press | ||
if Input.is_action_just_pressed("toggle_sprite"): | ||
toggle_sprite() | ||
|
||
func toggle_sprite(): | ||
# Alternate the sprite texture | ||
sprite_index = (sprite_index + 1) % sprite_textures.size() | ||
$Sprite2D.texture = sprite_textures[sprite_index] |
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 @@ | ||
extends TextureButton | ||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
# Access the TextureButton node | ||
var button_node = "../TextureButton" # Assumes TextureButton is a child node of Control | ||
|
||
# Check if button_node is valid before connecting | ||
if button_node: | ||
# Connect the 'pressed' signal from TextureButton to '_on_button_pressed' method in this script | ||
button_node.connect("pressed", Callable(self, "_on_button_pressed")) | ||
else: | ||
print("TextureButton node not found or accessible.") | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
func _process(delta): | ||
pass |
Oops, something went wrong.