26 lines
863 B
Text
26 lines
863 B
Text
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://graphics/particles/pixel.png" type="Texture" id=1]
|
|
[ext_resource path="res://objects/environment/turret/turret_bullet.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 0.5, 0.5 )
|
|
|
|
[node name="TurretBullet" type="Node2D"]
|
|
script = ExtResource( 2 )
|
|
speed = 200.0
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
modulate = Color( 1, 0.894118, 0.4, 1 )
|
|
texture = ExtResource( 1 )
|
|
centered = false
|
|
|
|
[node name="Hitbox" type="Area2D" parent="."]
|
|
collision_mask = 3
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
|
position = Vector2( 0.5, 0.5 )
|
|
shape = SubResource( 1 )
|
|
|
|
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
|
|
[connection signal="body_entered" from="Hitbox" to="." method="_on_Hitbox_body_entered"]
|