[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://LaserBeam/LaserBeam2D.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 laser := $LaserBeam2D func _process(_delta: float) -> void: look_at(get_global_mouse_position()) func _unhandled_input(event: InputEvent) -> void: if not event.is_action(\"fire_weapon\"): return laser.is_casting = event.is_action_pressed(\"fire_weapon\") " [node name="LaserBeamScene" type="Node2D"] [node name="StarFieldBackground" parent="." instance=ExtResource( 3 )] [node name="Asteroid" type="StaticBody2D" parent="."] position = Vector2( 930.964, 92.4753 ) rotation = 3.03087 [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="Asteroid2" type="StaticBody2D" parent="."] position = Vector2( 628.228, 155.387 ) rotation = -0.663561 [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( 106.365, 497.13 ) rotation = -0.309969 [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( 128.336, 103.168 ) [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( 789.841, 412.141 ) rotation = 0.209989 [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( 194.39, 293.051 ) script = SubResource( 4 ) [node name="LaserBeam2D" parent="PlayerShip" instance=ExtResource( 4 )] position = Vector2( 24, 0 ) cast_to = Vector2( 100, 0 ) [node name="Sprite" type="Sprite" parent="PlayerShip"] rotation = 1.5708 scale = Vector2( 0.7, 0.7 ) texture = ExtResource( 2 ) [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = ExtResource( 5 )