From 20456be75b63c5d0605f874fce4228a2557308a3 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Tue, 3 Nov 2020 10:35:18 -0600 Subject: [PATCH] Add coins Added coins so that users have a reason to move around more --- .gitignore | 1 + Game Scenes/Game.tscn | 2 +- Images and Anims/.DS_Store | Bin 6148 -> 0 bytes Scripts/AsteroidSpawn.gd | 20 -------------------- export_presets.cfg | 6 +++--- project.godot | 1 - 6 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 Images and Anims/.DS_Store delete mode 100644 Scripts/AsteroidSpawn.gd diff --git a/.gitignore b/.gitignore index accf7bb..f24571e 100644 --- a/.gitignore +++ b/.gitignore @@ -354,6 +354,7 @@ Builds/ # Don't include completely irrelevant .DS_Store files .DS_Store +Images\ and\ Anims/.DS_Store # Don't include deleted files import folder .import/ diff --git a/Game Scenes/Game.tscn b/Game Scenes/Game.tscn index 7e89f1f..3f8adfe 100644 --- a/Game Scenes/Game.tscn +++ b/Game Scenes/Game.tscn @@ -3,7 +3,7 @@ [ext_resource path="res://Objects/Rocket.tscn" type="PackedScene" id=1] [ext_resource path="res://Scripts/Rocket.gd" type="Script" id=2] [ext_resource path="res://Images and Anims/In Game/background.png" type="Texture" id=3] -[ext_resource path="res://Scripts/AsteroidSpawn.gd" type="Script" id=4] +[ext_resource path="res://Scripts/Game.gd" type="Script" id=4] [ext_resource path="res://Scripts/Score.gd" type="Script" id=5] [node name="Game" type="Node2D"] diff --git a/Images and Anims/.DS_Store b/Images and Anims/.DS_Store deleted file mode 100644 index 4215d348bee8f97381c50aeca4bafa1e679fb18d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ5B>Z41E)V2%5EVr(03i`6vTTH)-@DLr2u{ZH*oyWSi3*{} zmOO9PW6$T!YP|*!<{zsWFanqM-k6*U~eijQC`2dhv*UY+yD z?2eEWy>$khfi?pt`Z$&Re|xz8ZwL94GvEvy6$4>hEQ&dgWVy9>ILWn<`bZTKzglr0 j!cI=b^p#Y6NzFoglnyZ&){3-H{6`?u;Eglzrwsf6D3(F@ diff --git a/Scripts/AsteroidSpawn.gd b/Scripts/AsteroidSpawn.gd deleted file mode 100644 index dd804a2..0000000 --- a/Scripts/AsteroidSpawn.gd +++ /dev/null @@ -1,20 +0,0 @@ -extends Node2D - -var time = 0 -var asteroidObj = load("res://Objects/Asteroid.tscn") -var spawnTime -var deltaSpawnTime = 1 - -func _process(delta): - spawnTime = 500/get_viewport_rect().size.x * deltaSpawnTime - time += delta - if time > spawnTime: - time = 0 - if spawnTime > 300/get_viewport_rect().size.x: - deltaSpawnTime *= 0.995 - if has_node("Rocket"): - var asteroid = asteroidObj.instance() - add_child(asteroid) - asteroid.position.x = rand_range($Rocket.position.x - get_viewport_rect().size.x/2, $Rocket.position.x + get_viewport_rect().size.x/2) - asteroid.position.y = rand_range($Rocket.position.y - get_viewport_rect().size.y, $Rocket.position.y - 2 * get_viewport_rect().size.y) - asteroid.rotation = rand_range(0, 6.28) diff --git a/export_presets.cfg b/export_presets.cfg index 0940834..cded969 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -137,7 +137,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="iOS/spacescape2d.ipa" +export_path="Builds/spacescape2d.ipa" patch_list=PoolStringArray( ) script_export_mode=1 script_encryption_key="" @@ -146,7 +146,7 @@ script_encryption_key="" custom_template/debug="" custom_template/release="" -application/app_store_team_id="00112233445566" +application/app_store_team_id="W7MPRYQYBM" application/provisioning_profile_uuid_debug="" application/code_sign_identity_debug="iPhone Developer" application/export_method_debug=1 @@ -159,7 +159,7 @@ application/identifier="com.ADAwesomeGames.SpacEscape2D" application/signature="" application/short_version="1.0" application/version="1.0" -application/copyright="" +application/copyright="2020 AD Awesome Games" capabilities/arkit=false capabilities/camera=false capabilities/access_wifi=false diff --git a/project.godot b/project.godot index f24eaf6..f52f162 100644 --- a/project.godot +++ b/project.godot @@ -18,7 +18,6 @@ _global_script_class_icons={ config/name="SpacEscape" config/description="Simple game based on avoiding asteroids while controlling a rocket." run/main_scene="res://Game Scenes/Game.tscn" -boot_splash/image="res://Images and Anims/Other/icon.png" config/icon="res://Images and Anims/Other/icon.png" [input]