Added core to final level
6
core.gd
Normal file
|
@ -0,0 +1,6 @@
|
|||
extends Area2D
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if body.name == "player":
|
||||
#get_tree().change_scene_to_file("")
|
||||
print("entered credits")
|
1
core.gd.uid
Normal file
|
@ -0,0 +1 @@
|
|||
uid://enxayokme5rs
|
53
core.tscn
Normal file
|
@ -0,0 +1,53 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://df6xmsx4rav7n"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://enxayokme5rs" path="res://core.gd" id="1_6sogb"]
|
||||
[ext_resource type="Texture2D" uid="uid://c54p5kdrt1r71" path="res://levelFinal/core/coreSprites/planetCore_0001.png" id="1_macrm"]
|
||||
[ext_resource type="Texture2D" uid="uid://b6qm6xu5ojpww" path="res://levelFinal/core/coreSprites/planetCore_0002.png" id="2_6sogb"]
|
||||
[ext_resource type="Texture2D" uid="uid://bbt2g8bk7kke8" path="res://levelFinal/core/coreSprites/planetCore_0003.png" id="3_fpp5w"]
|
||||
[ext_resource type="Texture2D" uid="uid://ch6720bqxcsmf" path="res://levelFinal/core/coreSprites/planetCore_0004.png" id="4_c0dob"]
|
||||
[ext_resource type="Texture2D" uid="uid://cd3n7wtnkho61" path="res://levelFinal/core/coreSprites/planetCore_0005.png" id="5_v2s1a"]
|
||||
[ext_resource type="Texture2D" uid="uid://bykh05626og5c" path="res://levelFinal/core/coreSprites/planetCore_0006.png" id="6_in0ky"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_macrm"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_macrm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_6sogb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_fpp5w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_c0dob")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_v2s1a")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_in0ky")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_a5wrw"]
|
||||
radius = 112.0
|
||||
|
||||
[node name="core" type="Area2D"]
|
||||
collision_layer = 3
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_6sogb")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(-7, 0)
|
||||
sprite_frames = SubResource("SpriteFrames_macrm")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -1)
|
||||
shape = SubResource("CircleShape2D_a5wrw")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
48
levelFinal/core/core.tscn
Normal file
|
@ -0,0 +1,48 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://bdd6q3m06bnn3"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c54p5kdrt1r71" path="res://levelFinal/core/coreSprites/planetCore_0001.png" id="1_7742g"]
|
||||
[ext_resource type="Texture2D" uid="uid://b6qm6xu5ojpww" path="res://levelFinal/core/coreSprites/planetCore_0002.png" id="2_q2rkh"]
|
||||
[ext_resource type="Texture2D" uid="uid://bbt2g8bk7kke8" path="res://levelFinal/core/coreSprites/planetCore_0003.png" id="3_76tls"]
|
||||
[ext_resource type="Texture2D" uid="uid://ch6720bqxcsmf" path="res://levelFinal/core/coreSprites/planetCore_0004.png" id="4_je86y"]
|
||||
[ext_resource type="Texture2D" uid="uid://cd3n7wtnkho61" path="res://levelFinal/core/coreSprites/planetCore_0005.png" id="5_y7wp5"]
|
||||
[ext_resource type="Texture2D" uid="uid://bykh05626og5c" path="res://levelFinal/core/coreSprites/planetCore_0006.png" id="6_70t1t"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_poonc"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_7742g")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_q2rkh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_76tls")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_je86y")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_y7wp5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_70t1t")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_h80fj"]
|
||||
radius = 109.018
|
||||
|
||||
[node name="core" type="Node2D"]
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(-7, 0)
|
||||
sprite_frames = SubResource("SpriteFrames_poonc")
|
||||
autoplay = "default"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -1)
|
||||
shape = SubResource("CircleShape2D_h80fj")
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c54p5kdrt1r71"
|
||||
path="res://.godot/imported/planetCore_0001.png-aaf37f442593ee95e4b441b4378ff457.ctex"
|
||||
path="res://.godot/imported/planetCore_0001.png-c74d338b976e7441d9fa4be07dc2b052.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://levelFinal/coreSprites/planetCore_0001.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0001.png-aaf37f442593ee95e4b441b4378ff457.ctex"]
|
||||
source_file="res://levelFinal/core/coreSprites/planetCore_0001.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0001.png-c74d338b976e7441d9fa4be07dc2b052.ctex"]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b6qm6xu5ojpww"
|
||||
path="res://.godot/imported/planetCore_0002.png-4597b41ae4a34c5a2b951cdbdb4cd12c.ctex"
|
||||
path="res://.godot/imported/planetCore_0002.png-c96234dff4e4c4cedb4eb866a9101913.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://levelFinal/coreSprites/planetCore_0002.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0002.png-4597b41ae4a34c5a2b951cdbdb4cd12c.ctex"]
|
||||
source_file="res://levelFinal/core/coreSprites/planetCore_0002.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0002.png-c96234dff4e4c4cedb4eb866a9101913.ctex"]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bbt2g8bk7kke8"
|
||||
path="res://.godot/imported/planetCore_0003.png-f3f3a4daa13ca762644c0124dddbf921.ctex"
|
||||
path="res://.godot/imported/planetCore_0003.png-f12ff0aded1ddbda8e86c1f5dafdc44f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://levelFinal/coreSprites/planetCore_0003.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0003.png-f3f3a4daa13ca762644c0124dddbf921.ctex"]
|
||||
source_file="res://levelFinal/core/coreSprites/planetCore_0003.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0003.png-f12ff0aded1ddbda8e86c1f5dafdc44f.ctex"]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ch6720bqxcsmf"
|
||||
path="res://.godot/imported/planetCore_0004.png-d784c1d2aabb3932b88651698d79a9e4.ctex"
|
||||
path="res://.godot/imported/planetCore_0004.png-4949f5518322e8acd9d5716d452ea090.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://levelFinal/coreSprites/planetCore_0004.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0004.png-d784c1d2aabb3932b88651698d79a9e4.ctex"]
|
||||
source_file="res://levelFinal/core/coreSprites/planetCore_0004.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0004.png-4949f5518322e8acd9d5716d452ea090.ctex"]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cd3n7wtnkho61"
|
||||
path="res://.godot/imported/planetCore_0005.png-6f35f628f73b9892760b86f001190ff9.ctex"
|
||||
path="res://.godot/imported/planetCore_0005.png-e08d5d91dcf4d62e4c5e2c7b982e69e7.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://levelFinal/coreSprites/planetCore_0005.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0005.png-6f35f628f73b9892760b86f001190ff9.ctex"]
|
||||
source_file="res://levelFinal/core/coreSprites/planetCore_0005.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0005.png-e08d5d91dcf4d62e4c5e2c7b982e69e7.ctex"]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bykh05626og5c"
|
||||
path="res://.godot/imported/planetCore_0006.png-8bdb493df69d181098d7cc721aca7a7d.ctex"
|
||||
path="res://.godot/imported/planetCore_0006.png-e6a1c3566f84b6f717c5b9ae21174c65.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://levelFinal/coreSprites/planetCore_0006.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0006.png-8bdb493df69d181098d7cc721aca7a7d.ctex"]
|
||||
source_file="res://levelFinal/core/coreSprites/planetCore_0006.png"
|
||||
dest_files=["res://.godot/imported/planetCore_0006.png-e6a1c3566f84b6f717c5b9ae21174c65.ctex"]
|
||||
|
||||
[params]
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=3 format=4 uid="uid://cbrkijjcxph15"]
|
||||
[gd_scene load_steps=4 format=4 uid="uid://cbrkijjcxph15"]
|
||||
|
||||
[ext_resource type="TileSet" uid="uid://cfq716af1nhqm" path="res://levelFinal/tileSet/coreTiles.tres" id="1_sp6x8"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1xy5bf2p6vmh" path="res://player/smallPlayer/player.tscn" id="2_js4h8"]
|
||||
[ext_resource type="PackedScene" uid="uid://bdd6q3m06bnn3" path="res://levelFinal/core/core.tscn" id="3_vttxq"]
|
||||
|
||||
[node name="finalLevel" type="Node2D"]
|
||||
|
||||
|
@ -16,3 +17,6 @@ tile_set = ExtResource("1_sp6x8")
|
|||
|
||||
[node name="player" parent="." instance=ExtResource("2_js4h8")]
|
||||
position = Vector2(276, 17)
|
||||
|
||||
[node name="core" parent="." instance=ExtResource("3_vttxq")]
|
||||
position = Vector2(273, 1299)
|
||||
|
|