diff --git a/assets/controls/flatDarkA.png b/assets/controls/flatDarkA.png new file mode 100644 index 0000000..1a5c1ae Binary files /dev/null and b/assets/controls/flatDarkA.png differ diff --git a/assets/controls/flatDarkA.png.import b/assets/controls/flatDarkA.png.import new file mode 100644 index 0000000..24df0a3 --- /dev/null +++ b/assets/controls/flatDarkA.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://vujn5y4v732w" +path="res://.godot/imported/flatDarkA.png-e8fcfe6d3936e7a5d681bd0e5e45aae2.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatDarkA.png" +dest_files=["res://.godot/imported/flatDarkA.png-e8fcfe6d3936e7a5d681bd0e5e45aae2.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatDarkB.png b/assets/controls/flatDarkB.png new file mode 100644 index 0000000..a696925 Binary files /dev/null and b/assets/controls/flatDarkB.png differ diff --git a/assets/controls/flatDarkB.png.import b/assets/controls/flatDarkB.png.import new file mode 100644 index 0000000..b135c11 --- /dev/null +++ b/assets/controls/flatDarkB.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://csmnti2si6uth" +path="res://.godot/imported/flatDarkB.png-54d11fc27dc8b1091e12acec5401f9e0.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatDarkB.png" +dest_files=["res://.godot/imported/flatDarkB.png-54d11fc27dc8b1091e12acec5401f9e0.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatDarkDown.png b/assets/controls/flatDarkDown.png new file mode 100644 index 0000000..35f000a Binary files /dev/null and b/assets/controls/flatDarkDown.png differ diff --git a/assets/controls/flatDarkDown.png.import b/assets/controls/flatDarkDown.png.import new file mode 100644 index 0000000..251ddba --- /dev/null +++ b/assets/controls/flatDarkDown.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dnp7jtypbl5fd" +path="res://.godot/imported/flatDarkDown.png-015ba7fc4eaf832ed5bb675c8ad9c765.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatDarkDown.png" +dest_files=["res://.godot/imported/flatDarkDown.png-015ba7fc4eaf832ed5bb675c8ad9c765.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatDarkLeft.png b/assets/controls/flatDarkLeft.png new file mode 100644 index 0000000..94c8227 Binary files /dev/null and b/assets/controls/flatDarkLeft.png differ diff --git a/assets/controls/flatDarkLeft.png.import b/assets/controls/flatDarkLeft.png.import new file mode 100644 index 0000000..7a00da1 --- /dev/null +++ b/assets/controls/flatDarkLeft.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://svp2vgo37htu" +path="res://.godot/imported/flatDarkLeft.png-a8f670b599bb4a2a49cb06335af8614b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatDarkLeft.png" +dest_files=["res://.godot/imported/flatDarkLeft.png-a8f670b599bb4a2a49cb06335af8614b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatDarkRight.png b/assets/controls/flatDarkRight.png new file mode 100644 index 0000000..fc5c75d Binary files /dev/null and b/assets/controls/flatDarkRight.png differ diff --git a/assets/controls/flatDarkRight.png.import b/assets/controls/flatDarkRight.png.import new file mode 100644 index 0000000..8c54a1e --- /dev/null +++ b/assets/controls/flatDarkRight.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cwxk6km6rqwl3" +path="res://.godot/imported/flatDarkRight.png-482440e3ee7d656161b860db319aec8e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatDarkRight.png" +dest_files=["res://.godot/imported/flatDarkRight.png-482440e3ee7d656161b860db319aec8e.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatDarkUp.png b/assets/controls/flatDarkUp.png new file mode 100644 index 0000000..7e5dc75 Binary files /dev/null and b/assets/controls/flatDarkUp.png differ diff --git a/assets/controls/flatDarkUp.png.import b/assets/controls/flatDarkUp.png.import new file mode 100644 index 0000000..85c38db --- /dev/null +++ b/assets/controls/flatDarkUp.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://uib6aoa0jw6w" +path="res://.godot/imported/flatDarkUp.png-6446423be785d9ad806028ffd83fb926.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatDarkUp.png" +dest_files=["res://.godot/imported/flatDarkUp.png-6446423be785d9ad806028ffd83fb926.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightA.png b/assets/controls/flatLightA.png new file mode 100644 index 0000000..7e66138 Binary files /dev/null and b/assets/controls/flatLightA.png differ diff --git a/assets/controls/flatLightA.png.import b/assets/controls/flatLightA.png.import new file mode 100644 index 0000000..c896c21 --- /dev/null +++ b/assets/controls/flatLightA.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://crocudarwwiec" +path="res://.godot/imported/flatLightA.png-13c0106a0029e003fabb7a508c013a3a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightA.png" +dest_files=["res://.godot/imported/flatLightA.png-13c0106a0029e003fabb7a508c013a3a.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightB.png b/assets/controls/flatLightB.png new file mode 100644 index 0000000..2e38c2f Binary files /dev/null and b/assets/controls/flatLightB.png differ diff --git a/assets/controls/flatLightB.png.import b/assets/controls/flatLightB.png.import new file mode 100644 index 0000000..29c844e --- /dev/null +++ b/assets/controls/flatLightB.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cqvf6pc6yekku" +path="res://.godot/imported/flatLightB.png-efad50bd67fa14fc3e61affea3e7850f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightB.png" +dest_files=["res://.godot/imported/flatLightB.png-efad50bd67fa14fc3e61affea3e7850f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightDown.png b/assets/controls/flatLightDown.png new file mode 100644 index 0000000..3ba108f Binary files /dev/null and b/assets/controls/flatLightDown.png differ diff --git a/assets/controls/flatLightDown.png.import b/assets/controls/flatLightDown.png.import new file mode 100644 index 0000000..57f7dc4 --- /dev/null +++ b/assets/controls/flatLightDown.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cbieuf3n6iqko" +path="res://.godot/imported/flatLightDown.png-fc02fbb80ca7839a8a1b41ce1ee02bd4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightDown.png" +dest_files=["res://.godot/imported/flatLightDown.png-fc02fbb80ca7839a8a1b41ce1ee02bd4.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightLeft.png b/assets/controls/flatLightLeft.png new file mode 100644 index 0000000..ff2e218 Binary files /dev/null and b/assets/controls/flatLightLeft.png differ diff --git a/assets/controls/flatLightLeft.png.import b/assets/controls/flatLightLeft.png.import new file mode 100644 index 0000000..4638782 --- /dev/null +++ b/assets/controls/flatLightLeft.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c6ic03u2yvnk6" +path="res://.godot/imported/flatLightLeft.png-7417751073a90d250b770e32ab2c47c9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightLeft.png" +dest_files=["res://.godot/imported/flatLightLeft.png-7417751073a90d250b770e32ab2c47c9.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightRight.png b/assets/controls/flatLightRight.png new file mode 100644 index 0000000..5beac4f Binary files /dev/null and b/assets/controls/flatLightRight.png differ diff --git a/assets/controls/flatLightRight.png.import b/assets/controls/flatLightRight.png.import new file mode 100644 index 0000000..ea2fcbc --- /dev/null +++ b/assets/controls/flatLightRight.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dsght3iwomray" +path="res://.godot/imported/flatLightRight.png-084b80e4bde0175c530c7761108ec3b7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightRight.png" +dest_files=["res://.godot/imported/flatLightRight.png-084b80e4bde0175c530c7761108ec3b7.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/controls/flatLightUp.png b/assets/controls/flatLightUp.png new file mode 100644 index 0000000..9f3ac22 Binary files /dev/null and b/assets/controls/flatLightUp.png differ diff --git a/assets/controls/flatLightUp.png.import b/assets/controls/flatLightUp.png.import new file mode 100644 index 0000000..630a156 --- /dev/null +++ b/assets/controls/flatLightUp.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://djok3hg16clb2" +path="res://.godot/imported/flatLightUp.png-e0999bebff59f3ba425854735cb865dd.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/controls/flatLightUp.png" +dest_files=["res://.godot/imported/flatLightUp.png-e0999bebff59f3ba425854735cb865dd.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/hud.tscn b/hud.tscn index 802f9ca..becb27c 100644 --- a/hud.tscn +++ b/hud.tscn @@ -1,7 +1,10 @@ -[gd_scene load_steps=3 format=3 uid="uid://jt80gv02u4f2"] +[gd_scene load_steps=6 format=3 uid="uid://jt80gv02u4f2"] [ext_resource type="Script" path="res://scripts/hud.gd" id="1_8msyy"] [ext_resource type="Texture2D" uid="uid://d3um1i1lgu153" path="res://assets/heart.png" id="2_yyptq"] +[ext_resource type="Texture2D" uid="uid://c6ic03u2yvnk6" path="res://assets/controls/flatLightLeft.png" id="3_cxgb6"] +[ext_resource type="Texture2D" uid="uid://dsght3iwomray" path="res://assets/controls/flatLightRight.png" id="4_x1c4s"] +[ext_resource type="Texture2D" uid="uid://crocudarwwiec" path="res://assets/controls/flatLightA.png" id="5_p3p2e"] [node name="HUD" type="CanvasLayer"] script = ExtResource("1_8msyy") @@ -98,3 +101,30 @@ offset_bottom = 284.0 texture = ExtResource("2_yyptq") expand_mode = 1 stretch_mode = 1 + +[node name="MovePlayerLeft" type="TouchScreenButton" parent="."] +texture_filter = 1 +position = Vector2(80, 845) +scale = Vector2(2.3, 2.3) +texture_normal = ExtResource("3_cxgb6") +passby_press = true +action = "player_1_left" +visibility_mode = 1 + +[node name="MovePlayerRight" type="TouchScreenButton" parent="."] +texture_filter = 1 +position = Vector2(400, 845) +scale = Vector2(2.3, 2.3) +texture_normal = ExtResource("4_x1c4s") +passby_press = true +action = "player_1_right" +visibility_mode = 1 + +[node name="Jump" type="TouchScreenButton" parent="."] +texture_filter = 1 +position = Vector2(1695, 845) +scale = Vector2(2.3, 2.3) +texture_normal = ExtResource("5_p3p2e") +passby_press = true +action = "player_1_jump" +visibility_mode = 1 diff --git a/scripts/hud.gd b/scripts/hud.gd index d3ea7b2..e004ffa 100644 --- a/scripts/hud.gd +++ b/scripts/hud.gd @@ -31,6 +31,7 @@ func _unhandled_input(event): event is InputEventKey or event is InputEventJoypadButton or event is InputEventJoypadMotion + or event is InputEventScreenTouch ) and %Start.is_visible_in_tree() ):