Browse Source

First working mobile prototype

There's still a little lag, but it's going good.
master
Abheek Dhawan 4 years ago
parent
commit
dfe7ed8ad6
  1. 1
      .gitignore
  2. 21
      Scripts/Rocket.gd
  3. 8
      export_presets.cfg

1
.gitignore

@ -357,3 +357,4 @@ Builds/
# Don't include deleted files import folder # Don't include deleted files import folder
.import/ .import/
.iOS/

21
Scripts/Rocket.gd

@ -19,15 +19,16 @@ func _process(delta):
get_node("Collider").queue_free() get_node("Collider").queue_free()
yield(get_tree().create_timer(1.5), "timeout") yield(get_tree().create_timer(1.5), "timeout")
queue_free() queue_free()
get_tree().reload_current_scene() get_tree().reload_current_scene()
if (InputEventScreenTouch.position <= get_viewport_rect().size.x/2): if Input.is_mouse_button_pressed(BUTTON_LEFT):
if angle > -1.5: if (get_viewport().get_mouse_position().x <= get_viewport_rect().size.x/2):
rotate(-0.05) if angle > -1.5:
angle -= 0.05 rotate(-0.05)
elif (InputEventScreenTouch.position > get_viewport_rect().size.x/2): angle -= 0.05
if angle < 1.5: elif (get_viewport().get_mouse_position().x > get_viewport_rect().size.x/2):
rotate(0.05) if angle < 1.5:
angle += 0.05 rotate(0.05)
else: angle += 0.05
else:
rotate(-angle/25) rotate(-angle/25)
angle -= angle/25 angle -= angle/25

8
export_presets.cfg

@ -137,7 +137,7 @@ custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="iOS/index.ipa" export_path="iOS/spacescape2d.ipa"
patch_list=PoolStringArray( ) patch_list=PoolStringArray( )
script_export_mode=1 script_export_mode=1
script_encryption_key="" script_encryption_key=""
@ -172,9 +172,9 @@ privacy/camera_usage_description=""
privacy/microphone_usage_description="" privacy/microphone_usage_description=""
privacy/photolibrary_usage_description="" privacy/photolibrary_usage_description=""
orientation/portrait=true orientation/portrait=true
orientation/landscape_left=true orientation/landscape_left=false
orientation/landscape_right=true orientation/landscape_right=false
orientation/portrait_upside_down=true orientation/portrait_upside_down=false
required_icons/iphone_120x120="res://Images and Anims/Other/icon120.png" required_icons/iphone_120x120="res://Images and Anims/Other/icon120.png"
required_icons/ipad_76x76="res://Images and Anims/Other/icon76.png" required_icons/ipad_76x76="res://Images and Anims/Other/icon76.png"
required_icons/app_store_1024x1024="res://Images and Anims/Other/icon1024.png" required_icons/app_store_1024x1024="res://Images and Anims/Other/icon1024.png"

Loading…
Cancel
Save