Tuesday, 19 August 2025 01:37:27
This commit is contained in:
36
Gameplay/Tchotchkes/awfully_hot_coffee_pot.tscn
Normal file
36
Gameplay/Tchotchkes/awfully_hot_coffee_pot.tscn
Normal file
@@ -0,0 +1,36 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cbmpor83jpggo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cs41fy2tdmox8" path="res://Gameplay/Tchotchkes/AwfullyHotCoffeePot.cs" id="2_mvvpy"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1tv50tj5cprl" path="res://art/coffee.png" id="3_r4u41"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_smj0g"]
|
||||
radius = 32.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_yxdnl"]
|
||||
radius = 32.0
|
||||
|
||||
[node name="AwfullyHotCoffeePot" type="StaticBody2D"]
|
||||
input_pickable = true
|
||||
script = ExtResource("2_mvvpy")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("3_r4u41")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_smj0g")
|
||||
|
||||
[node name="Gravity" type="Area2D" parent="."]
|
||||
gravity_space_override = 1
|
||||
gravity_point = true
|
||||
gravity_point_unit_distance = 32.0
|
||||
gravity_point_center = Vector2(0, 0)
|
||||
gravity_direction = Vector2(0, 0)
|
||||
gravity = 5.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Gravity"]
|
||||
shape = SubResource("CircleShape2D_yxdnl")
|
||||
|
||||
[connection signal="mouse_entered" from="." to="." method="OnMouseEntered"]
|
||||
[connection signal="mouse_exited" from="." to="." method="OnMouseExited"]
|
||||
[connection signal="body_entered" from="Gravity" to="." method="OnBodyEntered"]
|
||||
Reference in New Issue
Block a user