godot-shooter / asteroids / files / scenes / World.tscn
Branch asteroids · default branch · all branches
World.tscn
| 1 | [gd_scene load_steps=7 format=2] |
| 2 | |
| 3 | [ext_resource path="res://assets/kenney_simple-space/PNG/Default/icon_crossLarge.png" type="Texture" id=1] |
| 4 | [ext_resource path="res://actors/Player.tscn" type="PackedScene" id=2] |
| 5 | [ext_resource path="res://scenes/World.gd" type="Script" id=4] |
| 6 | [ext_resource path="res://effects/StarField.tscn" type="PackedScene" id=5] |
| 7 | |
| 8 | [sub_resource type="CircleShape2D" id=1] |
| 9 | radius = 29.0172 |
| 10 | |
| 11 | [sub_resource type="NavigationPolygon" id=2] |
| 12 | vertices = PoolVector2Array( -400, -400, 400, -400, 400, 400, -400, 400 ) |
| 13 | polygons = [ PoolIntArray( 0, 1, 2, 3 ) ] |
| 14 | outlines = [ PoolVector2Array( -400, -400, 400, -400, 400, 400, -400, 400 ) ] |
| 15 | |
| 16 | [node name="World" type="Node2D"] |
| 17 | script = ExtResource( 4 ) |
| 18 | |
| 19 | [node name="Destination" type="Area2D" parent="."] |
| 20 | |
| 21 | [node name="XSprite" type="Sprite" parent="Destination"] |
| 22 | modulate = Color( 0.0784314, 0, 1, 1 ) |
| 23 | texture = ExtResource( 1 ) |
| 24 | |
| 25 | [node name="CollisionShape2D" type="CollisionShape2D" parent="Destination"] |
| 26 | shape = SubResource( 1 ) |
| 27 | |
| 28 | [node name="Background" type="CanvasLayer" parent="."] |
| 29 | layer = -100 |
| 30 | visible = false |
| 31 | |
| 32 | [node name="ParallaxBackground" type="ParallaxBackground" parent="Background"] |
| 33 | visible = false |
| 34 | |
| 35 | [node name="Foreground" type="ParallaxLayer" parent="Background/ParallaxBackground"] |
| 36 | motion_mirroring = Vector2( 600, 1000 ) |
| 37 | |
| 38 | [node name="StarField" parent="Background/ParallaxBackground/Foreground" instance=ExtResource( 5 )] |
| 39 | |
| 40 | [node name="Background" type="ParallaxLayer" parent="Background/ParallaxBackground"] |
| 41 | modulate = Color( 1, 1, 1, 0.501961 ) |
| 42 | motion_scale = Vector2( 0.8, 0.8 ) |
| 43 | motion_mirroring = Vector2( 600, 1000 ) |
| 44 | __meta__ = { |
| 45 | "_edit_group_": true |
| 46 | } |
| 47 | |
| 48 | [node name="StarField2" parent="Background/ParallaxBackground/Background" instance=ExtResource( 5 )] |
| 49 | |
| 50 | [node name="Background2" type="ParallaxLayer" parent="Background/ParallaxBackground"] |
| 51 | modulate = Color( 1, 1, 1, 0.101961 ) |
| 52 | motion_scale = Vector2( 0.6, 0.6 ) |
| 53 | motion_mirroring = Vector2( 600, 1000 ) |
| 54 | __meta__ = { |
| 55 | "_edit_group_": true |
| 56 | } |
| 57 | |
| 58 | [node name="StarField2" parent="Background/ParallaxBackground/Background2" instance=ExtResource( 5 )] |
| 59 | |
| 60 | [node name="Player" parent="." instance=ExtResource( 2 )] |
| 61 | position = Vector2( 251, 399 ) |
| 62 | |
| 63 | [node name="Environment" type="Node2D" parent="."] |
| 64 | |
| 65 | [node name="ShootTimer" type="Timer" parent="."] |
| 66 | process_mode = 0 |
| 67 | wait_time = 0.05 |
| 68 | autostart = true |
| 69 | |
| 70 | [node name="UpdateTimer" type="Timer" parent="."] |
| 71 | wait_time = 0.1 |
| 72 | autostart = true |
| 73 | |
| 74 | [node name="NavigationPolygonInstance" type="NavigationPolygonInstance" parent="."] |
| 75 | visible = false |
| 76 | navpoly = SubResource( 2 ) |
| 77 | navigation_layers = 2 |
| 78 | |
| 79 | [connection signal="body_entered" from="Destination" to="." method="_on_Destination_body_entered"] |
| 80 | [connection signal="timeout" from="ShootTimer" to="." method="_on_ShootTimer_timeout"] |
| 81 | [connection signal="timeout" from="UpdateTimer" to="." method="_on_UpdateTimer_timeout"] |