[gd_scene load_steps=10 format=2] [ext_resource path="res://Assets/asteroid.svg" type="Texture" id=1] [ext_resource path="res://Assets/topdown-player.svg" type="Texture" id=2] [ext_resource path="res://StarField/StarFieldBackground.tscn" type="PackedScene" id=3] [ext_resource path="res://LightningBeam/LightningBeam.tscn" type="PackedScene" id=4] [ext_resource path="res://Assets/2d_environment.tres" type="Environment" id=5] [sub_resource type="CircleShape2D" id=1] radius = 52.7564 [sub_resource type="CircleShape2D" id=2] radius = 69.1353 [sub_resource type="CircleShape2D" id=3] radius = 106.584 [sub_resource type="GDScript" id=4] script/source = "extends Node2D onready var lightning := $LightningBeam2D func _process(_delta: float) -> void: look_at(get_global_mouse_position()) func _unhandled_input(event: InputEvent) -> void: if event.is_action_pressed(\"fire_weapon\"): lightning.shoot() " [node name="LightningDemo" type="Node2D"] [node name="StarFieldBackground" parent="." instance=ExtResource( 3 )] [node name="Asteroid" type="StaticBody2D" parent="."] position = Vector2( 669.668, 346.301 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="Asteroid"] shape = SubResource( 1 ) [node name="Sprite" type="Sprite" parent="Asteroid"] scale = Vector2( 0.486244, 0.486244 ) texture = ExtResource( 1 ) [node name="Asteroid6" type="StaticBody2D" parent="."] position = Vector2( 503.356, 344.803 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="Asteroid6"] shape = SubResource( 1 ) [node name="Sprite" type="Sprite" parent="Asteroid6"] scale = Vector2( 0.486244, 0.486244 ) texture = ExtResource( 1 ) [node name="Asteroid7" type="StaticBody2D" parent="."] position = Vector2( 274.115, 536.586 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="Asteroid7"] shape = SubResource( 1 ) [node name="Sprite" type="Sprite" parent="Asteroid7"] scale = Vector2( 0.486244, 0.486244 ) texture = ExtResource( 1 ) [node name="Asteroid8" type="StaticBody2D" parent="."] position = Vector2( 707.126, 533.589 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="Asteroid8"] shape = SubResource( 1 ) [node name="Sprite" type="Sprite" parent="Asteroid8"] scale = Vector2( 0.486244, 0.486244 ) texture = ExtResource( 1 ) [node name="Asteroid9" type="StaticBody2D" parent="."] position = Vector2( 161.742, 319.331 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="Asteroid9"] shape = SubResource( 1 ) [node name="Sprite" type="Sprite" parent="Asteroid9"] scale = Vector2( 0.486244, 0.486244 ) texture = ExtResource( 1 ) [node name="Asteroid2" type="StaticBody2D" parent="."] position = Vector2( 559.581, 494.791 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="Asteroid2"] shape = SubResource( 2 ) [node name="Sprite" type="Sprite" parent="Asteroid2"] scale = Vector2( 0.635398, 0.635398 ) texture = ExtResource( 1 ) [node name="Asteroid4" type="StaticBody2D" parent="."] position = Vector2( 136.254, 478.412 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="Asteroid4"] shape = SubResource( 2 ) [node name="Sprite" type="Sprite" parent="Asteroid4"] scale = Vector2( 0.635398, 0.635398 ) texture = ExtResource( 1 ) [node name="Asteroid5" type="StaticBody2D" parent="."] position = Vector2( 348.891, 416.098 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="Asteroid5"] shape = SubResource( 2 ) [node name="Sprite" type="Sprite" parent="Asteroid5"] scale = Vector2( 0.635398, 0.635398 ) texture = ExtResource( 1 ) [node name="Asteroid3" type="StaticBody2D" parent="."] position = Vector2( 874.145, 427.782 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="Asteroid3"] shape = SubResource( 3 ) [node name="Sprite" type="Sprite" parent="Asteroid3"] texture = ExtResource( 1 ) [node name="PlayerShip" type="Node2D" parent="."] position = Vector2( 500, 120 ) script = SubResource( 4 ) [node name="Sprite" type="Sprite" parent="PlayerShip"] rotation = 1.5708 scale = Vector2( 0.7, 0.7 ) texture = ExtResource( 2 ) [node name="LightningBeam2D" parent="PlayerShip" instance=ExtResource( 4 )] [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = ExtResource( 5 )