Browse Source

Attempt to fix errors with spaces/indentation in Game.gd

master
Abheek Dhawan 3 years ago
parent
commit
a204be8edd
  1. 2
      Game Scenes/Main Menu.tscn
  2. 2
      Scripts/Game.gd
  3. 61
      export_presets.cfg
  4. 1
      project.godot

2
Game Scenes/Main Menu.tscn

@ -131,7 +131,7 @@ position = Vector2( 0, -576 )
scale = Vector2( 3, 3 ) scale = Vector2( 3, 3 )
frames = SubResource( 8 ) frames = SubResource( 8 )
animation = "spin" animation = "spin"
frame = 1 frame = 3
playing = true playing = true
[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer/CenterContainer/Coin"] [node name="Label" type="Label" parent="HBoxContainer/VBoxContainer/CenterContainer/Coin"]

2
Scripts/Game.gd

@ -42,7 +42,7 @@ func _process(delta):
if has_node("Rocket"): if has_node("Rocket"):
var asteroid = asteroidObj.instance() var asteroid = asteroidObj.instance()
add_child(asteroid) add_child(asteroid)
spawnx = rand_range($Rocket.position.x - get_viewport_rect().size.x, $Rocket.position.x + get_viewport_rect().size.x) var spawnx = rand_range($Rocket.position.x - get_viewport_rect().size.x, $Rocket.position.x + get_viewport_rect().size.x)
asteroid.position.x = spawnx asteroid.position.x = spawnx
if (spawnx < $Rocket.position.x - get_viewport_rect().size.x/2 or spawnx > $Rocket.position.x + get_viewport_rect().size.x/2): if (spawnx < $Rocket.position.x - get_viewport_rect().size.x/2 or spawnx > $Rocket.position.x + get_viewport_rect().size.x/2):
asteroid.position.y = rand_range($Rocket.position.y + get_viewport_rect().size.y/2, $Rocket.position.y - 2 * get_viewport_rect().size.y) asteroid.position.y = rand_range($Rocket.position.y + get_viewport_rect().size.y/2, $Rocket.position.y - 2 * get_viewport_rect().size.y)

61
export_presets.cfg

@ -8,7 +8,6 @@ export_filter="all_resources"
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="../spacescape.dmg" export_path="../spacescape.dmg"
patch_list=PoolStringArray( )
script_export_mode=1 script_export_mode=1
script_encryption_key="" script_encryption_key=""
@ -31,7 +30,28 @@ codesign/enable=false
codesign/identity="" codesign/identity=""
codesign/timestamp=true codesign/timestamp=true
codesign/hardened_runtime=true codesign/hardened_runtime=true
codesign/entitlements="" codesign/replace_existing_signature=true
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/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/custom_options=PoolStringArray( ) codesign/custom_options=PoolStringArray( )
texture_format/s3tc=true texture_format/s3tc=true
texture_format/etc=false texture_format/etc=false
@ -47,21 +67,20 @@ export_filter="all_resources"
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="Builds/Windows 10/spacescape.exe" export_path="Builds/Windows 10/spacescape.exe"
patch_list=PoolStringArray( )
script_export_mode=1 script_export_mode=1
script_encryption_key="" script_encryption_key=""
[preset.1.options] [preset.1.options]
custom_template/debug=""
custom_template/release=""
binary_format/64_bits=true
binary_format/embed_pck=true
texture_format/bptc=false texture_format/bptc=false
texture_format/s3tc=true texture_format/s3tc=true
texture_format/etc=false texture_format/etc=false
texture_format/etc2=false texture_format/etc2=false
texture_format/no_bptc_fallbacks=true texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true
binary_format/embed_pck=true
custom_template/release=""
custom_template/debug=""
codesign/enable=false codesign/enable=false
codesign/identity="" codesign/identity=""
codesign/password="" codesign/password=""
@ -89,18 +108,20 @@ export_filter="all_resources"
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="Builds/HTML/Build 3 (GLES2)/index.html" export_path="Builds/HTML/Build 3 (GLES2)/index.html"
patch_list=PoolStringArray( )
script_export_mode=1 script_export_mode=1
script_encryption_key="" script_encryption_key=""
[preset.2.options] [preset.2.options]
custom_template/debug=""
custom_template/release=""
variant/export_type=0
vram_texture_compression/for_desktop=true vram_texture_compression/for_desktop=true
vram_texture_compression/for_mobile=false vram_texture_compression/for_mobile=false
html/custom_html_shell="" html/custom_html_shell=""
html/head_include="" html/head_include=""
custom_template/release="" html/canvas_resize_policy=2
custom_template/debug="" html/experimental_virtual_keyboard=false
[preset.3] [preset.3]
@ -112,21 +133,20 @@ export_filter="all_resources"
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="Builds/Linux/spacescape.x86_64" export_path="Builds/Linux/spacescape.x86_64"
patch_list=PoolStringArray( )
script_export_mode=1 script_export_mode=1
script_encryption_key="" script_encryption_key=""
[preset.3.options] [preset.3.options]
custom_template/debug=""
custom_template/release=""
binary_format/64_bits=true
binary_format/embed_pck=true
texture_format/bptc=false texture_format/bptc=false
texture_format/s3tc=true texture_format/s3tc=true
texture_format/etc=false texture_format/etc=false
texture_format/etc2=false texture_format/etc2=false
texture_format/no_bptc_fallbacks=true texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true
binary_format/embed_pck=true
custom_template/release=""
custom_template/debug=""
[preset.4] [preset.4]
@ -137,8 +157,7 @@ custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="../iOS Builds/2.9/astervoid.ipa" export_path="Builds/iOS/2.10/astervoid.ipa"
patch_list=PoolStringArray( )
script_export_mode=1 script_export_mode=1
script_encryption_key="" script_encryption_key=""
@ -146,6 +165,8 @@ script_encryption_key=""
custom_template/debug="" custom_template/debug=""
custom_template/release="" custom_template/release=""
architectures/armv7=false
architectures/arm64=true
application/app_store_team_id="W7MPRYQYBM" application/app_store_team_id="W7MPRYQYBM"
application/provisioning_profile_uuid_debug="" application/provisioning_profile_uuid_debug=""
application/code_sign_identity_debug="iPhone Developer" application/code_sign_identity_debug="iPhone Developer"
@ -160,11 +181,7 @@ application/signature=""
application/short_version="2.0" application/short_version="2.0"
application/version="2.9" application/version="2.9"
application/copyright="2021 AD Awesome Games" application/copyright="2021 AD Awesome Games"
capabilities/arkit=false
capabilities/camera=false
capabilities/access_wifi=false capabilities/access_wifi=false
capabilities/game_center=false
capabilities/in_app_purchases=false
capabilities/push_notifications=false capabilities/push_notifications=false
user_data/accessible_from_files_app=false user_data/accessible_from_files_app=false
user_data/accessible_from_itunes_sharing=false user_data/accessible_from_itunes_sharing=false
@ -200,5 +217,3 @@ portrait_launch_screens/iphone_1125x2436=""
portrait_launch_screens/ipad_768x1024="" portrait_launch_screens/ipad_768x1024=""
portrait_launch_screens/ipad_1536x2048="" portrait_launch_screens/ipad_1536x2048=""
portrait_launch_screens/iphone_1242x2208="" portrait_launch_screens/iphone_1242x2208=""
architectures/armv7=false
architectures/arm64=true

1
project.godot

@ -10,7 +10,6 @@ config_version=4
_global_script_classes=[ ] _global_script_classes=[ ]
_global_script_class_icons={ _global_script_class_icons={
} }
[application] [application]

Loading…
Cancel
Save