Cube
Cube and a simple slice script thats now empty cuz i couldn't get it to work... also the cursor now is area2D
This commit is contained in:
16
game/Objects/Cube.tscn
Normal file
16
game/Objects/Cube.tscn
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://ctcv7rr8w3fnf"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://2nxh3mui3ia7" path="res://Textures/svg/Cube.svg" id="1_k3834"]
|
||||
[ext_resource type="Script" uid="uid://cu1ss1gvex68v" path="res://Objects/SelfSlicer.gd" id="1_m4rrt"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ae35o"]
|
||||
size = Vector2(68, 68)
|
||||
|
||||
[node name="Node2D" type="Area2D"]
|
||||
script = ExtResource("1_m4rrt")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_k3834")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_ae35o")
|
||||
17
game/Objects/Cursor.tscn
Normal file
17
game/Objects/Cursor.tscn
Normal file
@@ -0,0 +1,17 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c42ny2e8vbhhc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ccydu80643k4s" path="res://Scripts/CursorScript.gd" id="1_uu6xs"]
|
||||
[ext_resource type="Texture2D" uid="uid://d0hckoql2xnbq" path="res://Textures/svg/Cursor.svg" id="2_r0du0"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_v75j3"]
|
||||
radius = 28.0713
|
||||
|
||||
[node name="Cursor" type="Area2D"]
|
||||
script = ExtResource("1_uu6xs")
|
||||
ShowMouse = true
|
||||
|
||||
[node name="CursorTexture" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_r0du0")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_v75j3")
|
||||
12
game/Objects/SelfSlicer.gd
Normal file
12
game/Objects/SelfSlicer.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends Area2D
|
||||
class_name SelfSlicer
|
||||
|
||||
@export var cursor_path: NodePath
|
||||
@onready var cursor = get_node(cursor_path)
|
||||
@onready var mesh_instance: MeshInstance2D = $MeshInstance2D
|
||||
|
||||
var sliced = false
|
||||
|
||||
func _ready():
|
||||
|
||||
pass
|
||||
1
game/Objects/SelfSlicer.gd.uid
Normal file
1
game/Objects/SelfSlicer.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cu1ss1gvex68v
|
||||
Reference in New Issue
Block a user