forked from ieeetucuman/lt-cs-e2-godot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.tscn
38 lines (30 loc) · 1.17 KB
/
Game.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[gd_scene load_steps=5 format=2]
[ext_resource path="res://assets/background.png" type="Texture" id=1]
[ext_resource path="res://assets/ship.png" type="Texture" id=2]
[ext_resource path="res://Player.gd" type="Script" id=3]
[ext_resource path="res://Spawner.gd" type="Script" id=4]
[node name="Game" type="Node"]
[node name="background" type="TextureRect" parent="."]
margin_right = 800.0
margin_bottom = 600.0
texture = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Player" type="KinematicBody2D" parent="."]
position = Vector2( 376.122, 369.187 )
script = ExtResource( 3 )
__meta__ = {
"_edit_group_": true
}
[node name="ship" type="Sprite" parent="Player"]
scale = Vector2( 1.5, 1.5 )
texture = ExtResource( 2 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Player"]
polygon = PoolVector2Array( 30.6472, 0.462311, -8.92389, -33.5628, -19.1164, -16.3254, -19.2663, 16.9503, -9.52344, 35.2368 )
[node name="Spawner" type="Node" parent="."]
script = ExtResource( 4 )
[node name="Timer" type="Timer" parent="Spawner"]
wait_time = 0.25
autostart = true
[connection signal="timeout" from="Spawner/Timer" to="Spawner" method="_on_Timer_timeout"]