l---------.github/workflows/export.yml45
-rw-r--r--SwipeHandler.gd32
-rw-r--r--export_presets.cfg57
l---------exports/release.sh1
4 files changed, 0 insertions, 135 deletions
diff --git a/.github/workflows/export.yml b/.github/workflows/export.yml
deleted file mode 120000
index 1d64eab..0000000
--- a/.github/workflows/export.yml
+++ /dev/null
@@ -1,45 +0,0 @@
-# Whenever a push is made to the master branch then run the job
-on:
- push:
- branches:
- - main
-
-jobs:
- # job id, can be anything
- export_game:
- # Always use ubuntu-latest for this action
- runs-on: ubuntu-latest
- # Job name, can be anything
- name: export
- steps:
- # Always include the checkout step so that
- # your project is available for Godot to export
- - name: checkout
- uses: actions/[email protected]
- - name: Set up JDK 8
- uses: actions/setup-java@v3
- with:
- java-version: '8'
- distribution: adopt
-
- - name: Setup Android SDK
- uses: android-actions/setup-android@v2
- # Ensure that you get the entire project history
- with:
- fetch-depth: 0
- - name: create keystore
- run: |
- keytool -keyalg RSA -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999 -deststoretype pkcs12
- mv debug.keystore /tmp/debug.keystore
- - name: export game
- # Use latest version (see releases for all versions)
-
- uses: firebelley/[email protected]
- with:
- # Defining all the required inputs
- # I used the mono version of Godot in this example
- godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/3.4.2/Godot_v3.4.2-stable_linux_headless.64.zip
- godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/3.4.2/Godot_v3.4.2-stable_export_templates.tpz
- relative_project_path: ./
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/SwipeHandler.gd b/SwipeHandler.gd
index d6a5cd3..362ebf7 100644
--- a/SwipeHandler.gd
+++ b/SwipeHandler.gd
@@ -9,29 +9,6 @@ var swiping := false
export var swipe_limit : float
export var touch_y_limit : int
-var swipe_start
-
-var quick_trigger = 150
-
-func _ready():
- set_process(not OS.has_touchscreen_ui_hint())
- set_process_input(OS.has_touchscreen_ui_hint())
-
-func _input(event):
- if event is InputEventScreenTouch:
- if event.pressed:
- swipe_start = event.position
- elif swipe_start != null:
- var distance = swipe_start.distance_to(event.position)
- if distance > swipe_limit:
- calculate_swipe(swipe_start.direction_to(event.position))
- if event is InputEventScreenDrag:
- if abs(event.speed.x) > quick_trigger || abs(event.speed.y) > quick_trigger:
- if swipe_start != null:
- calculate_swipe((swipe_start.direction_to(event.position)))
- print(swipe_start.direction_to(event.position))
- swipe_start = null
-
func _process(_delta):
if Input.is_action_just_pressed("touch"):
if ( get_global_mouse_position().y > touch_y_limit):
@@ -59,12 +36,3 @@ func calculate_direction():
emit_signal("swiped", Vector2.LEFT)
-func calculate_swipe(dist):
- if dist.x > .5:
- emit_signal("swiped", Vector2.RIGHT)
- elif dist.x < -.5:
- emit_signal("swiped", Vector2.LEFT)
- elif dist.y > .5:
- emit_signal("swiped", Vector2.DOWN)
- elif dist.y < -.5:
- emit_signal("swiped", Vector2.UP) \ No newline at end of file
diff --git a/export_presets.cfg b/export_presets.cfg
deleted file mode 100644
index e50e75b..0000000
--- a/export_presets.cfg
+++ /dev/null
@@ -1,57 +0,0 @@
-[preset.0]
-
-name="Mac"
-platform="Mac OSX"
-runnable=true
-custom_features=""
-export_filter="all_resources"
-include_filter=""
-exclude_filter=""
-export_path="exports/mac.zip"
-script_export_mode=1
-script_encryption_key=""
-
-[preset.0.options]
-
-custom_template/debug=""
-custom_template/release=""
-application/name="2048"
-application/info="heck yeah"
-application/icon=""
-application/identifier="bendn.2048"
-application/signature=""
-application/app_category="Games"
-application/short_version="1.0"
-application/version="1.0"
-application/copyright=""
-display/high_res=true
-privacy/camera_usage_description=""
-privacy/microphone_usage_description=""
-texture_format/s3tc=true
-texture_format/etc=false
-texture_format/etc2=false
-
-[preset.1]
-
-name="Linux"
-platform="Linux/X11"
-runnable=true
-custom_features=""
-export_filter="all_resources"
-include_filter=""
-exclude_filter=""
-export_path="exports/linux..zip.x86_64"
-script_export_mode=1
-script_encryption_key=""
-
-[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/s3tc=true
-texture_format/etc=false
-texture_format/etc2=false
-texture_format/no_bptc_fallbacks=true
diff --git a/exports/release.sh b/exports/release.sh
deleted file mode 120000
index 5577000..0000000
--- a/exports/release.sh
+++ /dev/null
@@ -1 +0,0 @@
-/home/bendn/release/release.sh \ No newline at end of file