forked from team-sg/hero-mark-2
added machinegun turret
This commit is contained in:
parent
a85b68a317
commit
5f6968a7e9
11 changed files with 567 additions and 2 deletions
26
objects/environment/turret/turret_bullet.tscn
Normal file
26
objects/environment/turret/turret_bullet.tscn
Normal file
|
@ -0,0 +1,26 @@
|
|||
[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"]
|
Loading…
Add table
Add a link
Reference in a new issue