GodotComponentTest/entities/PlayerEntity.tscn

51 lines
1.6 KiB
Plaintext
Raw Normal View History

2022-08-20 00:18:16 +02:00
[gd_scene load_steps=10 format=2]
2022-08-19 18:48:54 +02:00
2022-08-25 14:10:02 +02:00
[ext_resource path="res://entities/PlayerEntity.gd" type="Script" id=1]
[ext_resource path="res://components/TintedSpriteComponent.gd" type="Script" id=2]
[ext_resource path="res://components/ColorComponent.gd" type="Script" id=3]
[ext_resource path="res://components/ClickableComponent.tscn" type="PackedScene" id=4]
[ext_resource path="res://components/MovableComponent.gd" type="Script" id=5]
[ext_resource path="res://assets/pirate.svg" type="Texture" id=6]
[ext_resource path="res://assets/white.png" type="Texture" id=8]
2022-08-20 00:18:16 +02:00
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 40, 103 )
2022-08-20 14:36:17 +02:00
[sub_resource type="CapsuleShape2D" id=2]
radius = 46.0
height = 122.0
2022-08-19 18:48:54 +02:00
2022-08-20 14:36:17 +02:00
[node name="PlayerEntity" type="KinematicBody2D"]
2022-08-19 18:48:54 +02:00
script = ExtResource( 1 )
[node name="Components" type="Node2D" parent="."]
2022-08-20 14:36:17 +02:00
[node name="Movable" type="Node2D" parent="."]
2022-08-19 18:48:54 +02:00
script = ExtResource( 5 )
2022-08-20 00:18:16 +02:00
max_speed = 300
2022-08-19 18:48:54 +02:00
2022-08-20 14:36:17 +02:00
[node name="TintedSprite" type="Sprite" parent="."]
position = Vector2( -9, 3 )
2022-08-19 18:48:54 +02:00
texture = ExtResource( 6 )
script = ExtResource( 2 )
2022-08-20 14:36:17 +02:00
[node name="Clickable" parent="." instance=ExtResource( 4 )]
2022-08-20 00:18:16 +02:00
2022-08-20 14:36:17 +02:00
[node name="CollisionShape2D" parent="Clickable/Area2D" index="0"]
2022-08-20 00:18:16 +02:00
position = Vector2( 7, -8 )
shape = SubResource( 1 )
2022-08-20 14:36:17 +02:00
[node name="Color" type="Node" parent="."]
2022-08-19 18:48:54 +02:00
script = ExtResource( 3 )
2022-08-20 00:18:16 +02:00
2022-08-20 14:36:17 +02:00
[node name="Collision" type="CollisionShape2D" parent="."]
2022-08-20 00:18:16 +02:00
shape = SubResource( 2 )
2022-08-20 14:36:17 +02:00
[node name="TintedSprite" type="Sprite" parent="Collision"]
visible = false
2022-08-20 00:18:16 +02:00
scale = Vector2( 80.6324, 216.834 )
texture = ExtResource( 8 )
script = ExtResource( 2 )
2022-08-20 14:36:17 +02:00
[editable path="Clickable"]