Made tweaks to planetTwo.tscn and added planetThree.tscn (And mostly finished it)
|
@ -2,4 +2,4 @@ extends Area2D
|
|||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
get_tree().change_scene_to_file("res://levelTwo/levelTwo.tscn")
|
||||
print("Enter Level FINAL")
|
||||
|
|
5
planetScene/planetThree/caveEntranceThree.gd
Normal file
|
@ -0,0 +1,5 @@
|
|||
extends Area2D
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
get_tree().change_scene_to_file("res://levelTwo/levelTwo.tscn")
|
1
planetScene/planetThree/caveEntranceThree.gd.uid
Normal file
|
@ -0,0 +1 @@
|
|||
uid://cqqxyv3c0ou2l
|
After Width: | Height: | Size: 333 B |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ccnvk58hhdefa"
|
||||
path="res://.godot/imported/finalEntrance_0001.png-71e0fc5973c7ed7227796449137227d1.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0001.png"
|
||||
dest_files=["res://.godot/imported/finalEntrance_0001.png-71e0fc5973c7ed7227796449137227d1.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
|
After Width: | Height: | Size: 449 B |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dv14bou2l4rxt"
|
||||
path="res://.godot/imported/finalEntrance_0002.png-0e028d2ef973d812ed9d63adf84f4631.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0002.png"
|
||||
dest_files=["res://.godot/imported/finalEntrance_0002.png-0e028d2ef973d812ed9d63adf84f4631.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
|
After Width: | Height: | Size: 533 B |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cfeejuj82yn4f"
|
||||
path="res://.godot/imported/finalEntrance_0003.png-099dd88966b9f9f5c1c0837b0583994e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0003.png"
|
||||
dest_files=["res://.godot/imported/finalEntrance_0003.png-099dd88966b9f9f5c1c0837b0583994e.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
|
After Width: | Height: | Size: 587 B |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://clm5uidp5crng"
|
||||
path="res://.godot/imported/finalEntrance_0004.png-c170a51a5857a4ef832dde61a1c3945c.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0004.png"
|
||||
dest_files=["res://.godot/imported/finalEntrance_0004.png-c170a51a5857a4ef832dde61a1c3945c.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
|
After Width: | Height: | Size: 533 B |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://n0yxuloamnl3"
|
||||
path="res://.godot/imported/finalEntrance_0005.png-ea90fa085cb0c6f6c2968d5f208ff555.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0005.png"
|
||||
dest_files=["res://.godot/imported/finalEntrance_0005.png-ea90fa085cb0c6f6c2968d5f208ff555.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
|
After Width: | Height: | Size: 449 B |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cp2danr5fkc7p"
|
||||
path="res://.godot/imported/finalEntrance_0006.png-970950cb7dce90b6e765de113f65e5bc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0006.png"
|
||||
dest_files=["res://.godot/imported/finalEntrance_0006.png-970950cb7dce90b6e765de113f65e5bc.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
|
After Width: | Height: | Size: 333 B |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ban1l5iyt10eo"
|
||||
path="res://.godot/imported/finalEntrance_0007.png-9c1d79c0119ed8cb8f911e531144408b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0007.png"
|
||||
dest_files=["res://.godot/imported/finalEntrance_0007.png-9c1d79c0119ed8cb8f911e531144408b.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
|
151
planetScene/planetThree/planetThree.tscn
Normal file
|
@ -0,0 +1,151 @@
|
|||
[gd_scene load_steps=28 format=3 uid="uid://bw0pg86y720j"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cuv6yxysv620e" path="res://planetScene/background/space-seamless.png" id="1_baac1"]
|
||||
[ext_resource type="Script" uid="uid://d4crfwu1s5wm1" path="res://planetScene/background/textureRotate.gd" id="2_y1spn"]
|
||||
[ext_resource type="Texture2D" uid="uid://btgsbvc7gidjq" path="res://planetScene/sprites/planet.png" id="3_43s7y"]
|
||||
[ext_resource type="Script" uid="uid://b8kcef36xwy7k" path="res://planetScene/planetOne/planet_sprite.gd" id="4_yousq"]
|
||||
[ext_resource type="Script" uid="uid://bxsyec5gcnavv" path="res://planetScene/planetOne/caveEntranceOne.gd" id="5_8bp4r"]
|
||||
[ext_resource type="Texture2D" uid="uid://cw30f2tjaigg4" path="res://planetScene/sprites/caveEntrance.png" id="6_803x4"]
|
||||
[ext_resource type="Texture2D" uid="uid://ccnvk58hhdefa" path="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0001.png" id="6_mm2nt"]
|
||||
[ext_resource type="Texture2D" uid="uid://dv14bou2l4rxt" path="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0002.png" id="7_e4obg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dimdd34ldpix5" path="res://player/smallPlayer/playerSprites/playerSprite_0001.png" id="7_rknhx"]
|
||||
[ext_resource type="Texture2D" uid="uid://cfeejuj82yn4f" path="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0003.png" id="8_bkq8h"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmga6fl4uer1m" path="res://player/smallPlayer/playerSprites/playerSprite_0002.png" id="8_mm2nt"]
|
||||
[ext_resource type="Texture2D" uid="uid://clm5uidp5crng" path="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0004.png" id="9_0a5f7"]
|
||||
[ext_resource type="Texture2D" uid="uid://cw0ntcoynkr0w" path="res://player/smallPlayer/playerSprites/playerSprite_0003.png" id="9_e4obg"]
|
||||
[ext_resource type="Texture2D" uid="uid://n0yxuloamnl3" path="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0005.png" id="10_abjb2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dt3rv4x30n4ru" path="res://player/smallPlayer/playerSprites/playerSprite_0004.png" id="10_bkq8h"]
|
||||
[ext_resource type="Texture2D" uid="uid://bvnodga8epycb" path="res://player/smallPlayer/playerSprites/playerSprite_0005.png" id="11_0a5f7"]
|
||||
[ext_resource type="Texture2D" uid="uid://cp2danr5fkc7p" path="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0006.png" id="11_0olys"]
|
||||
[ext_resource type="Texture2D" uid="uid://d5qpoa8wadrp" path="res://player/smallPlayer/playerSprites/playerSprite_0006.png" id="12_abjb2"]
|
||||
[ext_resource type="Texture2D" uid="uid://ban1l5iyt10eo" path="res://planetScene/planetThree/finalEntranceSprites/finalEntrance_0007.png" id="12_s7fta"]
|
||||
[ext_resource type="Texture2D" uid="uid://jfhpkm78lqyx" path="res://player/smallPlayer/playerSprites/playerSprite_0007.png" id="13_0olys"]
|
||||
[ext_resource type="Texture2D" uid="uid://jssqmb4832pr" path="res://player/smallPlayer/playerSprites/playerSprite_0008.png" id="14_s7fta"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxeg6715vly1v" path="res://player/smallPlayer/playerSprites/playerSprite_0009.png" id="15_hrtuk"]
|
||||
[ext_resource type="Texture2D" uid="uid://b8eut6fnru722" path="res://player/smallPlayer/playerSprites/playerSprite_0010.png" id="16_2huu8"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_hrtuk"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_mm2nt")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_e4obg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_bkq8h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_0a5f7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_abjb2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_0olys")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_s7fta")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3xb1h"]
|
||||
size = Vector2(40, 36.5)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_i6oun"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_rknhx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_mm2nt")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_e4obg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_bkq8h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_0a5f7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_abjb2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("13_0olys")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("14_s7fta")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("15_hrtuk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("16_2huu8")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dp0ko"]
|
||||
|
||||
[node name="planetScene" type="Node2D"]
|
||||
|
||||
[node name="background" type="TextureRect" parent="."]
|
||||
offset_left = -835.0
|
||||
offset_top = -538.0
|
||||
offset_right = 2088.0
|
||||
offset_bottom = 2077.0
|
||||
pivot_offset = Vector2(1411, 1294)
|
||||
texture = ExtResource("1_baac1")
|
||||
stretch_mode = 1
|
||||
script = ExtResource("2_y1spn")
|
||||
|
||||
[node name="planetSprite" type="Sprite2D" parent="."]
|
||||
position = Vector2(573, 463)
|
||||
scale = Vector2(1.43429, 1.43429)
|
||||
texture = ExtResource("3_43s7y")
|
||||
offset = Vector2(0.2, 0.23)
|
||||
script = ExtResource("4_yousq")
|
||||
|
||||
[node name="caveEntrance" type="Area2D" parent="planetSprite"]
|
||||
position = Vector2(7.66927, 113.645)
|
||||
rotation = 4.45059
|
||||
scale = Vector2(0.341, 0.341)
|
||||
script = ExtResource("5_8bp4r")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="planetSprite/caveEntrance"]
|
||||
position = Vector2(7.5168, -24.3962)
|
||||
rotation = -1.309
|
||||
scale = Vector2(1, 1)
|
||||
sprite_frames = SubResource("SpriteFrames_hrtuk")
|
||||
autoplay = "default"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="planetSprite/caveEntrance"]
|
||||
position = Vector2(17.7398, -20.307)
|
||||
rotation = 0.261799
|
||||
shape = SubResource("RectangleShape2D_3xb1h")
|
||||
|
||||
[node name="caveExit" type="Sprite2D" parent="planetSprite"]
|
||||
position = Vector2(-1.39442, -106.673)
|
||||
scale = Vector2(0.0528251, 0.0528251)
|
||||
texture = ExtResource("6_803x4")
|
||||
|
||||
[node name="playerModel" type="StaticBody2D" parent="."]
|
||||
position = Vector2(572, 302)
|
||||
|
||||
[node name="playerSprite" type="AnimatedSprite2D" parent="playerModel"]
|
||||
sprite_frames = SubResource("SpriteFrames_i6oun")
|
||||
autoplay = "default"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="playerModel"]
|
||||
shape = SubResource("RectangleShape2D_dp0ko")
|
||||
|
||||
[connection signal="body_entered" from="planetSprite/caveEntrance" to="planetSprite/caveEntrance" method="_on_body_entered"]
|
9
planetScene/planetThree/planet_sprite.gd
Normal file
|
@ -0,0 +1,9 @@
|
|||
extends Sprite2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _physics_process(delta: float):
|
||||
if Input.is_action_pressed("moveLeft"):
|
||||
rotate(0.01)
|
||||
if Input.is_action_pressed("moveRight"):
|
||||
rotate(-0.01)
|
1
planetScene/planetThree/planet_sprite.gd.uid
Normal file
|
@ -0,0 +1 @@
|
|||
uid://b0nk26knmslyg
|
|
@ -97,8 +97,7 @@ rotation = 0.220474
|
|||
shape = SubResource("RectangleShape2D_3xb1h")
|
||||
|
||||
[node name="caveExit" type="Sprite2D" parent="planetSprite"]
|
||||
position = Vector2(-74.5753, -77.6683)
|
||||
rotation = -0.785398
|
||||
position = Vector2(0.343666, -107.911)
|
||||
scale = Vector2(0.0528251, 0.0528251)
|
||||
texture = ExtResource("6_y8axt")
|
||||
|
||||
|
|