Update test project for Godot 4.3 (#159)

Co-authored-by: Andi Susanto <and1zero@users.noreply.github.com>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
Andi Susanto
2024-10-24 05:06:47 +08:00
committed by GitHub
parent dd1db58f33
commit 9a460209d7
25 changed files with 876 additions and 522 deletions

View File

@@ -56,7 +56,7 @@ jobs:
mkdir -v -p build/linux
EXPORT_DIR="$(readlink -f build)"
cd $PROJECT_PATH
godot --headless --verbose --export-release "Linux" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
godot --headless --verbose --export-release "Linux/X11" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:

View File

@@ -307,3 +307,6 @@ platform/windows/godot_res.res
# Scons progress indicator
.scons_node_count
# Godot 4.x
.godot/

99
test-project/default_env.tres Executable file → Normal file
View File

@@ -1,102 +1,9 @@
[gd_resource type="Environment" load_steps=2 format=2]
[sub_resource type="ProceduralSky" id=1]
[gd_resource type="Environment" load_steps=2 format=3 uid="uid://be7rgr1r6sv6d"]
[sub_resource type="Sky" id="1"]
radiance_size = 4
sky_top_color = Color( 0.647059, 0.839216, 0.945098, 1 )
sky_horizon_color = Color( 0.839216, 0.917647, 0.980392, 1 )
sky_curve = 0.09
sky_energy = 1.0
ground_bottom_color = Color( 0.156863, 0.184314, 0.211765, 1 )
ground_horizon_color = Color( 0.423529, 0.396078, 0.372549, 1 )
ground_curve = 0.02
ground_energy = 1.0
sun_color = Color( 1, 1, 1, 1 )
sun_latitude = 35.0
sun_longitude = 0.0
sun_angle_min = 1.0
sun_angle_max = 100.0
sun_curve = 0.05
sun_energy = 16.0
texture_size = 2
[resource]
background_mode = 2
background_sky = SubResource( 1 )
background_sky_custom_fov = 0.0
background_color = Color( 0, 0, 0, 1 )
background_energy = 1.0
background_canvas_max_layer = 0
ambient_light_color = Color( 0, 0, 0, 1 )
ambient_light_energy = 1.0
ambient_light_sky_contribution = 1.0
fog_enabled = false
fog_color = Color( 0.5, 0.6, 0.7, 1 )
fog_sun_color = Color( 1, 0.9, 0.7, 1 )
fog_sun_amount = 0.0
fog_depth_enabled = true
fog_depth_begin = 10.0
fog_depth_curve = 1.0
fog_transmit_enabled = false
fog_transmit_curve = 1.0
fog_height_enabled = false
fog_height_min = 0.0
fog_height_max = 100.0
fog_height_curve = 1.0
tonemap_mode = 0
tonemap_exposure = 1.0
tonemap_white = 1.0
auto_exposure_enabled = false
auto_exposure_scale = 0.4
auto_exposure_min_luma = 0.05
auto_exposure_max_luma = 8.0
auto_exposure_speed = 0.5
ss_reflections_enabled = false
ss_reflections_max_steps = 64
ss_reflections_fade_in = 0.15
ss_reflections_fade_out = 2.0
ss_reflections_depth_tolerance = 0.2
ss_reflections_roughness = true
ssao_enabled = false
ssao_radius = 1.0
sky = SubResource("1")
ssao_intensity = 1.0
ssao_radius2 = 0.0
ssao_intensity2 = 1.0
ssao_bias = 0.01
ssao_light_affect = 0.0
ssao_ao_channel_affect = 0.0
ssao_color = Color( 0, 0, 0, 1 )
ssao_quality = 0
ssao_blur = 3
ssao_edge_sharpness = 4.0
dof_blur_far_enabled = false
dof_blur_far_distance = 10.0
dof_blur_far_transition = 5.0
dof_blur_far_amount = 0.1
dof_blur_far_quality = 1
dof_blur_near_enabled = false
dof_blur_near_distance = 2.0
dof_blur_near_transition = 1.0
dof_blur_near_amount = 0.1
dof_blur_near_quality = 1
glow_enabled = false
glow_levels/1 = false
glow_levels/2 = false
glow_levels/3 = true
glow_levels/4 = false
glow_levels/5 = true
glow_levels/6 = false
glow_levels/7 = false
glow_intensity = 0.8
glow_strength = 1.0
glow_bloom = 0.0
glow_blend_mode = 2
glow_hdr_threshold = 1.0
glow_hdr_scale = 2.0
glow_bicubic_upscale = false
adjustment_enabled = false
adjustment_brightness = 1.0
adjustment_contrast = 1.0
adjustment_saturation = 1.0

666
test-project/export_presets.cfg Executable file → Normal file
View File

@@ -3,24 +3,38 @@
name="Windows Desktop"
platform="Windows Desktop"
runnable=true
advanced_options=false
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path=""
patch_list=PoolStringArray( )
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
script_export_mode=2
[preset.0.options]
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=true
texture_format/etc2=true
texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true
custom_template/release=""
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/s3tc_bptc=true
texture_format/etc2_astc=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=""
@@ -28,104 +42,288 @@ application/product_name=""
application/file_description=""
application/copyright=""
application/trademarks=""
[preset.1]
name="Mac OSX"
platform="Mac OSX"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path=""
patch_list=PoolStringArray( )
[preset.1.options]
custom_package/debug=""
custom_package/release=""
application/name=""
application/info="Made with Godot Engine"
application/icon=""
application/identifier=""
application/signature=""
application/short_version="1.0"
application/version="1.0"
application/copyright=""
display/high_res=true
texture_format/s3tc=true
texture_format/etc=true
texture_format/etc2=true
[preset.2]
name="Linux/X11"
platform="Linux/X11"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path=""
patch_list=PoolStringArray( )
[preset.2.options]
application/export_angle=0
application/export_d3d12=0
application/d3d12_agility_sdk_multiarch=true
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}'"
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=true
texture_format/etc2=true
texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true
custom_template/release=""
custom_template/debug=""
[preset.3]
[preset.1]
name="HTML5"
platform="HTML5"
name="macOS"
platform="macOS"
runnable=true
advanced_options=false
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path=""
patch_list=PoolStringArray( )
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
script_export_mode=2
[preset.3.options]
[preset.1.options]
texture_format/s3tc=true
texture_format/etc=true
texture_format/etc2=true
html/custom_html_shell=""
html/head_include=""
custom_template/release=""
export/distribution_type=1
binary_format/architecture="universal"
custom_template/debug=""
[preset.4]
name="Android Debug"
platform="Android"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""
[preset.4.options]
custom_template/release=""
debug/export_console_wrapper=1
application/icon=""
application/icon_interpolation=4
application/bundle_identifier="org.godotengine.godot-ci"
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
application/additional_plist_content=""
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={}
privacy/tracking_enabled=false
privacy/tracking_domains=PackedStringArray()
privacy/collected_data/name/collected=false
privacy/collected_data/name/linked_to_user=false
privacy/collected_data/name/used_for_tracking=false
privacy/collected_data/name/collection_purposes=0
privacy/collected_data/email_address/collected=false
privacy/collected_data/email_address/linked_to_user=false
privacy/collected_data/email_address/used_for_tracking=false
privacy/collected_data/email_address/collection_purposes=0
privacy/collected_data/phone_number/collected=false
privacy/collected_data/phone_number/linked_to_user=false
privacy/collected_data/phone_number/used_for_tracking=false
privacy/collected_data/phone_number/collection_purposes=0
privacy/collected_data/physical_address/collected=false
privacy/collected_data/physical_address/linked_to_user=false
privacy/collected_data/physical_address/used_for_tracking=false
privacy/collected_data/physical_address/collection_purposes=0
privacy/collected_data/other_contact_info/collected=false
privacy/collected_data/other_contact_info/linked_to_user=false
privacy/collected_data/other_contact_info/used_for_tracking=false
privacy/collected_data/other_contact_info/collection_purposes=0
privacy/collected_data/health/collected=false
privacy/collected_data/health/linked_to_user=false
privacy/collected_data/health/used_for_tracking=false
privacy/collected_data/health/collection_purposes=0
privacy/collected_data/fitness/collected=false
privacy/collected_data/fitness/linked_to_user=false
privacy/collected_data/fitness/used_for_tracking=false
privacy/collected_data/fitness/collection_purposes=0
privacy/collected_data/payment_info/collected=false
privacy/collected_data/payment_info/linked_to_user=false
privacy/collected_data/payment_info/used_for_tracking=false
privacy/collected_data/payment_info/collection_purposes=0
privacy/collected_data/credit_info/collected=false
privacy/collected_data/credit_info/linked_to_user=false
privacy/collected_data/credit_info/used_for_tracking=false
privacy/collected_data/credit_info/collection_purposes=0
privacy/collected_data/other_financial_info/collected=false
privacy/collected_data/other_financial_info/linked_to_user=false
privacy/collected_data/other_financial_info/used_for_tracking=false
privacy/collected_data/other_financial_info/collection_purposes=0
privacy/collected_data/precise_location/collected=false
privacy/collected_data/precise_location/linked_to_user=false
privacy/collected_data/precise_location/used_for_tracking=false
privacy/collected_data/precise_location/collection_purposes=0
privacy/collected_data/coarse_location/collected=false
privacy/collected_data/coarse_location/linked_to_user=false
privacy/collected_data/coarse_location/used_for_tracking=false
privacy/collected_data/coarse_location/collection_purposes=0
privacy/collected_data/sensitive_info/collected=false
privacy/collected_data/sensitive_info/linked_to_user=false
privacy/collected_data/sensitive_info/used_for_tracking=false
privacy/collected_data/sensitive_info/collection_purposes=0
privacy/collected_data/contacts/collected=false
privacy/collected_data/contacts/linked_to_user=false
privacy/collected_data/contacts/used_for_tracking=false
privacy/collected_data/contacts/collection_purposes=0
privacy/collected_data/emails_or_text_messages/collected=false
privacy/collected_data/emails_or_text_messages/linked_to_user=false
privacy/collected_data/emails_or_text_messages/used_for_tracking=false
privacy/collected_data/emails_or_text_messages/collection_purposes=0
privacy/collected_data/photos_or_videos/collected=false
privacy/collected_data/photos_or_videos/linked_to_user=false
privacy/collected_data/photos_or_videos/used_for_tracking=false
privacy/collected_data/photos_or_videos/collection_purposes=0
privacy/collected_data/audio_data/collected=false
privacy/collected_data/audio_data/linked_to_user=false
privacy/collected_data/audio_data/used_for_tracking=false
privacy/collected_data/audio_data/collection_purposes=0
privacy/collected_data/gameplay_content/collected=false
privacy/collected_data/gameplay_content/linked_to_user=false
privacy/collected_data/gameplay_content/used_for_tracking=false
privacy/collected_data/gameplay_content/collection_purposes=0
privacy/collected_data/customer_support/collected=false
privacy/collected_data/customer_support/linked_to_user=false
privacy/collected_data/customer_support/used_for_tracking=false
privacy/collected_data/customer_support/collection_purposes=0
privacy/collected_data/other_user_content/collected=false
privacy/collected_data/other_user_content/linked_to_user=false
privacy/collected_data/other_user_content/used_for_tracking=false
privacy/collected_data/other_user_content/collection_purposes=0
privacy/collected_data/browsing_history/collected=false
privacy/collected_data/browsing_history/linked_to_user=false
privacy/collected_data/browsing_history/used_for_tracking=false
privacy/collected_data/browsing_history/collection_purposes=0
privacy/collected_data/search_hhistory/collected=false
privacy/collected_data/search_hhistory/linked_to_user=false
privacy/collected_data/search_hhistory/used_for_tracking=false
privacy/collected_data/search_hhistory/collection_purposes=0
privacy/collected_data/user_id/collected=false
privacy/collected_data/user_id/linked_to_user=false
privacy/collected_data/user_id/used_for_tracking=false
privacy/collected_data/user_id/collection_purposes=0
privacy/collected_data/device_id/collected=false
privacy/collected_data/device_id/linked_to_user=false
privacy/collected_data/device_id/used_for_tracking=false
privacy/collected_data/device_id/collection_purposes=0
privacy/collected_data/purchase_history/collected=false
privacy/collected_data/purchase_history/linked_to_user=false
privacy/collected_data/purchase_history/used_for_tracking=false
privacy/collected_data/purchase_history/collection_purposes=0
privacy/collected_data/product_interaction/collected=false
privacy/collected_data/product_interaction/linked_to_user=false
privacy/collected_data/product_interaction/used_for_tracking=false
privacy/collected_data/product_interaction/collection_purposes=0
privacy/collected_data/advertising_data/collected=false
privacy/collected_data/advertising_data/linked_to_user=false
privacy/collected_data/advertising_data/used_for_tracking=false
privacy/collected_data/advertising_data/collection_purposes=0
privacy/collected_data/other_usage_data/collected=false
privacy/collected_data/other_usage_data/linked_to_user=false
privacy/collected_data/other_usage_data/used_for_tracking=false
privacy/collected_data/other_usage_data/collection_purposes=0
privacy/collected_data/crash_data/collected=false
privacy/collected_data/crash_data/linked_to_user=false
privacy/collected_data/crash_data/used_for_tracking=false
privacy/collected_data/crash_data/collection_purposes=0
privacy/collected_data/performance_data/collected=false
privacy/collected_data/performance_data/linked_to_user=false
privacy/collected_data/performance_data/used_for_tracking=false
privacy/collected_data/performance_data/collection_purposes=0
privacy/collected_data/other_diagnostic_data/collected=false
privacy/collected_data/other_diagnostic_data/linked_to_user=false
privacy/collected_data/other_diagnostic_data/used_for_tracking=false
privacy/collected_data/other_diagnostic_data/collection_purposes=0
privacy/collected_data/environment_scanning/collected=false
privacy/collected_data/environment_scanning/linked_to_user=false
privacy/collected_data/environment_scanning/used_for_tracking=false
privacy/collected_data/environment_scanning/collection_purposes=0
privacy/collected_data/hands/collected=false
privacy/collected_data/hands/linked_to_user=false
privacy/collected_data/hands/used_for_tracking=false
privacy/collected_data/hands/collection_purposes=0
privacy/collected_data/head/collected=false
privacy/collected_data/head/linked_to_user=false
privacy/collected_data/head/used_for_tracking=false
privacy/collected_data/head/collection_purposes=0
privacy/collected_data/other_data_types/collected=false
privacy/collected_data/other_data_types/linked_to_user=false
privacy/collected_data/other_data_types/used_for_tracking=false
privacy/collected_data/other_data_types/collection_purposes=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="#!/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}\""
graphics/32_bits_framebuffer=true
xr_features/xr_mode=0
xr_features/degrees_of_freedom=0
xr_features/hand_tracking=0
xr_features/focus_awareness=false
one_click_deploy/clear_previous_install=false
custom_template/debug=""
custom_template/release=""
custom_template/use_custom_build=false
command_line/extra_args=""
version/code=1
@@ -156,7 +354,7 @@ architectures/armeabi-v7a=true
architectures/arm64-v8a=true
architectures/x86=false
architectures/x86_64=false
permissions/custom_permissions=PoolStringArray( )
permissions/custom_permissions=PackedStringArray()
permissions/access_checkin_properties=false
permissions/access_coarse_location=false
permissions/access_fine_location=false
@@ -303,29 +501,99 @@ permissions/write_social_stream=false
permissions/write_sync_settings=false
permissions/write_user_dictionary=false
[preset.5]
[preset.2]
name="Android"
platform="Android"
name="Linux/X11"
platform="Linux"
runnable=true
advanced_options=false
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
patch_list=PoolStringArray( )
script_export_mode=1
script_encryption_key=""
export_path=""
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
script_export_mode=2
[preset.5.options]
[preset.2.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/s3tc_bptc=true
texture_format/etc2_astc=false
binary_format/architecture="x86_64"
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
export DISPLAY=:0
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
\"{temp_dir}/{exe_name}\" {cmd_args}"
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
rm -rf \"{temp_dir}\""
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=true
texture_format/etc2=true
texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true
[preset.3]
name="Web"
platform="Web"
runnable=true
advanced_options=false
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
script_export_mode=2
[preset.3.options]
custom_template/debug=""
custom_template/release=""
variant/extensions_support=false
variant/thread_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/ensure_cross_origin_isolation_headers=true
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)
graphics/32_bits_framebuffer=true
xr_features/xr_mode=0
xr_features/degrees_of_freedom=0
xr_features/hand_tracking=0
xr_features/focus_awareness=false
one_click_deploy/clear_previous_install=false
custom_template/debug=""
custom_template/release=""
custom_template/use_custom_build=false
command_line/extra_args=""
version/code=1
@@ -356,7 +624,7 @@ architectures/armeabi-v7a=true
architectures/arm64-v8a=true
architectures/x86=false
architectures/x86_64=false
permissions/custom_permissions=PoolStringArray( )
permissions/custom_permissions=PackedStringArray()
permissions/access_checkin_properties=false
permissions/access_coarse_location=false
permissions/access_fine_location=false
@@ -501,4 +769,212 @@ permissions/write_settings=false
permissions/write_sms=false
permissions/write_social_stream=false
permissions/write_sync_settings=false
permissions/write_user_dictionary=false
permissions/write_user_dictionary=false
[preset.4]
name="Android"
platform="Android"
runnable=true
advanced_options=false
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
script_export_mode=2
[preset.4.options]
custom_template/debug=""
custom_template/release=""
gradle_build/use_gradle_build=false
gradle_build/gradle_build_directory=""
gradle_build/android_source_template=""
gradle_build/compress_native_libraries=false
gradle_build/export_format=0
gradle_build/min_sdk=""
gradle_build/target_sdk=""
architectures/armeabi-v7a=false
architectures/arm64-v8a=true
architectures/x86=false
architectures/x86_64=false
version/code=1
version/name=""
package/unique_name="com.example.$genname"
package/name=""
package/signed=true
package/app_category=2
package/retain_data_on_uninstall=false
package/exclude_from_recents=false
package/show_in_android_tv=false
package/show_in_app_library=true
package/show_as_launcher_app=false
launcher_icons/main_192x192=""
launcher_icons/adaptive_foreground_432x432=""
launcher_icons/adaptive_background_432x432=""
graphics/opengl_debug=false
xr_features/xr_mode=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/post_notifications=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

35
test-project/icon.png.import Executable file → Normal file
View File

@@ -1,31 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
type="CompressedTexture2D"
uid="uid://pkdvktqcxe0v"
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -6,17 +6,13 @@
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
config_version=5
[application]
config/name="gameoff"
run/main_scene="res://scenes/Main.tscn"
config/features=PackedStringArray("4.3")
config/icon="res://icon.png"
[autoload]
@@ -25,39 +21,40 @@ GLOBAL="*res://scripts/GLOBAL.gd"
[display]
window/size/width=1920
window/size/height=1080
window/size/viewport_width=1920
window/size/viewport_height=1080
window/size/resizable=false
[input]
ui_up={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null)
]
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194320,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":87,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
ui_down={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"unicode":0,"echo":false,"script":null)
]
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194322,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":83,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
]
}
swap={
"deadzone": 0.5,
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":2,"pressed":false,"doubleclick":false,"script":null)
]
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":2,"canceled":false,"pressed":false,"double_click":false,"script":null)
]
}
fire={
"deadzone": 0.5,
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null)
]
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":1,"canceled":false,"pressed":false,"double_click":false,"script":null)
]
}
[rendering]
textures/vram_compression/import_etc2_astc=true
environment/defaults/default_environment="res://default_env.tres"
quality/driver/driver_name="GLES2"
vram_compression/import_etc=true
environment/default_environment="res://default_env.tres"

35
test-project/resources/img/1.png.import Executable file → Normal file
View File

@@ -1,31 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/1.png-874a0dfc3e148ca5b5c7b731b459b9a9.stex"
type="CompressedTexture2D"
uid="uid://c13lokwvlumq"
path="res://.godot/imported/1.png-874a0dfc3e148ca5b5c7b731b459b9a9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/img/1.png"
dest_files=[ "res://.import/1.png-874a0dfc3e148ca5b5c7b731b459b9a9.stex" ]
dest_files=["res://.godot/imported/1.png-874a0dfc3e148ca5b5c7b731b459b9a9.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

35
test-project/resources/img/2.png.import Executable file → Normal file
View File

@@ -1,31 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/2.png-a7dea376fea94ea1eb370fce6b063bfe.stex"
type="CompressedTexture2D"
uid="uid://sss8hj0itmbm"
path="res://.godot/imported/2.png-a7dea376fea94ea1eb370fce6b063bfe.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/img/2.png"
dest_files=[ "res://.import/2.png-a7dea376fea94ea1eb370fce6b063bfe.stex" ]
dest_files=["res://.godot/imported/2.png-a7dea376fea94ea1eb370fce6b063bfe.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -1,31 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/bullet-placeholder.png-eeaa4de234c0486ca1a9eb8dc6789c56.stex"
type="CompressedTexture2D"
uid="uid://us5yc614v74l"
path="res://.godot/imported/bullet-placeholder.png-eeaa4de234c0486ca1a9eb8dc6789c56.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/img/bullet-placeholder.png"
dest_files=[ "res://.import/bullet-placeholder.png-eeaa4de234c0486ca1a9eb8dc6789c56.stex" ]
dest_files=["res://.godot/imported/bullet-placeholder.png-eeaa4de234c0486ca1a9eb8dc6789c56.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

35
test-project/resources/img/cat0.png.import Executable file → Normal file
View File

@@ -1,31 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/cat0.png-c2a0d2145a7b7ae5da0c2cedfce916ba.stex"
type="CompressedTexture2D"
uid="uid://b6au28glxf586"
path="res://.godot/imported/cat0.png-c2a0d2145a7b7ae5da0c2cedfce916ba.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/img/cat0.png"
dest_files=[ "res://.import/cat0.png-c2a0d2145a7b7ae5da0c2cedfce916ba.stex" ]
dest_files=["res://.godot/imported/cat0.png-c2a0d2145a7b7ae5da0c2cedfce916ba.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

35
test-project/resources/img/coil.png.import Executable file → Normal file
View File

@@ -1,31 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/coil.png-9a3ed0a2a28db47534112a3d0aada371.stex"
type="CompressedTexture2D"
uid="uid://bkdumwaxj31xo"
path="res://.godot/imported/coil.png-9a3ed0a2a28db47534112a3d0aada371.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/img/coil.png"
dest_files=[ "res://.import/coil.png-9a3ed0a2a28db47534112a3d0aada371.stex" ]
dest_files=["res://.godot/imported/coil.png-9a3ed0a2a28db47534112a3d0aada371.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -1,31 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/missile-placeholder.png-1d86beeaaa1c40b1fbc4c2a8d00be077.stex"
type="CompressedTexture2D"
uid="uid://my3jd38hyc7k"
path="res://.godot/imported/missile-placeholder.png-1d86beeaaa1c40b1fbc4c2a8d00be077.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/img/missile-placeholder.png"
dest_files=[ "res://.import/missile-placeholder.png-1d86beeaaa1c40b1fbc4c2a8d00be077.stex" ]
dest_files=["res://.godot/imported/missile-placeholder.png-1d86beeaaa1c40b1fbc4c2a8d00be077.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/hdr_compression=1
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scripts/ColoredEntity.gd" type="Script" id=1]
[ext_resource path="res://resources/img/2.png" type="Texture" id=2]
[ext_resource path="res://resources/img/2.png" type="Texture2D" id=2]
[node name="Background" type="Node2D" groups=[
"ColoredEntity",
@@ -13,12 +13,12 @@ anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = -199.0
margin_top = -157.0
margin_right = 2097.0
margin_bottom = 1217.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
offset_left = -199.0
offset_top = -157.0
offset_right = 2097.0
offset_bottom = 1217.0
pivot_offset = Vector2( 0, 0 )
clip_contents = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1

View File

@@ -17,12 +17,12 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -60.5
margin_top = -33.0
margin_right = 60.5
margin_bottom = 33.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
offset_left = -60.5
offset_top = -33.0
offset_right = 60.5
offset_bottom = 33.0
pivot_offset = Vector2( 0, 0 )
clip_contents = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
@@ -31,7 +31,7 @@ color = Color( 1, 1, 1, 1 )
[node name="Body" type="Area2D" parent="."]
input_pickable = true
gravity_vec = Vector2( 0, 1 )
gravity_direction = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0

View File

@@ -1,24 +1,24 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scripts/Cannon.gd" type="Script" id=1]
[ext_resource path="res://resources/img/1.png" type="Texture" id=2]
[ext_resource path="res://resources/img/1.png" type="Texture2D" id=2]
[node name="Cannon" type="Node2D" groups=[
"ColoredEntity",
]]
script = ExtResource( 1 )
[node name="Sprite" type="TextureRect" parent="."]
[node name="Sprite2D" type="TextureRect" parent="."]
anchor_left = 0.0
anchor_top = 0.5
anchor_right = 0.0
anchor_bottom = 0.5
margin_top = -10.0
margin_right = 150.0
margin_bottom = 38.0
rect_min_size = Vector2( 150, 24 )
rect_pivot_offset = Vector2( 10, 10 )
rect_clip_content = false
offset_top = -10.0
offset_right = 150.0
offset_bottom = 38.0
custom_minimum_size = Vector2( 150, 24 )
pivot_offset = Vector2( 10, 10 )
clip_contents = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 0
@@ -26,11 +26,11 @@ size_flags_vertical = 0
texture = ExtResource( 2 )
stretch_mode = 2
[node name="GuideLine" type="Line2D" parent="Sprite"]
[node name="GuideLine" type="Line2D" parent="Sprite2D"]
modulate = Color( 1, 1, 1, 0.1 )
show_behind_parent = true
position = Vector2( 0, 10 )
points = PoolVector2Array( 135, 2, 2000, 2 )
points = PackedVector2Array( 135, 2, 2000, 2 )
width = 5.0
default_color = Color( 1, 1, 1, 1 )
texture_mode = 1
@@ -38,10 +38,10 @@ joint_mode = 2
sharp_limit = 2.0
round_precision = 10
[node name="CannonTip" type="Position2D" parent="Sprite"]
[node name="CannonTip" type="Marker2D" parent="Sprite2D"]
position = Vector2( 120, 12 )
[node name="CannonBase" type="Position2D" parent="Sprite"]
[node name="CannonBase" type="Marker2D" parent="Sprite2D"]
position = Vector2( 0, 12 )
[node name="Projectiles" type="Node" parent="."]

29
test-project/scenes/EnemyGenerator.tscn Executable file → Normal file
View File

@@ -1,38 +1,29 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=3 format=3 uid="uid://b2fpxxnc2fq3o"]
[ext_resource path="res://scripts/EnemyGenerator.gd" type="Script" id=1]
[ext_resource type="Script" path="res://scripts/EnemyGenerator.gd" id="1"]
[sub_resource type="Curve2D" id=1]
bake_interval = 5.0
[sub_resource type="Curve2D" id="1"]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 802.371, -163.584, 0, 0, 0, 0, 959.909, -42.497, 0, 0, 0, 0, 1955.58, -35.2126, 0, 0, 0, 0, 1977.69, -34.257, 0, 0, 0, 0, 2072.89, -95.3282, 0, 0, 0, 0, 2171.96, -161.2, 0, 0, 0, 0, 1329.54, -162.398, 0, 0, 0, 0, 958.623, -161.461, 0, 0, 0, 0, 801.772, -163.584, 0, 0, 0, 0, 802.371, -163.584 )
"points": PackedVector2Array(0, 0, 0, 0, 802.371, -163.584, 0, 0, 0, 0, 959.909, -42.497, 0, 0, 0, 0, 1955.58, -35.2126, 0, 0, 0, 0, 1977.69, -34.257, 0, 0, 0, 0, 2072.89, -95.3282, 0, 0, 0, 0, 2171.96, -161.2, 0, 0, 0, 0, 1329.54, -162.398, 0, 0, 0, 0, 958.623, -161.461, 0, 0, 0, 0, 801.772, -163.584, 0, 0, 0, 0, 802.371, -163.584)
}
point_count = 10
[node name="EnemyGenerator" type="Node2D"]
script = ExtResource( 1 )
script = ExtResource("1")
[node name="Enemies" type="Node" parent="."]
[node name="SpawnArea" type="Path2D" parent="."]
self_modulate = Color( 0.5, 0.6, 1, 0.7 )
curve = SubResource( 1 )
self_modulate = Color(0.5, 0.6, 1, 0.7)
curve = SubResource("1")
[node name="SpawnLocation" type="PathFollow2D" parent="SpawnArea"]
position = Vector2( 802.371, -163.584 )
rotation = 0.655325
offset = 0.0
h_offset = 0.0
v_offset = 0.0
rotate = true
cubic_interp = true
loop = true
lookahead = 4.0
position = Vector2(802.371, -163.584)
rotation = 0.655312
[node name="SpawnTimer" type="Timer" parent="."]
process_mode = 1
wait_time = 1.5
one_shot = false
autostart = true
[connection signal="start" from="." to="." method="_on_EnemyGenerator_start"]

7
test-project/scenes/GLOBAL.tscn Executable file → Normal file
View File

@@ -1,7 +1,6 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=2 format=3 uid="uid://cch0y3px40vrg"]
[ext_resource path="res://scripts/GLOBAL.gd" type="Script" id=1]
[ext_resource type="Script" path="res://scripts/GLOBAL.gd" id="1"]
[node name="GLOBAL" type="Node"]
script = ExtResource( 1 )
script = ExtResource("1")

View File

@@ -7,8 +7,8 @@ anchor_left = 0.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
pivot_offset = Vector2( 0, 0 )
clip_contents = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
@@ -20,12 +20,12 @@ anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 1.0
margin_top = 84.0
margin_right = 496.0
margin_bottom = 196.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
offset_left = 1.0
offset_top = 84.0
offset_right = 496.0
offset_bottom = 196.0
pivot_offset = Vector2( 0, 0 )
clip_contents = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
@@ -37,17 +37,17 @@ anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 63.0
margin_bottom = 112.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
offset_right = 63.0
offset_bottom = 112.0
pivot_offset = Vector2( 0, 0 )
clip_contents = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
enabled_focus_mode = 2
focus_mode = 2
shortcut = null
group = null
text = "THEME1"
@@ -59,18 +59,18 @@ anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 67.0
margin_right = 130.0
margin_bottom = 112.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
offset_left = 67.0
offset_right = 130.0
offset_bottom = 112.0
pivot_offset = Vector2( 0, 0 )
clip_contents = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
enabled_focus_mode = 2
focus_mode = 2
shortcut = null
group = null
text = "THEME2"
@@ -82,18 +82,18 @@ anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 134.0
margin_right = 197.0
margin_bottom = 112.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
offset_left = 134.0
offset_right = 197.0
offset_bottom = 112.0
pivot_offset = Vector2( 0, 0 )
clip_contents = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
enabled_focus_mode = 2
focus_mode = 2
shortcut = null
group = null
text = "THEME3"
@@ -105,17 +105,17 @@ anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 203.0
margin_bottom = 78.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
offset_right = 203.0
offset_bottom = 78.0
pivot_offset = Vector2( 0, 0 )
clip_contents = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
enabled_focus_mode = 2
focus_mode = 2
shortcut = null
group = null
text = "START"

74
test-project/scenes/Main.tscn Executable file → Normal file
View File

@@ -1,68 +1,46 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=5 format=3 uid="uid://bo3no7bm4rb0n"]
[ext_resource path="res://scripts/Main.gd" type="Script" id=1]
[ext_resource path="res://scenes/Game.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/HUD.tscn" type="PackedScene" id=3]
[ext_resource type="Script" path="res://scripts/Main.gd" id="1"]
[ext_resource type="PackedScene" path="res://scenes/Game.tscn" id="2"]
[ext_resource type="PackedScene" path="res://scenes/HUD.tscn" id="3"]
[sub_resource type="Curve2D" id=1]
bake_interval = 5.0
[sub_resource type="Curve2D" id="1"]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 18.8947, 55.4928, 0, 0, 0, 0, -269.905, -419.567 )
"points": PackedVector2Array(0, 0, 0, 0, 18.8947, 55.4928, 0, 0, 0, 0, -269.905, -419.567)
}
point_count = 2
[node name="Main" type="Node2D"]
script = ExtResource( 1 )
script = ExtResource("1")
[node name="Game" parent="." instance=ExtResource( 2 )]
[node name="Game" parent="." instance=ExtResource("2")]
[node name="Path2D" type="Path2D" parent="."]
editor/display_folded = true
self_modulate = Color( 0.5, 0.6, 1, 0.7 )
position = Vector2( 460.871, 779.989 )
self_modulate = Color(0.5, 0.6, 1, 0.7)
position = Vector2(460.871, 779.989)
rotation = -3.14159
scale = Vector2( 2.52308, -0.891921 )
curve = SubResource( 1 )
scale = Vector2(2.52308, -0.891921)
curve = SubResource("1")
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
position = Vector2( -17.0181, -3.58169 )
offset = 69.1956
h_offset = 0.0
v_offset = 0.0
rotate = false
cubic_interp = true
position = Vector2(18.8947, 55.4928)
rotation = -2.11702
loop = false
lookahead = 4.0
[node name="MenuCamera" type="Camera2D" parent="Path2D/PathFollow2D"]
position = Vector2( 21.2, 58.5266 )
anchor_mode = 1
rotating = false
current = true
zoom = Vector2( 0.5, 0.5 )
limit_left = -10000000
limit_top = -10000000
limit_right = 10000000
limit_bottom = 10000000
limit_smoothed = false
drag_margin_h_enabled = true
drag_margin_v_enabled = true
smoothing_enabled = false
smoothing_speed = 5.0
offset_v = 0.0
offset_h = 0.0
drag_margin_left = 0.2
drag_margin_top = 0.2
drag_margin_right = 0.2
drag_margin_bottom = 0.2
editor_draw_screen = true
position = Vector2(21.2, 58.5266)
zoom = Vector2(0.5, 0.5)
drag_horizontal_enabled = true
drag_vertical_enabled = true
editor_draw_limits = true
editor_draw_drag_margin = true
[node name="HUD" parent="." instance=ExtResource( 3 )]
margin_left = 625.0
margin_top = 820.0
margin_right = 625.0
margin_bottom = 820.0
[node name="HUD" parent="." instance=ExtResource("3")]
layout_mode = 3
anchors_preset = 15
offset_left = 625.0
offset_top = 820.0
offset_right = 625.0
offset_bottom = 820.0
[connection signal="start_zoom_out" from="." to="." method="_on_Main_start_zoom_out"]

View File

@@ -2,7 +2,7 @@
[ext_resource path="res://scripts/Player.gd" type="Script" id=1]
[ext_resource path="res://scenes/Cannon.tscn" type="PackedScene" id=2]
[ext_resource path="res://resources/img/cat0.png" type="Texture" id=3]
[ext_resource path="res://resources/img/cat0.png" type="Texture2D" id=3]
[sub_resource type="CapsuleShape2D" id=1]
@@ -18,11 +18,11 @@ script = ExtResource( 1 )
[node name="Cannon" parent="." instance=ExtResource( 2 )]
position = Vector2( -50.0759, 40.2842 )
[node name="Sprite" type="Sprite" parent="."]
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 3 )
[node name="Body" type="KinematicBody2D" parent="."]
[node name="Body" type="CharacterBody2D" parent="."]
input_pickable = false
collision_layer = 1
collision_mask = 1

56
test-project/scenes/Projectile.tscn Executable file → Normal file
View File

@@ -1,65 +1,47 @@
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=7 format=3 uid="uid://dwr8aulhrbt85"]
[ext_resource path="res://scripts/Projectile.gd" type="Script" id=1]
[ext_resource path="res://scripts/ColoredEntity.gd" type="Script" id=2]
[ext_resource path="res://resources/img/missile-placeholder.png" type="Texture" id=3]
[ext_resource type="Script" path="res://scripts/Projectile.gd" id="1"]
[ext_resource type="Script" path="res://scripts/ColoredEntity.gd" id="2"]
[ext_resource type="Texture2D" uid="uid://my3jd38hyc7k" path="res://resources/img/missile-placeholder.png" id="3"]
[sub_resource type="RectangleShape2D" id=1]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_13bxk"]
custom_solver_bias = 0.0
extents = Vector2( 24, 24 )
[sub_resource type="RectangleShape2D" id="1"]
size = Vector2(48, 48)
[sub_resource type="CircleShape2D" id=2]
custom_solver_bias = 0.0
[sub_resource type="CircleShape2D" id="2"]
radius = 143.093
[node name="Projectile" type="RigidBody2D"]
input_pickable = false
collision_layer = 0
collision_mask = 0
mode = 0
mass = 3.0
gravity_scale = 1.0
custom_integrator = false
continuous_cd = 0
contacts_reported = 0
contact_monitor = false
sleeping = false
can_sleep = true
linear_velocity = Vector2( 0, 0 )
physics_material_override = SubResource("PhysicsMaterial_13bxk")
linear_damp = -1.0
angular_velocity = 0.0
angular_damp = 100.0
script = ExtResource( 1 )
script = ExtResource("1")
[node name="Mask" type="Node2D" parent="."]
script = ExtResource( 2 )
script = ExtResource("2")
[node name="Sprite" type="Sprite" parent="Mask"]
texture = ExtResource( 3 )
[node name="Sprite2D" type="Sprite2D" parent="Mask"]
texture = ExtResource("3")
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
shape = SubResource("1")
[node name="VisibilityNotifier" type="VisibilityNotifier2D" parent="."]
rect = Rect2( -12, -12, 22, 24 )
[node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier2D" parent="."]
rect = Rect2(-12, -12, 22, 24)
[node name="ExplosionArea" type="Area2D" parent="."]
input_pickable = true
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
collision_layer = 0
collision_mask = 0
audio_bus_override = false
audio_bus_name = "Master"
gravity = 98.0
[node name="ExplosionShape" type="CollisionShape2D" parent="ExplosionArea"]
shape = SubResource( 2 )
shape = SubResource("2")
[connection signal="body_entered" from="." to="." method="_on_Projectile_body_entered"]
[connection signal="screen_exited" from="VisibilityNotifier" to="." method="_on_VisibilityNotifier2D_screen_exited"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier3D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
[connection signal="body_entered" from="ExplosionArea" to="." method="_on_ExplosionArea_body_entered"]
[connection signal="body_exited" from="ExplosionArea" to="." method="_on_ExplosionArea_body_exited"]

14
test-project/scripts/Cannon.gd Executable file → Normal file
View File

@@ -1,6 +1,6 @@
extends "res://scripts/ColoredEntity.gd"
onready var Bullet: PackedScene = preload("res://scenes/Projectile.tscn")
@onready var Bullet: PackedScene = preload("res://scenes/Projectile.tscn")
const RATE_OF_CHANGE: float = 0.9
const UPPER_LIMIT: int = -89
const LOWER_LIMIT: int = -5
@@ -11,8 +11,8 @@ func _ready():
self.highlight()
func _process(delta):
$Sprite.set_rotation(deg2rad(self.angle))
$Sprite.rect_size.y = 24
$Sprite2D.set_rotation(deg_to_rad(self.angle))
$Sprite2D.size.y = 24
func _input(event):
if Input.is_action_pressed("ui_up"):
@@ -30,10 +30,10 @@ func move_down() -> void:
func shoot() -> void:
if $FireCooldown.time_left == 0:
var NewBullet = Bullet.instance()
NewBullet.global_position = $Sprite/CannonTip.global_position
var NewBullet = Bullet.instantiate()
NewBullet.global_position = $Sprite2D/CannonTip.global_position
NewBullet.rotation_degrees = self.angle
var at: Vector2 = $Sprite/CannonTip.global_position - $Sprite/CannonBase.global_position
var at: Vector2 = $Sprite2D/CannonTip.global_position - $Sprite2D/CannonBase.global_position
NewBullet.shoot(at)
var BulletSprite = NewBullet.get_node("Mask")
@@ -42,7 +42,7 @@ func shoot() -> void:
else:
BulletSprite.lowlight()
NewBullet.setup(GLOBAL.BULLET, GLOBAL.BULLET_SPEED)
NewBullet.setup(GLOBAL.SpriteType.BULLET, GLOBAL.BULLET_SPEED)
NewBullet.update_collision_layer()
$Projectiles.add_child(NewBullet)
$FireCooldown.start()

10
test-project/scripts/EnemyGenerator.gd Executable file → Normal file
View File

@@ -1,6 +1,6 @@
extends Node2D
onready var EnemyScene: PackedScene = preload("res://scenes/Projectile.tscn")
@onready var EnemyScene: PackedScene = preload("res://scenes/Projectile.tscn")
signal start
signal stop
@@ -11,16 +11,16 @@ func _ready():
self.emit_signal("stop")
func setup_enemy() -> void:
self.Enemy = EnemyScene.instance()
Enemy.setup(GLOBAL.MISSILE, GLOBAL.MISSILE_SPEED["max"])
self.Enemy = EnemyScene.instantiate()
Enemy.setup(GLOBAL.SpriteType.MISSILE, GLOBAL.MISSILE_SPEED["max"])
func spawn_and_shoot_enemy() -> void:
var Duplicate = Enemy.duplicate(Node.DUPLICATE_USE_INSTANCING)
var Duplicate = Enemy.duplicate(Node.DUPLICATE_USE_INSTANTIATION)
Duplicate.set_random_color()
Duplicate.update_collision_layer()
$Enemies.add_child(Duplicate)
$SpawnArea/SpawnLocation.set_offset(randi())
$SpawnArea/SpawnLocation.set_h_offset(randi())
Duplicate.global_position = $SpawnArea/SpawnLocation.position
var direction: Vector2 = (Vector2(0, 1080) - Duplicate.global_position).normalized()

View File

@@ -5,7 +5,7 @@ signal start_zoom_out
const ZOOM_DELTA: float = 0.2
const MOVE_DELTA: float = 0.353
onready var camera: Camera2D = $Path2D/PathFollow2D/MenuCamera
@onready var camera: Camera2D = $Path2D/PathFollow2D/MenuCamera
var camera_zooming: bool = false
func _process(delta: float):
@@ -19,7 +19,7 @@ func zoom_out_proccess(delta: float) -> void:
else:
self.camera_zooming = false
$Path2D/PathFollow2D.unit_offset += delta * MOVE_DELTA
$Path2D/PathFollow2D.progress_ratio += delta * MOVE_DELTA
func _on_Main_start_zoom_out():
self.camera_zooming = true

32
test-project/scripts/Projectile.gd Executable file → Normal file
View File

@@ -1,7 +1,7 @@
extends RigidBody2D
var MissileSprite: Texture = load("res://resources/img/missile-placeholder.png")
var BulletSprite: Texture = load("res://resources/img/bullet-placeholder.png")
var MissileSprite: Texture2D = load("res://resources/img/missile-placeholder.png")
var BulletSprite: Texture2D = load("res://resources/img/bullet-placeholder.png")
var bodies_in_area: Array = []
var sprite_type: int
@@ -10,20 +10,20 @@ var armed: bool = false
func _ready():
self.gravity_scale = 0.0
self.friction = 0
self.physics_material_override.friction = 0.0
self.contact_monitor = true
self.contacts_reported = 1
self.max_contacts_reported = 1
func setup(sprite_type: int, speed: float) -> void:
self.sprite_type = sprite_type
self.speed = speed
if sprite_type == GLOBAL.BULLET:
$Mask/Sprite.set_texture(self.BulletSprite)
if sprite_type == GLOBAL.SpriteType.BULLET:
$Mask/Sprite2D.set_texture(self.BulletSprite)
self.armed = true
$ExplosionArea/ExplosionShape.disabled = false
else:
$Mask/Sprite.set_texture(self.MissileSprite)
$Mask/Sprite2D.set_texture(self.MissileSprite)
func shoot(at: Vector2) -> void:
var direction = (at - self.global_position)
@@ -31,22 +31,22 @@ func shoot(at: Vector2) -> void:
func shoot_missile(at: Vector2) -> void:
var direction = (at - self.global_position)
self.add_central_force(at * GLOBAL.MISSILE_SPEED["max"])
self.apply_central_force(at * GLOBAL.MISSILE_SPEED["max"])
func set_random_color() -> void:
$Mask.set_random_color()
func update_collision_layer() -> void:
if $Mask.highlighted:
self.set_collision_layer_bit(GLOBAL.HIGH_COLLISION, 1)
self.set_collision_mask_bit(GLOBAL.HIGH_COLLISION, 1)
$ExplosionArea.set_collision_layer_bit(GLOBAL.HIGH_COLLISION, 1)
$ExplosionArea.set_collision_mask_bit(GLOBAL.HIGH_COLLISION, 1)
self.set_collision_layer_value(GLOBAL.HIGH_COLLISION, 1)
self.set_collision_mask_value(GLOBAL.HIGH_COLLISION, 1)
$ExplosionArea.set_collision_layer_value(GLOBAL.HIGH_COLLISION, 1)
$ExplosionArea.set_collision_mask_value(GLOBAL.HIGH_COLLISION, 1)
else:
self.set_collision_layer_bit(GLOBAL.LOW_COLLISION, 1)
self.set_collision_mask_bit(GLOBAL.LOW_COLLISION, 1)
$ExplosionArea.set_collision_layer_bit(GLOBAL.LOW_COLLISION, 1)
$ExplosionArea.set_collision_mask_bit(GLOBAL.LOW_COLLISION, 1)
self.set_collision_layer_value(GLOBAL.LOW_COLLISION, 1)
self.set_collision_mask_value(GLOBAL.LOW_COLLISION, 1)
$ExplosionArea.set_collision_layer_value(GLOBAL.LOW_COLLISION, 1)
$ExplosionArea.set_collision_mask_value(GLOBAL.LOW_COLLISION, 1)
# --- Signals ---