mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-21 15:44:23 +00:00
Add non-functional Monocle
, Skull
and TopHat
This commit is contained in:
parent
e9f5c982b1
commit
edc367825b
14 changed files with 168 additions and 39 deletions
6
entities/monocle.gd
Normal file
6
entities/monocle.gd
Normal file
|
@ -0,0 +1,6 @@
|
|||
extends CharacterBody2D
|
||||
class_name Monocle
|
||||
|
||||
|
||||
func _on_move(movement: Vector2) -> void:
|
||||
move_and_collide(movement)
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d3tb6ypb36v8e"
|
||||
path="res://.godot/imported/pickup_monocle.png-7a9e8cda4415a7ebfbddb870020ff730.ctex"
|
||||
path="res://.godot/imported/monocle.png-2e39f2ebd2473082b74edcdb99c2e85d.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp/pickup_monocle.png"
|
||||
dest_files=["res://.godot/imported/pickup_monocle.png-7a9e8cda4415a7ebfbddb870020ff730.ctex"]
|
||||
source_file="res://entities/monocle.png"
|
||||
dest_files=["res://.godot/imported/monocle.png-2e39f2ebd2473082b74edcdb99c2e85d.ctex"]
|
||||
|
||||
[params]
|
||||
|
43
entities/monocle.tscn
Normal file
43
entities/monocle.tscn
Normal file
|
@ -0,0 +1,43 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://b04xhv32ypi42"]
|
||||
|
||||
[ext_resource type="Script" path="res://entities/monocle.gd" id="1_ehpfj"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3tb6ypb36v8e" path="res://entities/monocle.png" id="1_omrit"]
|
||||
[ext_resource type="PackedScene" uid="uid://rx24bppccih7" path="res://behaviours/move_physics.tscn" id="2_jgnsw"]
|
||||
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="3_e0ni5"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_o7chm"]
|
||||
radius = 12.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_juisb"]
|
||||
radius = 24.0
|
||||
|
||||
[node name="Monocle" type="CharacterBody2D"]
|
||||
collision_layer = 32
|
||||
collision_mask = 38
|
||||
script = ExtResource("1_ehpfj")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("1_omrit")
|
||||
|
||||
[node name="Shape" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_o7chm")
|
||||
|
||||
[node name="MovementDrag" parent="." instance=ExtResource("2_jgnsw")]
|
||||
|
||||
[node name="Draggable" parent="MovementDrag" instance=ExtResource("3_e0ni5")]
|
||||
collision_layer = 32
|
||||
|
||||
[node name="Shape" type="CollisionShape2D" parent="MovementDrag/Draggable"]
|
||||
shape = SubResource("CircleShape2D_juisb")
|
||||
debug_color = Color(1, 1, 1, 0)
|
||||
|
||||
[node name="FallTimer" type="Timer" parent="MovementDrag"]
|
||||
wait_time = 0.5
|
||||
one_shot = true
|
||||
|
||||
[connection signal="dropped" from="MovementDrag" to="MovementDrag/FallTimer" method="start"]
|
||||
[connection signal="move" from="MovementDrag" to="." method="_on_move"]
|
||||
[connection signal="dragged" from="MovementDrag/Draggable" to="MovementDrag" method="drag"]
|
||||
[connection signal="dropped" from="MovementDrag/Draggable" to="MovementDrag" method="drop"]
|
||||
[connection signal="timeout" from="MovementDrag/FallTimer" to="MovementDrag" method="fall"]
|
6
entities/skull.gd
Normal file
6
entities/skull.gd
Normal file
|
@ -0,0 +1,6 @@
|
|||
extends CharacterBody2D
|
||||
class_name Skull
|
||||
|
||||
|
||||
func _on_move(movement: Vector2) -> void:
|
||||
move_and_collide(movement)
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dwvvwjdexdywh"
|
||||
path="res://.godot/imported/pickup_skull.png-c05653658414d7be9a8a5454887e620a.ctex"
|
||||
path="res://.godot/imported/skull.png-eb9ec0d464004e0ca27a71e2a33a9dd3.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp/pickup_skull.png"
|
||||
dest_files=["res://.godot/imported/pickup_skull.png-c05653658414d7be9a8a5454887e620a.ctex"]
|
||||
source_file="res://entities/skull.png"
|
||||
dest_files=["res://.godot/imported/skull.png-eb9ec0d464004e0ca27a71e2a33a9dd3.ctex"]
|
||||
|
||||
[params]
|
||||
|
43
entities/skull.tscn
Normal file
43
entities/skull.tscn
Normal file
|
@ -0,0 +1,43 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://b3gydtrenbw3n"]
|
||||
|
||||
[ext_resource type="Script" path="res://entities/skull.gd" id="1_7g8bu"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwvvwjdexdywh" path="res://entities/skull.png" id="1_v6qk3"]
|
||||
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="2_h0icd"]
|
||||
[ext_resource type="PackedScene" uid="uid://rx24bppccih7" path="res://behaviours/move_physics.tscn" id="3_83m1a"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ypibs"]
|
||||
radius = 12.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_1c7gd"]
|
||||
radius = 24.0
|
||||
|
||||
[node name="Skull" type="CharacterBody2D"]
|
||||
collision_layer = 32
|
||||
collision_mask = 38
|
||||
script = ExtResource("1_7g8bu")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("1_v6qk3")
|
||||
|
||||
[node name="Shape" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_ypibs")
|
||||
|
||||
[node name="MovementDrag" parent="." instance=ExtResource("3_83m1a")]
|
||||
|
||||
[node name="Draggable" parent="MovementDrag" instance=ExtResource("2_h0icd")]
|
||||
collision_layer = 32
|
||||
|
||||
[node name="Shape" type="CollisionShape2D" parent="MovementDrag/Draggable"]
|
||||
shape = SubResource("CircleShape2D_1c7gd")
|
||||
debug_color = Color(1, 1, 1, 0)
|
||||
|
||||
[node name="FallTimer" type="Timer" parent="MovementDrag"]
|
||||
wait_time = 0.5
|
||||
one_shot = true
|
||||
|
||||
[connection signal="dropped" from="MovementDrag" to="MovementDrag/FallTimer" method="start"]
|
||||
[connection signal="move" from="MovementDrag" to="." method="_on_move"]
|
||||
[connection signal="dragged" from="MovementDrag/Draggable" to="MovementDrag" method="drag"]
|
||||
[connection signal="dropped" from="MovementDrag/Draggable" to="MovementDrag" method="drop"]
|
||||
[connection signal="timeout" from="MovementDrag/FallTimer" to="MovementDrag" method="fall"]
|
6
entities/top_hat.gd
Normal file
6
entities/top_hat.gd
Normal file
|
@ -0,0 +1,6 @@
|
|||
extends CharacterBody2D
|
||||
class_name TopHat
|
||||
|
||||
|
||||
func _on_move(movement: Vector2) -> void:
|
||||
move_and_collide(movement)
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://deqvgvf66grr4"
|
||||
path="res://.godot/imported/pickup_tophat.png-cd26d2618474ae83136bd7a01c578302.ctex"
|
||||
path="res://.godot/imported/top_hat.png-f606d6a390df7c1cf302806971027b77.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp/pickup_tophat.png"
|
||||
dest_files=["res://.godot/imported/pickup_tophat.png-cd26d2618474ae83136bd7a01c578302.ctex"]
|
||||
source_file="res://entities/top_hat.png"
|
||||
dest_files=["res://.godot/imported/top_hat.png-f606d6a390df7c1cf302806971027b77.ctex"]
|
||||
|
||||
[params]
|
||||
|
43
entities/top_hat.tscn
Normal file
43
entities/top_hat.tscn
Normal file
|
@ -0,0 +1,43 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://8ejgwtkpaa44"]
|
||||
|
||||
[ext_resource type="Script" path="res://entities/top_hat.gd" id="1_0eh11"]
|
||||
[ext_resource type="Texture2D" uid="uid://deqvgvf66grr4" path="res://entities/top_hat.png" id="1_gbqic"]
|
||||
[ext_resource type="PackedScene" uid="uid://rx24bppccih7" path="res://behaviours/move_physics.tscn" id="3_gy414"]
|
||||
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="4_fcvjo"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_o7chm"]
|
||||
radius = 12.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_juisb"]
|
||||
radius = 24.0
|
||||
|
||||
[node name="TopHat" type="CharacterBody2D"]
|
||||
collision_layer = 32
|
||||
collision_mask = 38
|
||||
script = ExtResource("1_0eh11")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("1_gbqic")
|
||||
|
||||
[node name="Shape" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_o7chm")
|
||||
|
||||
[node name="MovementDrag" parent="." instance=ExtResource("3_gy414")]
|
||||
|
||||
[node name="Draggable" parent="MovementDrag" instance=ExtResource("4_fcvjo")]
|
||||
collision_layer = 32
|
||||
|
||||
[node name="Shape" type="CollisionShape2D" parent="MovementDrag/Draggable"]
|
||||
shape = SubResource("CircleShape2D_juisb")
|
||||
debug_color = Color(1, 1, 1, 0)
|
||||
|
||||
[node name="FallTimer" type="Timer" parent="MovementDrag"]
|
||||
wait_time = 0.5
|
||||
one_shot = true
|
||||
|
||||
[connection signal="dropped" from="MovementDrag" to="MovementDrag/FallTimer" method="start"]
|
||||
[connection signal="move" from="MovementDrag" to="." method="_on_move"]
|
||||
[connection signal="dragged" from="MovementDrag/Draggable" to="MovementDrag" method="drag"]
|
||||
[connection signal="dropped" from="MovementDrag/Draggable" to="MovementDrag" method="drop"]
|
||||
[connection signal="timeout" from="MovementDrag/FallTimer" to="MovementDrag" method="fall"]
|
|
@ -7,7 +7,7 @@ radius = 4.0
|
|||
|
||||
[node name="Cursor" type="Area2D" groups=["cursor"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 8
|
||||
collision_mask = 40
|
||||
script = ExtResource("1_1og6v")
|
||||
|
||||
[node name="Shape" type="CollisionShape2D" parent="."]
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue