test level

This commit is contained in:
Page Asgardius 2023-08-14 16:35:04 -07:00
parent a63cff7185
commit 12a3b66948
23 changed files with 146 additions and 326 deletions

30
levels/css1.gd Normal file
View file

@ -0,0 +1,30 @@
extends Sprite2D
# Called when the node enters the scene tree for the first time.
#var velocity = Input.get_vector("move_left", "move_right", "move_forward", "move_back")
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
var xm = 0
var ym = 0
var velocity = Vector2.ZERO
if Input.get_joy_axis(0,JOY_AXIS_LEFT_X) > 0.2 || Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) > 0.2 || Input.get_joy_axis(0,JOY_AXIS_LEFT_X) < -0.2 || Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) < -0.2:
velocity = (Vector2.RIGHT.rotated(rotation) * -400 * Input.get_joy_axis(0,JOY_AXIS_LEFT_X))-Vector2.UP.rotated(rotation) * -400 * Input.get_joy_axis(0,JOY_AXIS_LEFT_Y)
else:
if Input.is_action_pressed("ui_left"):
xm = -1
if Input.is_action_pressed("ui_right"):
xm = 1
if Input.is_action_pressed("ui_up"):
ym = -1
if Input.is_action_pressed("ui_down"):
ym = 1
velocity = (Vector2.RIGHT.rotated(rotation) * -400 * xm)-Vector2.UP.rotated(rotation) * -400 * ym
#if Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) != 0:
# velocity = Vector2.UP.rotated(rotation) * -400 * Input.get_joy_axis(0,JOY_AXIS_LEFT_Y)
position += velocity * delta
#pass

116
levels/galaxy.tscn Normal file
View file

@ -0,0 +1,116 @@
[gd_scene load_steps=11 format=3 uid="uid://mtl88mcwaqk0"]
[ext_resource type="Script" path="res://levels/galaxy.gd" id="1_3c4wu"]
[ext_resource type="Texture2D" uid="uid://8lioamk650y7" path="res://sprites/css.png" id="2_3g4h6"]
[ext_resource type="Script" path="res://levels/css1.gd" id="3_1tarv"]
[ext_resource type="Texture2D" uid="uid://uscirt5qj0me" path="res://sprites/sat.png" id="4_as4jm"]
[ext_resource type="Texture2D" uid="uid://dlqjt7dmqfn4m" path="res://sprites/iss.png" id="5_6ivog"]
[ext_resource type="Texture2D" uid="uid://b8gbi6lsddd0g" path="res://sprites/tc.png" id="6_vp2ej"]
[ext_resource type="Texture2D" uid="uid://dqukmd8obdfhi" path="res://sprites/bus.png" id="7_5wmcj"]
[ext_resource type="Texture2D" uid="uid://bows52y4q3suo" path="res://sprites/antenna.png" id="8_rmhxj"]
[ext_resource type="Script" path="res://levels/antenna.gd" id="9_diat7"]
[ext_resource type="Texture2D" uid="uid://cpd31c6o18rmh" path="res://sprites/ss.png" id="9_favs7"]
[node name="galaxy" type="Node2D"]
script = ExtResource("1_3c4wu")
[node name="css1" type="Sprite2D" parent="."]
position = Vector2(852, 455)
scale = Vector2(0.3, 0.3)
texture = ExtResource("2_3g4h6")
script = ExtResource("3_1tarv")
[node name="css2" type="Sprite2D" parent="."]
position = Vector2(908, 688)
scale = Vector2(0.3, 0.3)
texture = ExtResource("2_3g4h6")
script = ExtResource("3_1tarv")
[node name="css3" type="Sprite2D" parent="."]
position = Vector2(2931, 925)
scale = Vector2(0.3, 0.3)
texture = ExtResource("2_3g4h6")
script = ExtResource("3_1tarv")
[node name="sat1" type="Sprite2D" parent="."]
position = Vector2(994, -488)
scale = Vector2(0.3, 0.3)
texture = ExtResource("4_as4jm")
script = ExtResource("3_1tarv")
[node name="sat2" type="Sprite2D" parent="."]
position = Vector2(1177, -4)
scale = Vector2(0.3, 0.3)
texture = ExtResource("4_as4jm")
script = ExtResource("3_1tarv")
[node name="sat3" type="Sprite2D" parent="."]
position = Vector2(2721, -234)
scale = Vector2(0.3, 0.3)
texture = ExtResource("4_as4jm")
script = ExtResource("3_1tarv")
[node name="iss1" type="Sprite2D" parent="."]
position = Vector2(1517, 236)
scale = Vector2(0.5, 0.5)
texture = ExtResource("5_6ivog")
script = ExtResource("3_1tarv")
[node name="iss2" type="Sprite2D" parent="."]
position = Vector2(1991, -175)
scale = Vector2(0.5, 0.5)
texture = ExtResource("5_6ivog")
script = ExtResource("3_1tarv")
[node name="iss3" type="Sprite2D" parent="."]
position = Vector2(3236, 4)
scale = Vector2(0.5, 0.5)
texture = ExtResource("5_6ivog")
script = ExtResource("3_1tarv")
[node name="tc1" type="Sprite2D" parent="."]
position = Vector2(1633, 928)
scale = Vector2(0.3, 0.3)
texture = ExtResource("6_vp2ej")
script = ExtResource("3_1tarv")
[node name="tc2" type="Sprite2D" parent="."]
position = Vector2(2258, 1316)
scale = Vector2(0.3, 0.3)
texture = ExtResource("6_vp2ej")
script = ExtResource("3_1tarv")
[node name="tc3" type="Sprite2D" parent="."]
position = Vector2(3445, 1440)
scale = Vector2(0.3, 0.3)
texture = ExtResource("6_vp2ej")
script = ExtResource("3_1tarv")
[node name="bus1" type="Sprite2D" parent="."]
position = Vector2(991, 1389)
scale = Vector2(0.3, 0.3)
texture = ExtResource("7_5wmcj")
script = ExtResource("3_1tarv")
[node name="bus2" type="Sprite2D" parent="."]
position = Vector2(2266, 530)
scale = Vector2(0.3, 0.3)
texture = ExtResource("7_5wmcj")
script = ExtResource("3_1tarv")
[node name="bus3" type="Sprite2D" parent="."]
position = Vector2(3960, 656)
scale = Vector2(0.3, 0.3)
texture = ExtResource("7_5wmcj")
script = ExtResource("3_1tarv")
[node name="antenna" type="Sprite2D" parent="."]
position = Vector2(3980, -208)
scale = Vector2(0.3, 0.3)
texture = ExtResource("8_rmhxj")
script = ExtResource("9_diat7")
[node name="ss" type="Sprite2D" parent="."]
position = Vector2(640, 360)
scale = Vector2(0.3, 0.3)
texture = ExtResource("9_favs7")

View file

@ -1,20 +0,0 @@
[gd_scene load_steps=5 format=3 uid="uid://mtl88mcwaqk0"]
[ext_resource type="Texture2D" uid="uid://8lioamk650y7" path="res://sprites/css.png" id="1_hfecx"]
[ext_resource type="Script" path="res://levels/galaxy/galaxy.gd" id="1_w4ic2"]
[ext_resource type="Script" path="res://levels/galaxy/css1.gd" id="3_mowmg"]
[ext_resource type="Texture2D" uid="uid://cpd31c6o18rmh" path="res://sprites/ss.png" id="4_17fr3"]
[node name="galaxy" type="Node2D"]
script = ExtResource("1_w4ic2")
[node name="css1" type="Sprite2D" parent="."]
position = Vector2(852, 455)
scale = Vector2(0.3, 0.3)
texture = ExtResource("1_hfecx")
script = ExtResource("3_mowmg")
[node name="ss" type="Sprite2D" parent="."]
position = Vector2(640, 360)
scale = Vector2(0.3, 0.3)
texture = ExtResource("4_17fr3")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://fx1pswt2cjw1"
path="res://.godot/imported/abstract.png-dbd62370aecaf1d2cd0885cc7b309fc5.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/backgounds/abstract.png"
dest_files=["res://.godot/imported/abstract.png-dbd62370aecaf1d2cd0885cc7b309fc5.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 850 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bxlm1pxt530e3"
path="res://.godot/imported/galaxy.png-b2aa39a3f29e3f5d0e672252328273b6.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/backgounds/galaxy.png"
dest_files=["res://.godot/imported/galaxy.png-b2aa39a3f29e3f5d0e672252328273b6.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://3l13r31l3ae2"
path="res://.godot/imported/galaxy2.png-3138d1e2cd4156e6ec854aaa39a6c902.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/backgounds/galaxy2.png"
dest_files=["res://.godot/imported/galaxy2.png-3138d1e2cd4156e6ec854aaa39a6c902.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 MiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ms5rsxfd33ef"
path="res://.godot/imported/lagoon.png-d526109f135fda7b8f5960a72a8af91e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/backgounds/lagoon.png"
dest_files=["res://.godot/imported/lagoon.png-d526109f135fda7b8f5960a72a8af91e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dqn1ssl8mn183"
path="res://.godot/imported/orion.png-2a3fa2fb2bea5c46f1f87a1cc26feefa.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/backgounds/orion.png"
dest_files=["res://.godot/imported/orion.png-2a3fa2fb2bea5c46f1f87a1cc26feefa.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 562 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cs8gy46cgtjqo"
path="res://.godot/imported/space.png-0601b36a2a80dee77f3a71fc02df1746.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/backgounds/space.png"
dest_files=["res://.godot/imported/space.png-0601b36a2a80dee77f3a71fc02df1746.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 965 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cdugjftbtu67o"
path="res://.godot/imported/stars.png-636221021edcb22683ba4f61c7889b42.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/backgounds/stars.png"
dest_files=["res://.godot/imported/stars.png-636221021edcb22683ba4f61c7889b42.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 870 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://brv23gw8bfyaa"
path="res://.godot/imported/universe.png-93cafe281b403a7b4e997f198fbe1eb2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/backgounds/universe.png"
dest_files=["res://.godot/imported/universe.png-93cafe281b403a7b4e997f198fbe1eb2.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 784 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dbecs37txicqr"
path="res://.godot/imported/wormhole.png-07fb98971356b06a1edb0fd87dcbdb34.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/backgounds/wormhole.png"
dest_files=["res://.godot/imported/wormhole.png-07fb98971356b06a1edb0fd87dcbdb34.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1