Rewriting ships: Added some player interface and started rewriting star system
This commit is contained in:
parent
6957169ba5
commit
4172b336c1
20 changed files with 300 additions and 139 deletions
22
scenes/Star Systems/Required Scenes/StarsController.tscn
Normal file
22
scenes/Star Systems/Required Scenes/StarsController.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://dpggye27ln436"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/misc/stars_generator.gd" id="1_uxmpu"]
|
||||
[ext_resource type="PackedScene" uid="uid://kyuhwil8vq7n" path="res://scenes/Star.tscn" id="2_ypr5c"]
|
||||
|
||||
[node name="Stars" type="ParallaxBackground"]
|
||||
process_mode = 1
|
||||
layer = -5
|
||||
scroll_ignore_camera_zoom = true
|
||||
script = ExtResource("1_uxmpu")
|
||||
star = ExtResource("2_ypr5c")
|
||||
|
||||
[node name="CloseStars" type="ParallaxLayer" parent="."]
|
||||
scale = Vector2(2, 2)
|
||||
motion_scale = Vector2(0.9, 0.9)
|
||||
|
||||
[node name="DistinctStars" type="ParallaxLayer" parent="."]
|
||||
scale = Vector2(1.5, 1.5)
|
||||
motion_scale = Vector2(0.5, 0.5)
|
||||
|
||||
[node name="FarAwayStars" type="ParallaxLayer" parent="."]
|
||||
motion_scale = Vector2(0.1, 0.1)
|
||||
29
scenes/Star Systems/star_system_template.tscn
Normal file
29
scenes/Star Systems/star_system_template.tscn
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bsnrcw64qr2hr"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/star_system.gd" id="1_xx8w2"]
|
||||
[ext_resource type="PackedScene" uid="uid://dpggye27ln436" path="res://scenes/Star Systems/Required Scenes/StarsController.tscn" id="2_iqrn0"]
|
||||
[ext_resource type="Script" path="res://scripts/misc/ProjectilesContainer.gd" id="3_h5cm3"]
|
||||
[ext_resource type="Material" uid="uid://bawhivm5cr2w" path="res://shaders/materials/nebula_shader.tres" id="4_o0ld7"]
|
||||
[ext_resource type="Script" path="res://scripts/nebula.gd" id="5_la84n"]
|
||||
|
||||
[node name="StarSystem" type="Node"]
|
||||
script = ExtResource("1_xx8w2")
|
||||
width = 1280
|
||||
height = 720
|
||||
|
||||
[node name="Stars" parent="." instance=ExtResource("2_iqrn0")]
|
||||
|
||||
[node name="ProjectileContainer" type="Node" parent="."]
|
||||
script = ExtResource("3_h5cm3")
|
||||
|
||||
[node name="Background" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Nebula" type="ColorRect" parent="Background"]
|
||||
material = ExtResource("4_o0ld7")
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("5_la84n")
|
||||
color_background = Color(0.36, 0.18612, 0.1116, 1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue