new release
This commit is contained in:
parent
1b90ead344
commit
a54bbde5cb
10 changed files with 38 additions and 304 deletions
|
@ -6,4 +6,12 @@ Humans dissapeared from Earth and machines are looking for a way to bring them b
|
|||
|
||||
Made with Godot Engine
|
||||
|
||||
# Known issues
|
||||
|
||||
* PlayStation 4 controller does not recognize some buttons
|
||||
* Sound issues when Steam emulated controller is active
|
||||
* Sound issues when playing web version on Firefox
|
||||
|
||||
You can play it on your browser at https://patrice.asgardius.company/r3/
|
||||
|
||||
Remember: Godot Does what Unitydn't (if you are from the 1990 decade you will know where it came from)
|
||||
|
|
|
@ -1,8 +1,16 @@
|
|||
extends Label
|
||||
var previoustime
|
||||
const savegame = preload("res://save.gd")
|
||||
|
||||
func _ready():
|
||||
previoustime = int(Global.levelmax[Global.gamelevel])
|
||||
if Global.time < previoustime && Global.live == 3:
|
||||
Global.levelmax[Global.gamelevel] = str(Global.time)
|
||||
savegame.new()
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
var hour = int(Global.time / 3600000)
|
||||
var min = int(Global.time / 60000) - (hour * 60)
|
||||
var sec = int(Global.time / 1000) - (min * 60) - (hour * 3600)
|
||||
set_text("Your time: " + str(hour) + ":" + str(min) + ":" + str(sec) + ":" + str(Global.time - (sec * 1000) - (min * 60000) - (hour * 3600000)));
|
||||
var sec = float(Global.time / 1000)
|
||||
var msec = Global.time - (sec*1000)
|
||||
var bsec = float(previoustime / 1000)
|
||||
var bmsec = previoustime - (bsec*1000)
|
||||
set_text("Your time: " + str(sec) + "." + str(msec) + "\n" + "Your best time: " + str(bsec) + "." + str(bmsec));
|
||||
|
|
|
@ -3,13 +3,11 @@ extends Node
|
|||
var title = preload("res://title.tscn").instantiate()
|
||||
var boot = preload("res://bootclick.tscn").instantiate()
|
||||
const loadgame = preload("res://load.gd")
|
||||
const savegame = preload("res://save.gd")
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
|
||||
func _ready():
|
||||
loadgame.new()
|
||||
print(Global.level1max)
|
||||
#pass # Replace with function body.
|
||||
#add_child(title)
|
||||
|
||||
|
|
|
@ -1,207 +1,5 @@
|
|||
[preset.0]
|
||||
|
||||
name="Android"
|
||||
platform="Android"
|
||||
runnable=true
|
||||
dedicated_server=false
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="./The Red Robot Radio.apk"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
encrypt_directory=false
|
||||
|
||||
[preset.0.options]
|
||||
|
||||
custom_template/debug=""
|
||||
custom_template/release=""
|
||||
gradle_build/use_gradle_build=false
|
||||
gradle_build/export_format=0
|
||||
gradle_build/min_sdk=""
|
||||
gradle_build/target_sdk=""
|
||||
architectures/armeabi-v7a=true
|
||||
architectures/arm64-v8a=true
|
||||
architectures/x86=false
|
||||
architectures/x86_64=false
|
||||
version/code=2
|
||||
version/name="0.0.1"
|
||||
package/unique_name="asgardius.page.r3game"
|
||||
package/name=""
|
||||
package/signed=true
|
||||
package/app_category=2
|
||||
package/retain_data_on_uninstall=false
|
||||
package/exclude_from_recents=false
|
||||
launcher_icons/main_192x192=""
|
||||
launcher_icons/adaptive_foreground_432x432=""
|
||||
launcher_icons/adaptive_background_432x432=""
|
||||
graphics/opengl_debug=false
|
||||
xr_features/xr_mode=0
|
||||
xr_features/hand_tracking=0
|
||||
xr_features/hand_tracking_frequency=0
|
||||
xr_features/passthrough=0
|
||||
screen/immersive_mode=true
|
||||
screen/support_small=true
|
||||
screen/support_normal=true
|
||||
screen/support_large=true
|
||||
screen/support_xlarge=true
|
||||
user_data_backup/allow=false
|
||||
command_line/extra_args=""
|
||||
apk_expansion/enable=false
|
||||
apk_expansion/SALT=""
|
||||
apk_expansion/public_key=""
|
||||
permissions/custom_permissions=PackedStringArray()
|
||||
permissions/access_checkin_properties=false
|
||||
permissions/access_coarse_location=false
|
||||
permissions/access_fine_location=false
|
||||
permissions/access_location_extra_commands=false
|
||||
permissions/access_mock_location=false
|
||||
permissions/access_network_state=false
|
||||
permissions/access_surface_flinger=false
|
||||
permissions/access_wifi_state=false
|
||||
permissions/account_manager=false
|
||||
permissions/add_voicemail=false
|
||||
permissions/authenticate_accounts=false
|
||||
permissions/battery_stats=false
|
||||
permissions/bind_accessibility_service=false
|
||||
permissions/bind_appwidget=false
|
||||
permissions/bind_device_admin=false
|
||||
permissions/bind_input_method=false
|
||||
permissions/bind_nfc_service=false
|
||||
permissions/bind_notification_listener_service=false
|
||||
permissions/bind_print_service=false
|
||||
permissions/bind_remoteviews=false
|
||||
permissions/bind_text_service=false
|
||||
permissions/bind_vpn_service=false
|
||||
permissions/bind_wallpaper=false
|
||||
permissions/bluetooth=false
|
||||
permissions/bluetooth_admin=false
|
||||
permissions/bluetooth_privileged=false
|
||||
permissions/brick=false
|
||||
permissions/broadcast_package_removed=false
|
||||
permissions/broadcast_sms=false
|
||||
permissions/broadcast_sticky=false
|
||||
permissions/broadcast_wap_push=false
|
||||
permissions/call_phone=false
|
||||
permissions/call_privileged=false
|
||||
permissions/camera=false
|
||||
permissions/capture_audio_output=false
|
||||
permissions/capture_secure_video_output=false
|
||||
permissions/capture_video_output=false
|
||||
permissions/change_component_enabled_state=false
|
||||
permissions/change_configuration=false
|
||||
permissions/change_network_state=false
|
||||
permissions/change_wifi_multicast_state=false
|
||||
permissions/change_wifi_state=false
|
||||
permissions/clear_app_cache=false
|
||||
permissions/clear_app_user_data=false
|
||||
permissions/control_location_updates=false
|
||||
permissions/delete_cache_files=false
|
||||
permissions/delete_packages=false
|
||||
permissions/device_power=false
|
||||
permissions/diagnostic=false
|
||||
permissions/disable_keyguard=false
|
||||
permissions/dump=false
|
||||
permissions/expand_status_bar=false
|
||||
permissions/factory_test=false
|
||||
permissions/flashlight=false
|
||||
permissions/force_back=false
|
||||
permissions/get_accounts=false
|
||||
permissions/get_package_size=false
|
||||
permissions/get_tasks=false
|
||||
permissions/get_top_activity_info=false
|
||||
permissions/global_search=false
|
||||
permissions/hardware_test=false
|
||||
permissions/inject_events=false
|
||||
permissions/install_location_provider=false
|
||||
permissions/install_packages=false
|
||||
permissions/install_shortcut=false
|
||||
permissions/internal_system_window=false
|
||||
permissions/internet=false
|
||||
permissions/kill_background_processes=false
|
||||
permissions/location_hardware=false
|
||||
permissions/manage_accounts=false
|
||||
permissions/manage_app_tokens=false
|
||||
permissions/manage_documents=false
|
||||
permissions/manage_external_storage=false
|
||||
permissions/master_clear=false
|
||||
permissions/media_content_control=false
|
||||
permissions/modify_audio_settings=false
|
||||
permissions/modify_phone_state=false
|
||||
permissions/mount_format_filesystems=false
|
||||
permissions/mount_unmount_filesystems=false
|
||||
permissions/nfc=false
|
||||
permissions/persistent_activity=false
|
||||
permissions/process_outgoing_calls=false
|
||||
permissions/read_calendar=false
|
||||
permissions/read_call_log=false
|
||||
permissions/read_contacts=false
|
||||
permissions/read_external_storage=false
|
||||
permissions/read_frame_buffer=false
|
||||
permissions/read_history_bookmarks=false
|
||||
permissions/read_input_state=false
|
||||
permissions/read_logs=false
|
||||
permissions/read_phone_state=false
|
||||
permissions/read_profile=false
|
||||
permissions/read_sms=false
|
||||
permissions/read_social_stream=false
|
||||
permissions/read_sync_settings=false
|
||||
permissions/read_sync_stats=false
|
||||
permissions/read_user_dictionary=false
|
||||
permissions/reboot=false
|
||||
permissions/receive_boot_completed=false
|
||||
permissions/receive_mms=false
|
||||
permissions/receive_sms=false
|
||||
permissions/receive_wap_push=false
|
||||
permissions/record_audio=false
|
||||
permissions/reorder_tasks=false
|
||||
permissions/restart_packages=false
|
||||
permissions/send_respond_via_message=false
|
||||
permissions/send_sms=false
|
||||
permissions/set_activity_watcher=false
|
||||
permissions/set_alarm=false
|
||||
permissions/set_always_finish=false
|
||||
permissions/set_animation_scale=false
|
||||
permissions/set_debug_app=false
|
||||
permissions/set_orientation=false
|
||||
permissions/set_pointer_speed=false
|
||||
permissions/set_preferred_applications=false
|
||||
permissions/set_process_limit=false
|
||||
permissions/set_time=false
|
||||
permissions/set_time_zone=false
|
||||
permissions/set_wallpaper=false
|
||||
permissions/set_wallpaper_hints=false
|
||||
permissions/signal_persistent_processes=false
|
||||
permissions/status_bar=false
|
||||
permissions/subscribed_feeds_read=false
|
||||
permissions/subscribed_feeds_write=false
|
||||
permissions/system_alert_window=false
|
||||
permissions/transmit_ir=false
|
||||
permissions/uninstall_shortcut=false
|
||||
permissions/update_device_stats=false
|
||||
permissions/use_credentials=false
|
||||
permissions/use_sip=false
|
||||
permissions/vibrate=false
|
||||
permissions/wake_lock=false
|
||||
permissions/write_apn_settings=false
|
||||
permissions/write_calendar=false
|
||||
permissions/write_call_log=false
|
||||
permissions/write_contacts=false
|
||||
permissions/write_external_storage=false
|
||||
permissions/write_gservices=false
|
||||
permissions/write_history_bookmarks=false
|
||||
permissions/write_profile=false
|
||||
permissions/write_secure_settings=false
|
||||
permissions/write_settings=false
|
||||
permissions/write_sms=false
|
||||
permissions/write_social_stream=false
|
||||
permissions/write_sync_settings=false
|
||||
permissions/write_user_dictionary=false
|
||||
|
||||
[preset.1]
|
||||
|
||||
name="Linux/X11"
|
||||
platform="Linux/X11"
|
||||
runnable=true
|
||||
|
@ -216,12 +14,12 @@ encryption_exclude_filters=""
|
|||
encrypt_pck=false
|
||||
encrypt_directory=false
|
||||
|
||||
[preset.1.options]
|
||||
[preset.0.options]
|
||||
|
||||
custom_template/debug=""
|
||||
custom_template/release=""
|
||||
debug/export_console_wrapper=1
|
||||
binary_format/embed_pck=false
|
||||
binary_format/embed_pck=true
|
||||
texture_format/bptc=true
|
||||
texture_format/s3tc=true
|
||||
texture_format/etc=false
|
||||
|
@ -239,65 +37,3 @@ unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
|
|||
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
|
||||
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
|
||||
rm -rf \"{temp_dir}\""
|
||||
|
||||
[preset.2]
|
||||
|
||||
name="Windows Desktop"
|
||||
platform="Windows Desktop"
|
||||
runnable=true
|
||||
dedicated_server=false
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="./The Red Robot Radio CD.exe"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
encrypt_directory=false
|
||||
|
||||
[preset.2.options]
|
||||
|
||||
custom_template/debug=""
|
||||
custom_template/release=""
|
||||
debug/export_console_wrapper=1
|
||||
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=""
|
||||
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=""
|
||||
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}'"
|
||||
|
|
|
@ -7,13 +7,8 @@ var mousepos
|
|||
var timelimit = 15000
|
||||
var wait
|
||||
var hiscoresfile = "user://hiscores.save"
|
||||
var level1max
|
||||
var level2max
|
||||
var level3max
|
||||
var level4max
|
||||
var level5max
|
||||
var level6max
|
||||
var level7max
|
||||
var gamelevel
|
||||
var levelmax
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
|
|
@ -39,7 +39,7 @@ Made with Godot Engine
|
|||
Original game made with PyGame
|
||||
|
||||
Pygame version testing
|
||||
Astroboy
|
||||
Beachkid
|
||||
Zencifer
|
||||
Natasha
|
||||
BMX Man
|
||||
|
@ -67,9 +67,9 @@ Arch Linux Rolling
|
|||
Godot Port started with this device
|
||||
Provided as a replacement for a HP 14 laptop that died while running Genshin Impact
|
||||
|
||||
???
|
||||
???
|
||||
???
|
||||
Steam Deck
|
||||
Arch Linux
|
||||
Provided by Store Boss
|
||||
|
||||
Feedback
|
||||
El Suavecito
|
||||
|
|
21
load.gd
21
load.gd
|
@ -3,15 +3,8 @@ var file
|
|||
func _init():
|
||||
if FileAccess.file_exists(Global.hiscoresfile):
|
||||
file = FileAccess.open(Global.hiscoresfile, FileAccess.READ)
|
||||
var checkpoint = file.get_as_text().rsplit(",", true, 7)
|
||||
Global.level1max = checkpoint[0]
|
||||
Global.level2max = checkpoint[1]
|
||||
Global.level3max = checkpoint[2]
|
||||
Global.level4max = checkpoint[3]
|
||||
Global.level5max = checkpoint[4]
|
||||
Global.level6max = checkpoint[5]
|
||||
Global.level7max = checkpoint[6]
|
||||
|
||||
Global.levelmax = file.get_as_text().rsplit(",", true, 7)
|
||||
file.close()
|
||||
# We need to revert the game state so we're not cloning objects
|
||||
# during loading. This will vary wildly depending on the needs of a
|
||||
# project, so take care with this step.
|
||||
|
@ -26,11 +19,5 @@ func _init():
|
|||
var saveinit = "9999999,9999999,9999999,9999999,9999999,9999999,9999999"
|
||||
var file = FileAccess.open(Global.hiscoresfile, FileAccess.WRITE)
|
||||
file.store_string(saveinit)
|
||||
var checkpoint = saveinit.rsplit(",", true, 7)
|
||||
Global.level1max = checkpoint[0]
|
||||
Global.level2max = checkpoint[1]
|
||||
Global.level3max = checkpoint[2]
|
||||
Global.level4max = checkpoint[3]
|
||||
Global.level5max = checkpoint[4]
|
||||
Global.level6max = checkpoint[5]
|
||||
Global.level7max = checkpoint[6]
|
||||
Global.levelmax = saveinit.rsplit(",", true, 7)
|
||||
file.close()
|
||||
|
|
|
@ -24,6 +24,7 @@ Global="*res://global.gd"
|
|||
|
||||
window/size/viewport_width=1280
|
||||
window/size/viewport_height=720
|
||||
window/size/mode=3
|
||||
window/stretch/mode="viewport"
|
||||
|
||||
[rendering]
|
||||
|
|
2
save.gd
2
save.gd
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
func _init():
|
||||
var saveinit = str(Global.level1max)+","+str(Global.level2max)+","+str(Global.level3max)+","+str(Global.level4max)+","+str(Global.level5max)+","+str(Global.level6max)+","+str(Global.level7max)
|
||||
var saveinit = Global.levelmax[0]+","+Global.levelmax[1]+","+Global.levelmax[2]+","+Global.levelmax[3]+","+Global.levelmax[4]+","+Global.levelmax[5]+","+Global.levelmax[6]
|
||||
var file = FileAccess.open(Global.hiscoresfile, FileAccess.WRITE)
|
||||
file.store_string(saveinit)
|
||||
file.close()
|
||||
|
|
7
title.gd
7
title.gd
|
@ -8,6 +8,7 @@ var wait
|
|||
#var wormhole = preload("res://backgounds/wormhole.tscn").instantiate()
|
||||
|
||||
func _ready():
|
||||
Global.gamelevel = null
|
||||
add_child(bgsound)
|
||||
var titlemusic = load("res://music/x-force.wav")
|
||||
bgsound.stream = titlemusic
|
||||
|
@ -32,10 +33,10 @@ func _level():
|
|||
# This is like autoloading the scene, only
|
||||
# it happens after already loading the main scene.
|
||||
Global.live = 1
|
||||
var level = randi() % 3
|
||||
if level == 0:
|
||||
Global.gamelevel = randi() % 3
|
||||
if Global.gamelevel == 0:
|
||||
get_tree().change_scene_to_file("res://backgounds/galaxy.tscn")
|
||||
elif level == 1:
|
||||
elif Global.gamelevel == 1:
|
||||
get_tree().change_scene_to_file("res://backgounds/wormhole.tscn")
|
||||
else:
|
||||
get_tree().change_scene_to_file("res://backgounds/abstract.tscn")
|
||||
|
|
Loading…
Reference in a new issue