Fix input mapping stuff etc.
This commit is contained in:
parent
af5dcaaa6b
commit
3491b13cb5
|
@ -92,12 +92,12 @@ pause={
|
|||
}
|
||||
joke_button_1={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":2,"pressure":0.0,"pressed":false,"script":null)
|
||||
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
|
||||
]
|
||||
}
|
||||
joke_button_2={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
|
||||
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":2,"pressure":0.0,"pressed":false,"script":null)
|
||||
]
|
||||
}
|
||||
joke_button_3={
|
||||
|
|
|
@ -29,9 +29,9 @@ class ProfileData:
|
|||
|
||||
static func get_profile_data(index) -> ProfileData:
|
||||
var profiles = [
|
||||
ProfileData.new(3, -3, -10, 1, 10, { 0: 1, 1: 0, 2: -0.5 }),
|
||||
ProfileData.new(3, -3, -10, 1, 10, { 0: -0.5, 1: 1, 2: 0 }),
|
||||
ProfileData.new(3, -3, -10, 1, 10, { 0: 0, 1: -0.5, 2: 1 }),
|
||||
ProfileData.new(3, -3, -10, 1, 10, { 0: 1, 1: -0.25, 2: 0 }),
|
||||
ProfileData.new(3, -3, -10, 1, 10, { 0: 0, 1: 1, 2: -0.25 }),
|
||||
ProfileData.new(3, -3, -10, 1, 10, { 0: -0.25, 1: 0, 2: 1 }),
|
||||
]
|
||||
return profiles[index]
|
||||
|
||||
|
|
|
@ -47,9 +47,9 @@ var laughter_left : float = 0.
|
|||
|
||||
func _map_color_to_profile_data_index(color):
|
||||
match color:
|
||||
"blue":
|
||||
return 0
|
||||
"green":
|
||||
return 0
|
||||
"blue":
|
||||
return 1
|
||||
"red":
|
||||
return 2
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://r1i7ln2hpwq5"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/Joke Button.gd" id="1_lofpb"]
|
||||
[ext_resource type="Texture2D" uid="uid://huokdqy7birm" path="res://sprites/room/bubble_blue.svg" id="2_ivsb5"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsda544aynmha" path="res://sprites/room/bubble_green.svg" id="3_26ki8"]
|
||||
[ext_resource type="Texture2D" uid="uid://cttngp4bj5fh2" path="res://sprites/room/bubble_red.svg" id="4_o1r21"]
|
||||
[ext_resource type="Texture2D" uid="uid://br2j6yu0f7x37" path="res://sprites/room/bubble_blue.svg" id="2_ivsb5"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2vtyqcfr5ukt" path="res://sprites/room/bubble_green.svg" id="3_26ki8"]
|
||||
[ext_resource type="Texture2D" uid="uid://03ch1nqrnm6c" path="res://sprites/room/bubble_red.svg" id="4_o1r21"]
|
||||
|
||||
[node name="Joke Button" type="Node2D" node_paths=PackedStringArray("sprite")]
|
||||
script = ExtResource("1_lofpb")
|
||||
action = "joke_button_1"
|
||||
sprite = NodePath("Sprite2D")
|
||||
type_sprites = Array[Texture2D]([ExtResource("2_ivsb5"), ExtResource("3_26ki8"), ExtResource("4_o1r21")])
|
||||
type_sprites = Array[Texture2D]([ExtResource("3_26ki8"), ExtResource("2_ivsb5"), ExtResource("4_o1r21")])
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_ivsb5")
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
size = Vector2(600, 200)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wmfel"]
|
||||
size = Vector2(100, 10000)
|
||||
size = Vector2(250, 10000)
|
||||
|
||||
[node name="Stage" type="Node2D"]
|
||||
z_index = 100
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue