game loop improvement
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
[ext_resource type="Resource" uid="uid://ca2fcdibf0mdm" path="res://resources/guests/queen_unracist.tres" id="28_r1bmu"]
|
||||
[ext_resource type="Resource" uid="uid://ctqdbo8xg3v88" path="res://resources/guests/duchex_cat.tres" id="29_6w6mm"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3bx6kf7frbwk" path="res://example/Random Upgrades/icons/all_icons/all_icons_1.tres" id="29_i7in8"]
|
||||
[ext_resource type="Script" uid="uid://bb0od2qqdx3or" path="res://scenes/main/ready_bell.gd" id="33_tbnf8"]
|
||||
[ext_resource type="PackedScene" uid="uid://cayrxqnypoytu" path="res://scenes/table/table.tscn" id="35_r1bmu"]
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_gkmcc"]
|
||||
random_pitch = 1.122462
|
||||
@@ -374,6 +376,7 @@ libraries/ = SubResource("AnimationLibrary_hxu8e")
|
||||
|
||||
[node name="ReadyBell" type="Area2D" parent="." unique_id=1350504622]
|
||||
position = Vector2(0, 426)
|
||||
script = ExtResource("33_tbnf8")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ReadyBell" unique_id=403528288]
|
||||
shape = SubResource("CircleShape2D_62atk")
|
||||
@@ -381,6 +384,15 @@ shape = SubResource("CircleShape2D_62atk")
|
||||
[node name="Sprite2D" type="Sprite2D" parent="ReadyBell" unique_id=1323765091]
|
||||
texture = ExtResource("29_i7in8")
|
||||
|
||||
[node name="Table" parent="." unique_id=1315188460 instance=ExtResource("35_r1bmu")]
|
||||
position = Vector2(2589, 56)
|
||||
|
||||
[node name="Table2" parent="." unique_id=141765359 instance=ExtResource("35_r1bmu")]
|
||||
position = Vector2(2272, 285)
|
||||
|
||||
[node name="Table3" parent="." unique_id=569701756 instance=ExtResource("35_r1bmu")]
|
||||
position = Vector2(3014, 285)
|
||||
|
||||
[connection signal="mouse_entered" from="MaskList" to="." method="_on_mask_list_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="MaskList" to="." method="_on_mask_list_mouse_exited"]
|
||||
[connection signal="mouse_entered" from="GuestList" to="." method="_on_guest_list_mouse_entered"]
|
||||
@@ -390,3 +402,8 @@ texture = ExtResource("29_i7in8")
|
||||
[connection signal="mouse_entered" from="Camera2D/PanLeft" to="Camera2D" method="_on_pan_left_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="Camera2D/PanLeft" to="Camera2D" method="_on_pan_left_mouse_exited"]
|
||||
[connection signal="input_event" from="ReadyBell" to="GameManager" method="_on_ready_bell_input_event"]
|
||||
[connection signal="mouse_entered" from="ReadyBell" to="ReadyBell" method="_on_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="ReadyBell" to="ReadyBell" method="_on_mouse_exited"]
|
||||
[connection signal="seat_clicked" from="Table" to="GameManager" method="on_seat_clicked"]
|
||||
[connection signal="seat_clicked" from="Table2" to="GameManager" method="on_seat_clicked"]
|
||||
[connection signal="seat_clicked" from="Table3" to="GameManager" method="on_seat_clicked"]
|
||||
|
||||
19
scenes/main/ready_bell.gd
Normal file
19
scenes/main/ready_bell.gd
Normal file
@@ -0,0 +1,19 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_mouse_entered() -> void:
|
||||
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_POINTING_HAND)
|
||||
|
||||
|
||||
func _on_mouse_exited() -> void:
|
||||
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_ARROW)
|
||||
1
scenes/main/ready_bell.gd.uid
Normal file
1
scenes/main/ready_bell.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bb0od2qqdx3or
|
||||
Reference in New Issue
Block a user