Added Basic Touch Controls
This commit is contained in:
parent
307e277eae
commit
f398efdcff
BIN
Action RPG Resources/.DS_Store
vendored
BIN
Action RPG Resources/.DS_Store
vendored
Binary file not shown.
BIN
ActionRPG-HeartBeast/.DS_Store
vendored
BIN
ActionRPG-HeartBeast/.DS_Store
vendored
Binary file not shown.
BIN
ActionRPG-HeartBeast/UI/TouchButtons1.png
Normal file
BIN
ActionRPG-HeartBeast/UI/TouchButtons1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 263 B |
35
ActionRPG-HeartBeast/UI/TouchButtons1.png.import
Normal file
35
ActionRPG-HeartBeast/UI/TouchButtons1.png.import
Normal file
@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/TouchButtons1.png-61db002dc7148133f10efa981b4843c4.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://UI/TouchButtons1.png"
|
||||
dest_files=[ "res://.import/TouchButtons1.png-61db002dc7148133f10efa981b4843c4.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
ActionRPG-HeartBeast/UI/TouchButtons2.png
Normal file
BIN
ActionRPG-HeartBeast/UI/TouchButtons2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 261 B |
35
ActionRPG-HeartBeast/UI/TouchButtons2.png.import
Normal file
35
ActionRPG-HeartBeast/UI/TouchButtons2.png.import
Normal file
@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/TouchButtons2.png-17acf752daaeba13c4dd892a9a83b696.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://UI/TouchButtons2.png"
|
||||
dest_files=[ "res://.import/TouchButtons2.png-17acf752daaeba13c4dd892a9a83b696.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
ActionRPG-HeartBeast/UI/TouchButtons3.png
Normal file
BIN
ActionRPG-HeartBeast/UI/TouchButtons3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 262 B |
35
ActionRPG-HeartBeast/UI/TouchButtons3.png.import
Normal file
35
ActionRPG-HeartBeast/UI/TouchButtons3.png.import
Normal file
@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/TouchButtons3.png-8d9113c5621e05d158461a5b8587a569.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://UI/TouchButtons3.png"
|
||||
dest_files=[ "res://.import/TouchButtons3.png-8d9113c5621e05d158461a5b8587a569.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
ActionRPG-HeartBeast/UI/TouchButtons4.png
Normal file
BIN
ActionRPG-HeartBeast/UI/TouchButtons4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 260 B |
35
ActionRPG-HeartBeast/UI/TouchButtons4.png.import
Normal file
35
ActionRPG-HeartBeast/UI/TouchButtons4.png.import
Normal file
@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/TouchButtons4.png-e9ab46fcaee3536074c1902761cd3845.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://UI/TouchButtons4.png"
|
||||
dest_files=[ "res://.import/TouchButtons4.png-e9ab46fcaee3536074c1902761cd3845.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
ActionRPG-HeartBeast/UI/TouchButtons5.png
Normal file
BIN
ActionRPG-HeartBeast/UI/TouchButtons5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 278 B |
35
ActionRPG-HeartBeast/UI/TouchButtons5.png.import
Normal file
35
ActionRPG-HeartBeast/UI/TouchButtons5.png.import
Normal file
@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/TouchButtons5.png-2db35d4a57a19b391d821bb73c0a76b2.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://UI/TouchButtons5.png"
|
||||
dest_files=[ "res://.import/TouchButtons5.png-2db35d4a57a19b391d821bb73c0a76b2.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
ActionRPG-HeartBeast/UI/TouchButtons6.png
Normal file
BIN
ActionRPG-HeartBeast/UI/TouchButtons6.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 265 B |
35
ActionRPG-HeartBeast/UI/TouchButtons6.png.import
Normal file
35
ActionRPG-HeartBeast/UI/TouchButtons6.png.import
Normal file
@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/TouchButtons6.png-e82b98fedffd326df041409a813c1afe.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://UI/TouchButtons6.png"
|
||||
dest_files=[ "res://.import/TouchButtons6.png-e82b98fedffd326df041409a813c1afe.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=60 format=2]
|
||||
[gd_scene load_steps=61 format=2]
|
||||
|
||||
[ext_resource path="res://World/Bush.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=2]
|
||||
@ -6,6 +6,7 @@
|
||||
[ext_resource path="res://World/DirtTileset.png" type="Texture" id=4]
|
||||
[ext_resource path="res://World/CliffTileset.png" type="Texture" id=5]
|
||||
[ext_resource path="res://World/Grass.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://touch_controls/TouchControls.tscn" type="PackedScene" id=7]
|
||||
|
||||
[sub_resource type="TileSet" id=1]
|
||||
0/name = "DirtTileset.png 0"
|
||||
@ -591,3 +592,9 @@ position = Vector2( 48, 112 )
|
||||
|
||||
[node name="Grass10" parent="YSort/Grass" instance=ExtResource( 6 )]
|
||||
position = Vector2( 128, 121 )
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="TouchControls" parent="Control" instance=ExtResource( 7 )]
|
||||
|
BIN
ActionRPG-HeartBeast/build/.DS_Store
vendored
BIN
ActionRPG-HeartBeast/build/.DS_Store
vendored
Binary file not shown.
BIN
ActionRPG-HeartBeast/build/web/.DS_Store
vendored
BIN
ActionRPG-HeartBeast/build/web/.DS_Store
vendored
Binary file not shown.
Binary file not shown.
@ -139,7 +139,7 @@
|
||||
<script type='text/javascript' src='index.js'></script>
|
||||
<script type='text/javascript'>//<![CDATA[
|
||||
|
||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":2258384,"index.wasm":13790961},"focusCanvas":true,"gdnativeLibs":[]};
|
||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":2272176,"index.wasm":13790961},"focusCanvas":true,"gdnativeLibs":[]};
|
||||
var engine = new Engine(GODOT_CONFIG);
|
||||
|
||||
(function() {
|
||||
|
Binary file not shown.
@ -93,6 +93,11 @@ roll={
|
||||
]
|
||||
}
|
||||
|
||||
[input_devices]
|
||||
|
||||
pointing/emulate_touch_from_mouse=true
|
||||
pointing/emulate_mouse_from_touch=false
|
||||
|
||||
[layer_names]
|
||||
|
||||
2d_physics/layer_1="World"
|
||||
|
40
ActionRPG-HeartBeast/touch_controls/TouchControls.tscn
Normal file
40
ActionRPG-HeartBeast/touch_controls/TouchControls.tscn
Normal file
@ -0,0 +1,40 @@
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://UI/TouchButtons6.png" type="Texture" id=1]
|
||||
[ext_resource path="res://UI/TouchButtons3.png" type="Texture" id=2]
|
||||
[ext_resource path="res://UI/TouchButtons5.png" type="Texture" id=3]
|
||||
[ext_resource path="res://UI/TouchButtons1.png" type="Texture" id=4]
|
||||
[ext_resource path="res://UI/TouchButtons2.png" type="Texture" id=5]
|
||||
[ext_resource path="res://UI/TouchButtons4.png" type="Texture" id=6]
|
||||
|
||||
[node name="TouchControls" type="CanvasLayer"]
|
||||
|
||||
[node name="Left" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 4, 133 )
|
||||
normal = ExtResource( 4 )
|
||||
action = "ui_left"
|
||||
|
||||
[node name="Right" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 43, 133 )
|
||||
normal = ExtResource( 2 )
|
||||
action = "ui_right"
|
||||
|
||||
[node name="Up" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 23, 113 )
|
||||
normal = ExtResource( 5 )
|
||||
action = "ui_up"
|
||||
|
||||
[node name="Down" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 23, 153 )
|
||||
normal = ExtResource( 6 )
|
||||
action = "ui_down"
|
||||
|
||||
[node name="Attack" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 255, 146 )
|
||||
normal = ExtResource( 3 )
|
||||
action = "attack"
|
||||
|
||||
[node name="Roll" type="TouchScreenButton" parent="."]
|
||||
position = Vector2( 286, 120 )
|
||||
normal = ExtResource( 1 )
|
||||
action = "roll"
|
Loading…
Reference in New Issue
Block a user