Files
godot-ci/test-project/scenes/Cannon.tscn
abarichello 9fd1c3aee0 Import test project as example
TODO: update gitlab-ci template to also use the test-project
2020-05-18 17:52:17 -03:00

55 lines
1.3 KiB
Plaintext
Executable File

[gd_scene load_steps=3 format=2]
[ext_resource path="res://scripts/Cannon.gd" type="Script" id=1]
[ext_resource path="res://resources/img/1.png" type="Texture" id=2]
[node name="Cannon" type="Node2D" groups=[
"ColoredEntity",
]]
script = ExtResource( 1 )
[node name="Sprite" type="TextureRect" parent="."]
anchor_left = 0.0
anchor_top = 0.5
anchor_right = 0.0
anchor_bottom = 0.5
margin_top = -10.0
margin_right = 150.0
margin_bottom = 38.0
rect_min_size = Vector2( 150, 24 )
rect_pivot_offset = Vector2( 10, 10 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 0
size_flags_vertical = 0
texture = ExtResource( 2 )
stretch_mode = 2
[node name="GuideLine" type="Line2D" parent="Sprite"]
modulate = Color( 1, 1, 1, 0.1 )
show_behind_parent = true
position = Vector2( 0, 10 )
points = PoolVector2Array( 135, 2, 2000, 2 )
width = 5.0
default_color = Color( 1, 1, 1, 1 )
texture_mode = 1
joint_mode = 2
sharp_limit = 2.0
round_precision = 10
[node name="CannonTip" type="Position2D" parent="Sprite"]
position = Vector2( 120, 12 )
[node name="CannonBase" type="Position2D" parent="Sprite"]
position = Vector2( 0, 12 )
[node name="Projectiles" type="Node" parent="."]
[node name="FireCooldown" type="Timer" parent="."]
process_mode = 1
wait_time = 1.0
one_shot = true
autostart = true