delete old code

This commit is contained in:
Lucas Peter 2024-07-31 12:21:29 +02:00
parent 79a577272a
commit 209af3e7e7
No known key found for this signature in database
3 changed files with 0 additions and 129 deletions

View file

@ -1,19 +0,0 @@
[gd_scene load_steps=2 format=3 uid="uid://kbso0l2uk2n7"]
[ext_resource type="Script" path="res://core/Sticker.gd" id="1_7yoct"]
[node name="Sticker" type="Area2D"]
collision_layer = 2
collision_mask = 255
monitoring = false
script = ExtResource("1_7yoct")
metadata/tags = PackedStringArray("sticker")
[node name="StickerDetectionShape" type="CollisionShape2D" parent="."]
[node name="StickerSprite" type="Sprite2D" parent="."]
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]
[connection signal="mouse_exited" from="." to="." method="_on_mouse_exited"]
[connection signal="tree_entered" from="." to="." method="_on_tree_entered"]
[connection signal="tree_exited" from="." to="." method="_on_tree_exited"]

View file

@ -1,17 +0,0 @@
[gd_scene load_steps=3 format=3 uid="uid://domcpxdf6lqpb"]
[ext_resource type="PackedScene" uid="uid://kbso0l2uk2n7" path="res://core/StickerArea.tscn" id="2_84v7t"]
[sub_resource type="AtlasTexture" id="AtlasTexture_2wdar"]
region = Rect2(384, 64, 288, 224)
[node name="FreeSticker1" type="Sprite2D"]
scale = Vector2(3.80334, 3.95089)
texture = SubResource("AtlasTexture_2wdar")
centered = false
offset = Vector2(-161.055, -179.785)
metadata/tags = ["sticker"]
[node name="StickerDetection" parent="." instance=ExtResource("2_84v7t")]
[connection signal="property_list_changed" from="." to="." method="_on_property_list_changed"]

View file

@ -1,93 +0,0 @@
[gd_scene load_steps=5 format=3 uid="uid://6ww1g2enfdx3"]
[ext_resource type="Texture2D" uid="uid://cun14l52f477p" path="res://textures/atlas/Bushes_All_01_SPRT.png" id="1_ssqve"]
[sub_resource type="AtlasTexture" id="AtlasTexture_2wdar"]
atlas = ExtResource("1_ssqve")
region = Rect2(384, 64, 288, 224)
[sub_resource type="GDScript" id="GDScript_uqtu8"]
script/source = "@tool
extends Sprite2D
var OutlineMat:ShaderMaterial = preload(\"res://shaders/shaderMaterial_Outline.tres\")
@export_group(\"Sticker Detection Shape\")
@export var StickerShape :Shape2D:
set(new_shape):
StickerShape = new_shape
$Area2D/StickerShape2D.shape = StickerShape
$Area2D/StickerShape2D.queue_redraw()
@export var Position :Vector2:
set(new_position):
Position = new_position
$Area2D/StickerShape2D.position = Position
$Area2D/StickerShape2D.queue_redraw()
@export var Rotation :float:
set(new_rotation):
Rotation = new_rotation
$Area2D/StickerShape2D.rotation = Rotation
$Area2D/StickerShape2D.queue_redraw()
@export_group(\"Collision Shape\")
@export var CollisionShape :Shape2D:
set(new_CollisionShape):
CollisionShape = new_CollisionShape
$StaticBody2D/CollisionShape2D.shape = CollisionShape
$StaticBody2D/CollisionShape2D.queue_redraw()
@export var CollisionPosition :Vector2:
set(new_CollisionPosition):
CollisionPosition = new_CollisionPosition
$StaticBody2D/CollisionShape2D.position = CollisionPosition
$StaticBody2D/CollisionShape2D.queue_redraw()
@export var CollisionRotation :float:
set(new_ColissionRotation):
CollisionRotation = new_ColissionRotation
$StaticBody2D/CollisionShape2D.rotation = CollisionRotation
$StaticBody2D/CollisionShape2D.queue_redraw()
func on_released():
print(self,\" released\")
func on_click():
print(self,\" clicked\")
func on_hover():
material = OutlineMat
queue_redraw()
func on_unhover():
material = null
queue_redraw()
func on_grab(_offset:Vector2=Vector2(0.0,0.0)):
pass
"
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ep5ck"]
size = Vector2(104.391, 20.3774)
[node name="SolidSticker1" type="Sprite2D"]
scale = Vector2(3.80334, 3.95089)
texture = SubResource("AtlasTexture_2wdar")
centered = false
offset = Vector2(-161.055, -179.785)
script = SubResource("GDScript_uqtu8")
metadata/tags = ["sticker"]
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 2
collision_mask = 0
monitoring = false
[node name="StickerShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(-4.46976, -71.6294)
rotation = 1.5708
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2(2.10341, -10.8836)
shape = SubResource("RectangleShape2D_ep5ck")
debug_color = Color(0.996033, 0, 0.194446, 0.42)
[connection signal="property_list_changed" from="." to="." method="_on_property_list_changed"]