Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
219e55c860 | ||
|
|
c00ddd741c | ||
|
|
c10acf2469 | ||
|
|
ef5ce684eb | ||
|
|
fc6dfdef4d | ||
|
|
877648dbc2 | ||
|
|
2c65c5f4b6 | ||
|
|
6bfbfd7989 | ||
|
|
494f8e60b2 | ||
|
|
c64401aaac |
No files matched your search
@@ -6,6 +6,50 @@
|
||||
[ext_resource path="res://Sprites/Enemies/Demon_Slime_Spritesheet.png" type="Texture" id=5]
|
||||
[ext_resource path="res://Sprites/Enemies/Chasing_Glowing_Ghost.png" type="Texture" id=7]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=37]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=38]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 288, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=39]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 576, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=40]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 864, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=41]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1152, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=42]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1440, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=58]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=59]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 288, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=60]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 576, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=61]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 864, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=62]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1152, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 640, 288, 160 )
|
||||
@@ -94,6 +138,54 @@ region = Rect2( 5760, 640, 288, 160 )
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 6048, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=25]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=26]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 288, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=27]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 576, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=28]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 864, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=29]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1152, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=30]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1440, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=31]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1728, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=32]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2016, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=33]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2304, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=34]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2592, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=35]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2880, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=36]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 3168, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=43]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 320, 288, 160 )
|
||||
@@ -154,124 +246,32 @@ region = Rect2( 3744, 320, 288, 160 )
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 4032, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=58]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=59]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 288, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=60]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 576, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=61]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 864, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=62]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1152, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=25]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=26]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 288, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=27]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 576, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=28]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 864, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=29]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1152, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=30]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1440, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=31]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1728, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=32]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2016, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=33]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2304, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=34]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2592, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=35]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2880, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=36]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 3168, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=37]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=38]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 288, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=39]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 576, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=40]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 864, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=41]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1152, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=42]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1440, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=63]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ) ],
|
||||
"frames": [ SubResource( 37 ), SubResource( 38 ), SubResource( 39 ), SubResource( 40 ), SubResource( 41 ), SubResource( 42 ) ],
|
||||
"loop": true,
|
||||
"name": "Death",
|
||||
"name": "Idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 43 ), SubResource( 44 ), SubResource( 45 ), SubResource( 46 ), SubResource( 47 ), SubResource( 48 ), SubResource( 49 ), SubResource( 50 ), SubResource( 51 ), SubResource( 52 ), SubResource( 53 ), SubResource( 54 ), SubResource( 55 ), SubResource( 56 ), SubResource( 57 ) ],
|
||||
"loop": true,
|
||||
"name": "Attack",
|
||||
"speed": 15.0
|
||||
}, {
|
||||
"frames": [ SubResource( 58 ), SubResource( 59 ), SubResource( 60 ), SubResource( 61 ), SubResource( 62 ) ],
|
||||
"loop": true,
|
||||
"name": "Hit",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ) ],
|
||||
"loop": true,
|
||||
"name": "Death",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 25 ), SubResource( 26 ), SubResource( 27 ), SubResource( 28 ), SubResource( 29 ), SubResource( 30 ), SubResource( 31 ), SubResource( 32 ), SubResource( 33 ), SubResource( 34 ), SubResource( 35 ), SubResource( 36 ) ],
|
||||
"loop": true,
|
||||
"name": "Walk",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 37 ), SubResource( 38 ), SubResource( 39 ), SubResource( 40 ), SubResource( 41 ), SubResource( 42 ) ],
|
||||
"frames": [ SubResource( 43 ), SubResource( 44 ), SubResource( 45 ), SubResource( 46 ), SubResource( 47 ), SubResource( 48 ), SubResource( 49 ), SubResource( 50 ), SubResource( 51 ), SubResource( 52 ), SubResource( 53 ), SubResource( 54 ), SubResource( 55 ), SubResource( 56 ), SubResource( 57 ) ],
|
||||
"loop": true,
|
||||
"name": "Idle",
|
||||
"speed": 5.0
|
||||
"name": "Attack",
|
||||
"speed": 15.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=64]
|
||||
@@ -299,7 +299,7 @@ position = Vector2( 2, -15 )
|
||||
scale = Vector2( 0.5, 0.5 )
|
||||
frames = SubResource( 63 )
|
||||
animation = "Idle"
|
||||
frame = 5
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
export var fireball: PackedScene
|
||||
|
||||
var player: KinematicBody2D = null
|
||||
var move: Vector2 = Vector2.ZERO
|
||||
const SPEED: int = 50
|
||||
var counter: int = 0
|
||||
var velocity: Vector2 = Vector2.ZERO
|
||||
var health: int = 4
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
visible = false
|
||||
return
|
||||
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
velocity = Vector2.ZERO
|
||||
|
||||
if player and position.distance_to(player.position) > 1:
|
||||
velocity = position.direction_to(player.position).normalized() * SPEED
|
||||
|
||||
velocity = move_and_slide(velocity)
|
||||
return
|
||||
|
||||
|
||||
func _on_Area2D_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = body
|
||||
if counter == 0:
|
||||
self.visible = true
|
||||
$AnimatedSprite.play('appear')
|
||||
counter = 1
|
||||
return
|
||||
|
||||
|
||||
func _on_AnimatedSprite_animation_finished() -> void:
|
||||
$AnimatedSprite.play('idle')
|
||||
return
|
||||
|
||||
|
||||
func _on_Hitbox_area_entered(area: Area2D) -> void:
|
||||
if area.is_in_group('player_weapon_1'):
|
||||
health -= 1
|
||||
elif area.is_in_group('player_weapon_2'):
|
||||
health -= 2
|
||||
if health <= 0:
|
||||
$AnimatedSprite.play('vanish')
|
||||
yield($AnimatedSprite, 'animation_finished')
|
||||
call_deferred('queue_free')
|
||||
return
|
||||
|
||||
|
||||
func _on_Projectile_Timer_timeout() -> void:
|
||||
if player:
|
||||
var projectile: Node = fireball.instance()
|
||||
projectile.init($AnimatedSprite.global_position, player.position)
|
||||
get_tree().get_current_scene().get_node('Projectiles').add_child(projectile)
|
||||
$AnimatedSprite.play('shriek')
|
||||
return
|
||||
@@ -4,7 +4,7 @@
|
||||
[ext_resource path="res://Sprites/Assets/ghost-idle.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Sprites/Assets/ghost-shriek.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Sprites/Assets/ghost-vanish.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Enemies/Ghost_Enemy.gd" type="Script" id=5]
|
||||
[ext_resource path="res://Enemies/Ghost Enemy.gd" type="Script" id=5]
|
||||
[ext_resource path="res://Enemies/Projectiles/Fireball.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Sprites/Levels/Environment/Fire_Column_Medium_14.png" type="Texture" id=7]
|
||||
|
||||
@@ -36,29 +36,21 @@ region = Rect2( 320, 0, 64, 80 )
|
||||
atlas = ExtResource( 2 )
|
||||
region = Rect2( 384, 0, 64, 80 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=8]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 0, 0, 64, 48 )
|
||||
[sub_resource type="AtlasTexture" id=23]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 128, 0, 64, 80 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=9]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 64, 0, 64, 48 )
|
||||
[sub_resource type="AtlasTexture" id=24]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 192, 0, 64, 80 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=10]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 128, 0, 64, 48 )
|
||||
[sub_resource type="AtlasTexture" id=22]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 64, 0, 64, 80 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=11]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 192, 0, 64, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=12]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 256, 0, 64, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=13]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 320, 0, 64, 48 )
|
||||
[sub_resource type="AtlasTexture" id=21]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 64, 80 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=14]
|
||||
atlas = ExtResource( 4 )
|
||||
@@ -88,21 +80,29 @@ region = Rect2( 320, 0, 64, 64 )
|
||||
atlas = ExtResource( 4 )
|
||||
region = Rect2( 384, 0, 64, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=23]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 128, 0, 64, 80 )
|
||||
[sub_resource type="AtlasTexture" id=8]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 0, 0, 64, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=24]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 192, 0, 64, 80 )
|
||||
[sub_resource type="AtlasTexture" id=9]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 64, 0, 64, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=22]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 64, 0, 64, 80 )
|
||||
[sub_resource type="AtlasTexture" id=10]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 128, 0, 64, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=21]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 64, 80 )
|
||||
[sub_resource type="AtlasTexture" id=11]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 192, 0, 64, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=12]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 256, 0, 64, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=13]
|
||||
atlas = ExtResource( 1 )
|
||||
region = Rect2( 320, 0, 64, 48 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=25]
|
||||
animations = [ {
|
||||
@@ -111,9 +111,9 @@ animations = [ {
|
||||
"name": "idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ) ],
|
||||
"frames": [ SubResource( 23 ), SubResource( 24 ), SubResource( 22 ), SubResource( 21 ) ],
|
||||
"loop": true,
|
||||
"name": "appear",
|
||||
"name": "shriek",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ) ],
|
||||
@@ -121,9 +121,9 @@ animations = [ {
|
||||
"name": "vanish",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 23 ), SubResource( 24 ), SubResource( 22 ), SubResource( 21 ) ],
|
||||
"frames": [ SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ) ],
|
||||
"loop": true,
|
||||
"name": "shriek",
|
||||
"name": "appear",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
@@ -144,10 +144,10 @@ orbit_velocity_random = 0.0
|
||||
color = Color( 0.729412, 0, 0, 1 )
|
||||
hue_variation = 1.0
|
||||
|
||||
[node name="KinematicBody2D" type="KinematicBody2D"]
|
||||
[node name="Ghost Enemy" type="KinematicBody2D"]
|
||||
z_index = 2
|
||||
script = ExtResource( 5 )
|
||||
Fireball = ExtResource( 6 )
|
||||
fireball = ExtResource( 6 )
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
frames = SubResource( 25 )
|
||||
@@ -165,9 +165,7 @@ shape = SubResource( 26 )
|
||||
position = Vector2( 0.530334, 11.3032 )
|
||||
shape = SubResource( 27 )
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." groups=[
|
||||
"enemy_hitbox_1",
|
||||
]]
|
||||
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox_1"]]
|
||||
light_mask = 0
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
@@ -1,61 +0,0 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a: int = 2
|
||||
# var b: String = "text"
|
||||
export var Fireball: PackedScene
|
||||
onready var player = null
|
||||
var move = Vector2.ZERO
|
||||
var SPEED = 50
|
||||
var counter = 0
|
||||
var velocity: Vector2 = Vector2.ZERO
|
||||
var health: int = 4
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
self.visible = false
|
||||
|
||||
|
||||
func _physics_process(delta):
|
||||
velocity = Vector2.ZERO
|
||||
|
||||
if player and position.distance_to(player.position) > 1:
|
||||
velocity = position.direction_to(player.position).normalized() * SPEED
|
||||
velocity = move_and_slide(velocity)
|
||||
|
||||
|
||||
|
||||
func _on_Area2D_body_entered(body):
|
||||
if body.is_in_group('player'):
|
||||
player = body
|
||||
if counter == 0:
|
||||
self.visible = true
|
||||
$AnimatedSprite.play("appear")
|
||||
counter = 1
|
||||
|
||||
|
||||
|
||||
func _on_AnimatedSprite_animation_finished():
|
||||
$AnimatedSprite.play("idle")
|
||||
|
||||
|
||||
func _on_Hitbox_area_entered(area):
|
||||
if area.is_in_group('player_weapon_1'):
|
||||
health -= 1
|
||||
elif area.is_in_group('player_weapon_2'):
|
||||
health -= 2
|
||||
if health <= 0:
|
||||
$AnimatedSprite.play("vanish")
|
||||
yield($AnimatedSprite, "animation_finished")
|
||||
call_deferred('queue_free')
|
||||
return
|
||||
|
||||
|
||||
func _on_Projectile_Timer_timeout():
|
||||
if player:
|
||||
var projectile: Node = Fireball.instance()
|
||||
projectile.init($AnimatedSprite.global_position, player.position)
|
||||
get_tree().get_current_scene().get_node('Projectiles').add_child(projectile)
|
||||
$AnimatedSprite.play("shriek")
|
||||
@@ -1,47 +1,49 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
onready var SNOWBALL_BLUE_SCENE = preload("res://Enemies/Snowball Blue.tscn")
|
||||
onready var SNOWBALL_BLUE_SCENE: Resource = preload('res://Enemies/Snowball Blue.tscn')
|
||||
|
||||
var player = null
|
||||
var move = Vector2.ZERO
|
||||
var speed = .5
|
||||
var player: KinematicBody2D = null
|
||||
var velocity: Vector2 = Vector2.ZERO
|
||||
const SPEED: int = 50
|
||||
var health: int = 2
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
move = Vector2.ZERO
|
||||
func _physics_process(_delta: float) -> void:
|
||||
velocity = Vector2.ZERO
|
||||
|
||||
if player != null:
|
||||
move = position.direction_to(player.position) * speed
|
||||
else:
|
||||
move = Vector2.ZERO
|
||||
|
||||
move = move.normalized()
|
||||
move = move_and_collide(move)
|
||||
if player and position.distance_to(player.position) > 1:
|
||||
velocity = position.direction_to(player.position).normalized() * SPEED
|
||||
|
||||
velocity = move_and_slide(velocity)
|
||||
return
|
||||
|
||||
|
||||
func _on_Area2D_body_entered(body: Node) -> void:
|
||||
if body != self && !(body.name.begins_with("tree")) && !(body.name.begins_with("snowmen_enemy")) && !(body.name.begins_with("wall")):
|
||||
player = body
|
||||
return
|
||||
|
||||
|
||||
func _on_Area2D_body_exited(body: Node) -> void:
|
||||
if !(body.name.begins_with("tree")) && !(body.name.begins_with("snowmen_enemy")) && !(body.name.begins_with("wall")):
|
||||
player = null
|
||||
return
|
||||
|
||||
|
||||
func fire():
|
||||
func fire() -> void:
|
||||
var snowball = SNOWBALL_BLUE_SCENE.instance()
|
||||
snowball.position = get_global_position()
|
||||
snowball.player = player
|
||||
get_parent().add_child(snowball)
|
||||
$Timer.set_wait_time(1)
|
||||
return
|
||||
|
||||
|
||||
func _on_Timer_timeout() -> void:
|
||||
if player != null:
|
||||
fire()
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_entered(area: Area2D) -> void:
|
||||
if area.get_parent().name == 'Player':
|
||||
@@ -49,10 +51,11 @@ func _on_player_detector_area_entered(area: Area2D) -> void:
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_exited(_area: Area2D):
|
||||
func _on_player_detector_area_exited(_area: Area2D) -> void:
|
||||
player = null
|
||||
return
|
||||
|
||||
|
||||
func _on_hitbox_area_entered(area: Area2D) -> void:
|
||||
if area.is_in_group('player_weapon_1'):
|
||||
health -= 1
|
||||
|
||||
@@ -1,47 +1,48 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
onready var SNOWBALL_SCENE = preload("res://Enemies/Snowball.tscn")
|
||||
onready var SNOWBALL_SCENE: Resource = preload('res://Enemies/Snowball.tscn')
|
||||
|
||||
var player = null
|
||||
var move = Vector2.ZERO
|
||||
var speed = .5
|
||||
var player: KinematicBody2D = null
|
||||
var velocity: Vector2 = Vector2.ZERO
|
||||
const SPEED: int = 50
|
||||
var health: int = 2
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
move = Vector2.ZERO
|
||||
func _physics_process(_delta: float) -> void:
|
||||
velocity = Vector2.ZERO
|
||||
|
||||
if player != null:
|
||||
move = position.direction_to(player.position) * speed
|
||||
else:
|
||||
move = Vector2.ZERO
|
||||
|
||||
move = move.normalized()
|
||||
move = move_and_collide(move)
|
||||
if player and position.distance_to(player.position) > 1:
|
||||
velocity = position.direction_to(player.position).normalized() * SPEED
|
||||
|
||||
velocity = move_and_slide(velocity)
|
||||
return
|
||||
|
||||
|
||||
func _on_Area2D_body_entered(body: Node) -> void:
|
||||
if body != self && !(body.name.begins_with("tree")) && !(body.name.begins_with("snowmen_enemy")) && !(body.name.begins_with("wall")):
|
||||
player = body
|
||||
return
|
||||
|
||||
|
||||
func _on_Area2D_body_exited(body: Node) -> void:
|
||||
if !(body.name.begins_with("tree")) && !(body.name.begins_with("snowmen_enemy")) && !(body.name.begins_with("wall")):
|
||||
player = null
|
||||
return
|
||||
|
||||
|
||||
func fire():
|
||||
func fire() -> void:
|
||||
var snowball = SNOWBALL_SCENE.instance()
|
||||
snowball.position = get_global_position()
|
||||
snowball.player = player
|
||||
get_parent().add_child(snowball)
|
||||
$Timer.set_wait_time(1)
|
||||
return
|
||||
|
||||
|
||||
func _on_Timer_timeout() -> void:
|
||||
if player != null:
|
||||
fire()
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_entered(area: Area2D) -> void:
|
||||
@@ -50,12 +51,12 @@ func _on_player_detector_area_entered(area: Area2D) -> void:
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_exited(_area: Area2D):
|
||||
func _on_player_detector_area_exited(_area: Area2D) -> void:
|
||||
player = null
|
||||
return
|
||||
|
||||
|
||||
func _on_hitbox_area_entered(area: Area2D) -> void:
|
||||
print("HIT")
|
||||
if area.is_in_group('player_weapon_1'):
|
||||
health -= 1
|
||||
elif area.is_in_group('player_weapon_2'):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
extends Label
|
||||
|
||||
signal timer_end
|
||||
signal timer_out
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
@@ -8,5 +8,5 @@ func _process(_delta: float) -> void:
|
||||
set_text('%02d:%02d' % [time_seconds, int(($Timer.get_time_left() - time_seconds) * 100)])
|
||||
|
||||
if $Timer.get_time_left() == 0:
|
||||
get_tree().change_scene('res://Levels/Hub World.tscn')
|
||||
emit_signal('timer_out')
|
||||
return
|
||||
@@ -0,0 +1,35 @@
|
||||
extends CanvasLayer
|
||||
|
||||
export var credits_path: String = 'res://credits.txt'
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
_load_credits()
|
||||
return
|
||||
|
||||
|
||||
func _load_credits() -> void:
|
||||
var credits_file: File = File.new()
|
||||
assert(credits_file.file_exists(credits_path), 'Credits file does not exist')
|
||||
assert(credits_file.open(credits_path, File.READ) == OK, 'Credits file failed to open')
|
||||
|
||||
while not credits_file.eof_reached():
|
||||
var line: String = credits_file.get_line()
|
||||
if line == '':
|
||||
continue
|
||||
|
||||
var label: Label = Label.new()
|
||||
label.set_custom_minimum_size(Vector2(3200, 0))
|
||||
label.set_align(Label.ALIGN_CENTER)
|
||||
label.set_valign(Label.VALIGN_CENTER)
|
||||
label.set_autowrap(true)
|
||||
label.set_text(line)
|
||||
$'Credits/Credits Items'.add_child(label)
|
||||
credits_file.close()
|
||||
return
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed('ui_cancel'):
|
||||
queue_free()
|
||||
return
|
||||
@@ -0,0 +1,43 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/Black_Background.png" type="Texture" id=1]
|
||||
[ext_resource path="res://GUI/Credits.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Fonts/TheLittleBonjour.ttf" type="DynamicFontData" id=3]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 60
|
||||
extra_spacing_top = 30
|
||||
extra_spacing_bottom = 30
|
||||
extra_spacing_char = 2
|
||||
font_data = ExtResource( 3 )
|
||||
|
||||
[sub_resource type="Theme" id=2]
|
||||
default_font = SubResource( 1 )
|
||||
|
||||
[node name="Credits" type="CanvasLayer"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Background" type="TextureRect" parent="."]
|
||||
light_mask = 0
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
rect_min_size = Vector2( 320, 180 )
|
||||
texture = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Credits" type="ScrollContainer" parent="."]
|
||||
rect_min_size = Vector2( 3200, 1800 )
|
||||
rect_scale = Vector2( 0.1, 0.1 )
|
||||
scroll_horizontal_enabled = false
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Credits Items" type="VBoxContainer" parent="Credits"]
|
||||
light_mask = 0
|
||||
margin_right = 3200.0
|
||||
margin_bottom = 1800.0
|
||||
rect_min_size = Vector2( 3200, 1800 )
|
||||
theme = SubResource( 2 )
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=15 format=2]
|
||||
[gd_scene load_steps=16 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/Black_Background.png" type="Texture" id=1]
|
||||
[ext_resource path="res://GUI/Level Ending.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Resources/Ash.tres" type="DynamicFontData" id=3]
|
||||
[ext_resource path="res://Sprites/Assets/Smol_P.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Music/Level_Complete.mp3" type="AudioStream" id=5]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
font_data = ExtResource( 3 )
|
||||
@@ -82,6 +83,7 @@ __meta__ = {
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( 160, 120 )
|
||||
frames = SubResource( 10 )
|
||||
frame = 6
|
||||
playing = true
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
@@ -89,4 +91,9 @@ wait_time = 4.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[node name="BGM" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 5 )
|
||||
volume_db = -10.0
|
||||
autoplay = true
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=15 format=2]
|
||||
[gd_scene load_steps=16 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/Black_Background.png" type="Texture" id=1]
|
||||
[ext_resource path="res://GUI/Level Ending.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Resources/Ash.tres" type="DynamicFontData" id=3]
|
||||
[ext_resource path="res://Sprites/Assets/Smol_P.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Music/Level_Failed.wav" type="AudioStream" id=5]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
font_data = ExtResource( 3 )
|
||||
@@ -82,7 +83,7 @@ __meta__ = {
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( 160, 120 )
|
||||
frames = SubResource( 10 )
|
||||
frame = 7
|
||||
frame = 5
|
||||
playing = true
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
@@ -90,4 +91,9 @@ wait_time = 4.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[node name="BGM" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 5 )
|
||||
volume_db = -10.0
|
||||
autoplay = true
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
@@ -2,12 +2,20 @@ extends CanvasLayer
|
||||
|
||||
signal complete(option)
|
||||
|
||||
export var credits_scene_path: String = 'res://GUI/Credits.tscn'
|
||||
|
||||
|
||||
func _on_new_game_button_pressed() -> void:
|
||||
emit_signal('complete', 'new game')
|
||||
return
|
||||
|
||||
|
||||
func _on_credits_button_pressed() -> void:
|
||||
var credits_scene: Node = load(credits_scene_path).instance()
|
||||
add_child(credits_scene)
|
||||
return
|
||||
|
||||
|
||||
func _on_quit_button_pressed() -> void:
|
||||
get_tree().quit()
|
||||
return
|
||||
|
||||
@@ -139,5 +139,6 @@ volume_db = -16.0
|
||||
[connection signal="pressed" from="Menu/Menu Elements/Menu Options/New Game/New Game Button" to="." method="_on_new_game_button_pressed"]
|
||||
[connection signal="mouse_entered" from="Menu/Menu Elements/Menu Options/Settings/Settings Button" to="." method="_on_settings_button_mouse_entered"]
|
||||
[connection signal="mouse_entered" from="Menu/Menu Elements/Menu Options/Credits/Credits Button" to="." method="_on_credits_button_mouse_entered"]
|
||||
[connection signal="pressed" from="Menu/Menu Elements/Menu Options/Credits/Credits Button" to="." method="_on_credits_button_pressed"]
|
||||
[connection signal="mouse_entered" from="Menu/Menu Elements/Menu Options/Quit/Quit Button" to="." method="_on_quit_button_mouse_entered"]
|
||||
[connection signal="pressed" from="Menu/Menu Elements/Menu Options/Quit/Quit Button" to="." method="_on_quit_button_pressed"]
|
||||
@@ -1,21 +0,0 @@
|
||||
extends Area2D
|
||||
|
||||
onready var portal = get_node("../PortalDarkForest")
|
||||
onready var shape = portal.get_child(0)
|
||||
# Declare member variables here. Examples:
|
||||
# var a: int = 2
|
||||
# var b: String = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
shape.set_deferred("disabled",true)
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta: float) -> void:
|
||||
# pass
|
||||
|
||||
|
||||
func _on_ChestDetection_body_entered(body: Node) -> void:
|
||||
shape.set_deferred("disabled",false)
|
||||
@@ -1,25 +1,13 @@
|
||||
extends Camera2D
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a: int = 2
|
||||
# var b: String = "text"
|
||||
signal enter_portal
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta: float) -> void:
|
||||
# pass
|
||||
|
||||
|
||||
func _on_PortalDarkForest_body_entered(body: Node) -> void:
|
||||
self.limit_bottom = -224
|
||||
self.limit_top = -736
|
||||
self.limit_left = -32
|
||||
self.limit_right = 448
|
||||
var player = get_parent()
|
||||
player.position = Vector2(256,-232)
|
||||
func _on_PortalDarkForest_body_entered(_body: Node) -> void:
|
||||
limit_bottom = -224
|
||||
limit_top = -736
|
||||
limit_left = -32
|
||||
limit_right = 448
|
||||
get_parent().position = Vector2(256, -232)
|
||||
emit_signal('enter_portal')
|
||||
return
|
||||
@@ -0,0 +1,15 @@
|
||||
extends Area2D
|
||||
|
||||
onready var portal = get_node('../PortalDarkForest')
|
||||
onready var shape = portal.get_child(0)
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
shape.set_deferred('disabled', true)
|
||||
return
|
||||
|
||||
|
||||
func _on_chest_detection_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
shape.set_deferred('disabled', false)
|
||||
return
|
||||
@@ -0,0 +1,6 @@
|
||||
extends Node2D
|
||||
|
||||
var dialog = get_parent().get_node('HUD/Control')
|
||||
|
||||
func _on_Area2D_body_entered(body):
|
||||
dialog.visible = true
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=11 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Levels/Hub World.gd" type="Script" id=2]
|
||||
@@ -7,6 +7,7 @@
|
||||
[ext_resource path="res://Sprites/Levels/Tilesets/Hub_World_Grass_Atlas.png" type="Texture" id=5]
|
||||
[ext_resource path="res://Sprites/Assets/Black_Tile.png" type="Texture" id=6]
|
||||
[ext_resource path="res://Levels/Interactables/Level Portal.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://Music/Hub_World.mp3" type="AudioStream" id=8]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=2]
|
||||
points = PoolVector2Array( 0, 0, 2, 0, 2, 2, 0, 2 )
|
||||
@@ -125,3 +126,8 @@ level_path = "res://Levels/Level 5.tscn"
|
||||
|
||||
[node name="Pause Screen" parent="." instance=ExtResource( 4 )]
|
||||
disable_back_to_hub = true
|
||||
|
||||
[node name="BGM" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 8 )
|
||||
volume_db = -10.0
|
||||
autoplay = true
|
||||
@@ -3,8 +3,8 @@ extends Area2D
|
||||
signal coin_grabbed
|
||||
|
||||
|
||||
func _on_Node2D_body_entered(body: Node) -> void:
|
||||
if body.get_name() == 'Player':
|
||||
emit_signal("coin_grabbed")
|
||||
print("coin!")
|
||||
queue_free()
|
||||
func _on_coin_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
emit_signal('coin_grabbed')
|
||||
call_deferred('queue_free')
|
||||
return
|
||||
@@ -6,7 +6,7 @@
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 6.38067
|
||||
|
||||
[node name="coin" type="Area2D"]
|
||||
[node name="Coin" type="Area2D"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
@@ -16,4 +16,4 @@ texture = ExtResource( 2 )
|
||||
[node name="coin" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_Node2D_body_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_coin_body_entered"]
|
||||
@@ -1,24 +1,11 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a: int = 2
|
||||
# var b: String = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta: float) -> void:
|
||||
# pass
|
||||
|
||||
|
||||
func _on_AnimationPlayer_animation_finished(anim_name: String) -> void:
|
||||
func _on_AnimationPlayer_animation_finished(_anim_name: String) -> void:
|
||||
$GemSprite.visible = false
|
||||
return
|
||||
|
||||
|
||||
func _on_AnimationPlayer_animation_started(anim_name: String) -> void:
|
||||
func _on_AnimationPlayer_animation_started(_anim_name: String) -> void:
|
||||
$GemSprite.visible = true
|
||||
return
|
||||
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/JournalScrap.png" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource( 1 )
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=8 format=2]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/galaxy_background.png" type="Texture" id=1]
|
||||
[ext_resource path="res://GUI/HUD.tscn" type="PackedScene" id=2]
|
||||
@@ -7,6 +7,7 @@
|
||||
[ext_resource path="res://Levels/Level 1.gd" type="Script" id=5]
|
||||
[ext_resource path="res://Enemies/Dark Matter.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Levels/Interactables/Star.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://Music/Level_1.mp3" type="AudioStream" id=8]
|
||||
|
||||
[node name="Space Level" type="Node2D"]
|
||||
script = ExtResource( 5 )
|
||||
@@ -73,6 +74,11 @@ mode = 1
|
||||
build_mode = 1
|
||||
polygon = PoolVector2Array( 0.762451, -22.0982, 427.859, -18.7308, 425.053, 245.609, -22.248, 248.976, -21.1256, -22.6594, -0.589813, -21.9661, -0.589806, 225.272, 400.359, 224.843, 399.969, -0.312477, 0.455406, -0.154987 )
|
||||
|
||||
[node name="BGM" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 8 )
|
||||
volume_db = -7.0
|
||||
autoplay = true
|
||||
|
||||
[connection signal="death" from="YSort/Enemies/Dark Matter" to="." method="_on_dark_matter_death"]
|
||||
[connection signal="death" from="YSort/Enemies/Dark Matter2" to="." method="_on_dark_matter_death"]
|
||||
[connection signal="death" from="YSort/Enemies/Dark Matter3" to="." method="_on_dark_matter_death"]
|
||||
|
||||
@@ -1,7 +1,18 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
#$YSort/Player.position = get_viewport_rect().size / 2
|
||||
$YSort/Player.position = Vector2(0,0)
|
||||
$YSort/Player.load_hud($HUD)
|
||||
return
|
||||
|
||||
|
||||
func _on_journal_page_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
$'HUD/Journal Page Dialogue'.visible = true
|
||||
return
|
||||
|
||||
|
||||
func _on_Camera2D_enter_portal() -> void:
|
||||
$BGM1.stop()
|
||||
$BGM2.play()
|
||||
return
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=85 format=2]
|
||||
[gd_scene load_steps=91 format=2]
|
||||
|
||||
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Levels/Level 2.gd" type="Script" id=2]
|
||||
@@ -8,15 +8,20 @@
|
||||
[ext_resource path="res://Levels/Objects/Chest.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Sprites/Assets/cliffTileset.png" type="Texture" id=7]
|
||||
[ext_resource path="res://GUI/HUD.tscn" type="PackedScene" id=8]
|
||||
[ext_resource path="res://Enemies/Ghost_Enemy.tscn" type="PackedScene" id=9]
|
||||
[ext_resource path="res://Enemies/Ghost Enemy.tscn" type="PackedScene" id=9]
|
||||
[ext_resource path="res://Sprites/Assets/DeadTree.png" type="Texture" id=10]
|
||||
[ext_resource path="res://Sprites/Assets/darkForestTileset.png" type="Texture" id=11]
|
||||
[ext_resource path="res://Levels/Area2D.gd" type="Script" id=12]
|
||||
[ext_resource path="res://Levels/Chest Detection.gd" type="Script" id=12]
|
||||
[ext_resource path="res://Levels/Camera2D.gd" type="Script" id=13]
|
||||
[ext_resource path="res://Sprites/Assets/Shadow.png" type="Texture" id=14]
|
||||
[ext_resource path="res://Levels/Traps/Spawn Trap.tscn" type="PackedScene" id=15]
|
||||
[ext_resource path="res://Sprites/Assets/Skull.png" type="Texture" id=16]
|
||||
[ext_resource path="res://Sprites/Assets/grassPatch.png" type="Texture" id=17]
|
||||
[ext_resource path="res://Sprites/Assets/JournalScrap.png" type="Texture" id=18]
|
||||
[ext_resource path="res://Levels/Objects/Dialogue.tscn" type="PackedScene" id=19]
|
||||
[ext_resource path="res://Music/Level_2_2.mp3" type="AudioStream" id=20]
|
||||
[ext_resource path="res://Music/Level_2_1.mp3" type="AudioStream" id=21]
|
||||
[ext_resource path="res://Levels/Portal Dark Forest.gd" type="Script" id=22]
|
||||
|
||||
[sub_resource type="TileSet" id=1]
|
||||
0/name = "darkForestTileset.png 0"
|
||||
@@ -767,6 +772,8 @@ points = PoolVector2Array( 34.2487, 55.6436, 7.92332, 55.4821, 14.222, 39.5738,
|
||||
8/shapes = [ ]
|
||||
8/z_index = 0
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=68]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=65]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=66]
|
||||
@@ -882,12 +889,19 @@ format = 1
|
||||
tile_data = PoolIntArray( -2883568, 6, 0, -2818047, 6, 0, -2818023, 6, 0, -2752509, 6, 0, -2752505, 6, 0, -2752501, 6, 0, -2686971, 6, 0, -2686967, 6, 0, -2686953, 6, 0, -2686952, 6, 0, -2621440, 6, 0, -2555884, 6, 0, -2490345, 6, 0, -2359285, 3, 2, -2359274, 3, 2, -2293753, 3, 1, -2293745, 6, 0, -2293741, 6, 0, -2162686, 6, 0, -1966061, 6, 0, -1966055, 6, 0, -1900544, 3, 2, -1900518, 3, 2, -1834988, 6, 0, -1834986, 6, 0, -1769466, 6, 0, -1769453, 6, 0, -1769450, 6, 0, -1703932, 6, 0, -1703930, 6, 0, -1703915, 6, 0, -1638400, 6, 0, -1572858, 6, 0, -1572838, 3, 2, -1507308, 6, 0, -1441790, 6, 0, -1441788, 6, 0, -1441782, 3, 1, -1441771, 6, 0, -1376253, 6, 0, -1376233, 6, 0, -1245184, 3, 2, -1245182, 6, 0, -1245177, 6, 0, -1179630, 6, 0, -1114090, 3, 2, -851962, 3, 2, -851959, 3, 131072, -786431, 3, 0, -786420, 3, 65537, -720877, 1, 0, -655358, 1, 0, -655356, 1, 0, -655354, 1, 0, -655352, 1, 0, -524290, 1, 0, -589821, 1, 0, -589818, 1, 0, -589802, 3, 65537, -524287, 3, 131072, -393217, 1, 0, -458751, 1, 0, -458730, 3, 1, -327684, 3, 2, -393216, 1, 0, -393211, 1, 0, -393199, 1, 0, -393195, 3, 65538, -262146, 3, 65537, -327677, 1, 0, -327665, 1, 0, -196611, 3, 65538, -262144, 1, 0, -262142, 1, 0, -262139, 1, 0, -262127, 1, 0, -262125, 1, 0, -196593, 3, 131072, -131057, 1, 0, -131054, 1, 0, -65527, 3, 0, -65523, 3, 65537, -65514, 3, 0, 2, 1, 0, 11, 3, 65536, 17, 1, 0, 65536, 1, 0, 65537, 3, 1, 65540, 1, 0, 65551, 1, 0, 65552, 3, 65538, 65555, 1, 0, 131074, 1, 0, 131082, 1, 0, 131089, 1, 0, 196608, 1, 0, 196614, 3, 65536, 196616, 1, 0, 196630, 3, 131072, 262147, 3, 0, 262153, 0, 4, 393214, 3, 65536, 327682, 0, 3, 327687, 0, 3, 327688, 0, 131074, 327689, 0, 65536, 327692, 3, 131073, 458751, 3, 2, 393217, 0, 3, 393218, 0, 131074, 393222, 0, 131073, 393223, 0, 131074, 393224, 0, 0, 393225, 0, 65540, 393233, 3, 131074, 393238, 3, 1, 458753, 1, 0, 458754, 0, 1, 458755, 1, 0, 458757, 1, 0, 458758, 0, 1, 458759, 0, 1, 458760, 0, 65540, 458761, 3, 2, 458773, 3, 65537, 524288, 1, 0, 524291, 0, 65539, 524292, 0, 65540, 524295, 3, 131072, 524303, 3, 2, 524305, 1, 0, 524308, 3, 2, 589828, 1, 0, 589830, 1, 0, 720894, 3, 131074, 655360, 1, 0, 655361, 3, 65536, 655368, 3, 65537, 655382, 3, 1, 786434, 3, 1, 786438, 3, 0, 786440, 3, 65536, 786443, 3, 0, 786445, 3, 65537, 786453, 3, 65538, 851974, 3, 2 )
|
||||
|
||||
[node name="Collectible" type="Node2D" parent="."]
|
||||
position = Vector2( 350, 0 )
|
||||
scale = Vector2( 0.5, 0.5 )
|
||||
z_index = 4
|
||||
|
||||
[node name="Journal Scrap" type="Sprite" parent="Collectible"]
|
||||
[node name="Journal Page" type="Area2D" parent="Collectible"]
|
||||
collision_layer = 3
|
||||
collision_mask = 3
|
||||
|
||||
[node name="HUD" parent="." instance=ExtResource( 8 )]
|
||||
[node name="Sprite" type="Sprite" parent="Collectible/Journal Page"]
|
||||
texture = ExtResource( 18 )
|
||||
|
||||
[node name="Pause Screen" parent="." instance=ExtResource( 5 )]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collectible/Journal Page"]
|
||||
shape = SubResource( 68 )
|
||||
|
||||
[node name="TreasureChest" parent="." instance=ExtResource( 6 )]
|
||||
position = Vector2( 54, 170 )
|
||||
@@ -903,6 +917,7 @@ scale = Vector2( 3.08, 1.96 )
|
||||
shape = SubResource( 65 )
|
||||
|
||||
[node name="PortalDarkForest" type="Area2D" parent="TreasureChest"]
|
||||
script = ExtResource( 22 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TreasureChest/PortalDarkForest"]
|
||||
position = Vector2( 402.642, -712.75 )
|
||||
@@ -914,6 +929,7 @@ shape = SubResource( 66 )
|
||||
|
||||
[node name="Spawn Trap" parent="Traps" instance=ExtResource( 15 )]
|
||||
position = Vector2( 296.416, -364.541 )
|
||||
enemy_path = "res://Enemies/Ghost Enemy.tscn"
|
||||
|
||||
[node name="Skull" type="TileMap" parent="."]
|
||||
modulate = Color( 0.658824, 0.658824, 0.658824, 1 )
|
||||
@@ -922,5 +938,23 @@ tile_set = SubResource( 67 )
|
||||
format = 1
|
||||
tile_data = PoolIntArray( -589828, 0, 0, -458754, 0, 0, -393220, 0, 0 )
|
||||
|
||||
[connection signal="body_entered" from="TreasureChest/ChestDetection" to="TreasureChest/ChestDetection" method="_on_ChestDetection_body_entered"]
|
||||
[node name="HUD" parent="." instance=ExtResource( 8 )]
|
||||
|
||||
[node name="Journal Page Dialogue" parent="HUD" instance=ExtResource( 19 )]
|
||||
visible = false
|
||||
|
||||
[node name="Pause Screen" parent="." instance=ExtResource( 5 )]
|
||||
|
||||
[node name="BGM1" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 21 )
|
||||
volume_db = -10.0
|
||||
autoplay = true
|
||||
|
||||
[node name="BGM2" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 20 )
|
||||
volume_db = -10.0
|
||||
|
||||
[connection signal="enter_portal" from="YSort/Player/Camera2D" to="." method="_on_Camera2D_enter_portal"]
|
||||
[connection signal="body_entered" from="Collectible/Journal Page" to="." method="_on_journal_page_body_entered"]
|
||||
[connection signal="body_entered" from="TreasureChest/Chest Detection" to="TreasureChest/Chest Detection" method="_on_chest_detection_body_entered"]
|
||||
[connection signal="body_entered" from="TreasureChest/PortalDarkForest" to="YSort/Player/Camera2D" method="_on_PortalDarkForest_body_entered"]
|
||||
@@ -1,9 +1,9 @@
|
||||
extends Node2D
|
||||
|
||||
onready var coin = preload('res://Levels/Interactables/Coin.tscn')
|
||||
onready var coin: Resource = preload('res://Levels/Interactables/Coin.tscn')
|
||||
|
||||
var screensize
|
||||
var score = 0
|
||||
var screensize: Vector2
|
||||
var score: int = 0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
@@ -17,7 +17,8 @@ func spawn_coins(num: int) -> void:
|
||||
for _i in range(num):
|
||||
var g: Node = coin.instance()
|
||||
$'coin_container'.add_child(g)
|
||||
g.connect('coin_grabbed', self, '_on_coin_grabbed')
|
||||
if g.connect('coin_grabbed', self, '_on_coin_grabbed') != OK:
|
||||
print('ERROR: Coin "coin_grabbed" signal already connected.')
|
||||
#g.set_pos(Vector2(rand_range(0, screensize.x - 40), rand_range(0, screensize.y - 40)))
|
||||
g.position = Vector2(rand_range(0, screensize.x - 40), rand_range(0, screensize.y - 40))
|
||||
return
|
||||
@@ -25,13 +26,13 @@ func spawn_coins(num: int) -> void:
|
||||
|
||||
func _on_coin_grabbed() -> void:
|
||||
score += 1
|
||||
print(score)
|
||||
$'Level 3 HUD/Label'.set_text(str(score) + '/5')
|
||||
return
|
||||
|
||||
|
||||
func _timer_out() -> void:
|
||||
get_tree().change_scene('res://Levels/Hub World.tscn')
|
||||
if get_tree().change_scene('res://GUI/Level Failed.tscn') != OK:
|
||||
print('ERROR: Level 3 failed to change scene to Level Failed.')
|
||||
queue_free()
|
||||
return
|
||||
|
||||
@@ -43,15 +44,9 @@ func _on_TreasureChest_ice_key_collected() -> void:
|
||||
return
|
||||
|
||||
|
||||
func _on_DoorDetector_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
print('WIN WIN WIN')
|
||||
get_tree().change_scene('res://Levels/Hub World.tscn')
|
||||
return
|
||||
|
||||
|
||||
func _on_DoorDetector_area_entered(area: Area2D) -> void:
|
||||
if area.get_parent().name == 'Player':
|
||||
get_tree().change_scene('res://GUI/Level Complete.tscn')
|
||||
if get_tree().change_scene('res://GUI/Level Complete.tscn') != OK:
|
||||
print('ERROR: Level 3 failed to change scene to Level Complete.')
|
||||
queue_free()
|
||||
return
|
||||
@@ -127,31 +127,23 @@ position = Vector2( 250.562, 86.6365 )
|
||||
|
||||
[node name="Enemies" type="YSort" parent="YSort"]
|
||||
|
||||
[node name="Snowman 1" parent="YSort/Enemies" groups=[
|
||||
"enemies",
|
||||
] instance=ExtResource( 4 )]
|
||||
[node name="Snowman 1" parent="YSort/Enemies" groups=["enemies"] instance=ExtResource( 4 )]
|
||||
position = Vector2( 268.977, 221.859 )
|
||||
collision_layer = 4
|
||||
collision_mask = 5
|
||||
|
||||
[node name="Snowman 2" parent="YSort/Enemies" groups=[
|
||||
"enemies",
|
||||
] instance=ExtResource( 4 )]
|
||||
[node name="Snowman 2" parent="YSort/Enemies" groups=["enemies"] instance=ExtResource( 4 )]
|
||||
position = Vector2( 124.417, 123.977 )
|
||||
collision_layer = 4
|
||||
collision_mask = 5
|
||||
|
||||
[node name="Blue Snowman 1" parent="YSort/Enemies" groups=[
|
||||
"enemies",
|
||||
] instance=ExtResource( 6 )]
|
||||
[node name="Blue Snowman 1" parent="YSort/Enemies" groups=["enemies"] instance=ExtResource( 6 )]
|
||||
position = Vector2( 252.747, 40.9419 )
|
||||
collision_layer = 4
|
||||
collision_mask = 5
|
||||
script = ExtResource( 7 )
|
||||
|
||||
[node name="Blue Snowman 2" parent="YSort/Enemies" groups=[
|
||||
"enemies",
|
||||
] instance=ExtResource( 6 )]
|
||||
[node name="Blue Snowman 2" parent="YSort/Enemies" groups=["enemies"] instance=ExtResource( 6 )]
|
||||
position = Vector2( 105.053, 195.4 )
|
||||
collision_layer = 4
|
||||
collision_mask = 5
|
||||
@@ -233,3 +225,4 @@ autoplay = true
|
||||
[connection signal="ice_key_collected" from="YSort/TreasureChest" to="." method="_on_TreasureChest_ice_key_collected"]
|
||||
[connection signal="frozen" from="YSort/Player" to="Effects/SlowTime" method="start"]
|
||||
[connection signal="unfreeze" from="Effects/SlowTime" to="YSort/Player" method="_on_SlowTime_unfreeze"]
|
||||
[connection signal="timer_out" from="HUD/Countdown Timer" to="." method="_timer_out"]
|
||||
@@ -26,5 +26,12 @@ func _on_NextArea_area_entered(area: Area2D) -> void:
|
||||
|
||||
|
||||
func _on_Demon_Boss_demon_boss_death() -> void:
|
||||
get_tree().change_scene('res://GUI/Level Complete.tscn')
|
||||
$Timer.start()
|
||||
return
|
||||
|
||||
|
||||
func _on_Timer_timeout() -> void:
|
||||
if get_tree().change_scene('res://GUI/Level Complete.tscn') != OK:
|
||||
print('ERROR: Level 4 failed to change scene to Level Complete.')
|
||||
queue_free()
|
||||
return
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=31 format=2]
|
||||
[gd_scene load_steps=32 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Levels/Environment/Fire_Column_Medium_12.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Enemies/Hellhound.tscn" type="PackedScene" id=2]
|
||||
@@ -24,6 +24,7 @@
|
||||
[ext_resource path="res://GUI/Pause Screen.tscn" type="PackedScene" id=22]
|
||||
[ext_resource path="res://GUI/HUD.tscn" type="PackedScene" id=23]
|
||||
[ext_resource path="res://Enemies/Flaming Skull.tscn" type="PackedScene" id=24]
|
||||
[ext_resource path="res://Music/Level_4.mp3" type="AudioStream" id=25]
|
||||
[ext_resource path="res://Enemies/Demon Boss.tscn" type="PackedScene" id=26]
|
||||
|
||||
[sub_resource type="SpriteFrames" id=1]
|
||||
@@ -81,26 +82,40 @@ tile_set = ExtResource( 15 )
|
||||
cell_size = Vector2( 16, 16 )
|
||||
cell_custom_transform = Transform2D( 16, 0, 0, 16, 0, 0 )
|
||||
format = 1
|
||||
tile_data = PoolIntArray( -2686978, 0, 5, -2686977, 0, 196610, -2752512, 0, 196610, -2752511, 0, 196610, -2752510, 0, 196610, -2752509, 0, 196610, -2752508, 0, 196610, -2752507, 0, 196610, -2752506, 0, 196610, -2752505, 0, 196610, -2752504, 0, 196610, -2752503, 0, 196610, -2752502, 0, 196610, -2752501, 0, 196610, -2752500, 0, 196610, -2752499, 0, 196610, -2752498, 0, 196610, -2752497, 0, 196610, -2752496, 0, 196610, -2752495, 0, 196610, -2752494, 0, 196610, -2752493, 0, 196610, -2752492, 0, 196610, -2752491, 0, 196610, -2752490, 0, 196610, -2752489, 0, 196610, -2752488, 0, 196610, -2752487, 0, 196610, -2752486, 0, 8, -2621442, 0, 65540, -2686950, 0, 65540, -2555906, 0, 65540, -2621414, 0, 65540, -2490370, 0, 65540, -2555878, 0, 65540, -2424834, 0, 65540, -2490342, 0, 65540, -2359298, 0, 65540, -2424806, 0, 65540, -2293762, 0, 65540, -2359270, 0, 65540, -2228226, 0, 65540, -2293734, 0, 65540, -2162690, 0, 65540, -2228198, 0, 65540, -2097154, 0, 65540, -2162662, 0, 65540, -2031618, 0, 65540, -2097126, 0, 65540, -1966082, 0, 65540, -2031590, 0, 65540, -1900546, 0, 65540, -1966054, 0, 65540, -1835010, 0, 65540, -1900518, 0, 65540, -1769474, 0, 65540, -1834982, 0, 65540, -1703938, 0, 65540, -1769446, 0, 65540, -1638402, 0, 65540, -1703910, 0, 65540, -1572866, 0, 196613, -1572865, 0, 196610, -1638400, 0, 196610, -1638399, 0, 196610, -1638398, 0, 196610, -1638397, 0, 196610, -1638396, 0, 196610, -1638395, 0, 196610, -1638394, 0, 196610, -1638393, 0, 196610, -1638392, 0, 196610, -1638391, 0, 196610, -1638390, 0, 8, -1638386, 0, 5, -1638385, 0, 196610, -1638384, 0, 196610, -1638383, 0, 196610, -1638382, 0, 196610, -1638381, 0, 196610, -1638380, 0, 196610, -1638379, 0, 196610, -1638378, 0, 196610, -1638377, 0, 196610, -1638376, 0, 196610, -1638375, 0, 196610, -1638374, 0, 196616, -1572854, 0, 65540, -1572850, 0, 65540, -1507318, 0, 65540, -1507314, 0, 65540, -1441782, 0, 65540, -1441778, 0, 65540, -1376246, 0, 65540, -1376242, 0, 65540, -1310710, 0, 65540, -1310706, 0, 65540, -1245174, 0, 65540, -1245170, 0, 65540, -1179638, 0, 65540, -1179634, 0, 65540, -1114102, 0, 262149, -1114101, 0, 196610, -1114100, 0, 196610, -1114099, 0, 196610, -1114098, 0, 262152, -1048566, 0, 65540, -1048562, 0, 65540, -983030, 0, 65540, -983026, 0, 65540, -917494, 0, 65540, -917490, 0, 65540, -851958, 0, 65540, -851954, 0, 65540, -786422, 0, 65540, -786418, 0, 65540, -720886, 0, 65540, -720882, 0, 65540, -655350, 0, 65540, -655346, 0, 65540, -524290, 0, 5, -524289, 0, 196610, -589824, 0, 196610, -589823, 0, 196610, -589822, 0, 196610, -589821, 0, 196610, -589820, 0, 196610, -589819, 0, 8, -589814, 0, 65540, -589810, 0, 65540, -458754, 0, 65540, -524283, 0, 65540, -524278, 0, 65540, -524274, 0, 65540, -393218, 0, 65540, -458747, 0, 65540, -458742, 0, 65540, -458738, 0, 65540, -327682, 0, 65540, -393211, 0, 65540, -393206, 0, 65540, -393202, 0, 65540, -262146, 0, 65540, -327675, 0, 65540, -327670, 0, 65540, -327666, 0, 65540, -196610, 0, 196613, -196609, 0, 8, -262140, 0, 5, -262139, 0, 196616, -262134, 0, 65540, -262130, 0, 65540, -131073, 0, 65540, -196604, 0, 65540, -196598, 0, 65540, -196594, 0, 65540, -65537, 0, 65540, -131068, 0, 65540, -131062, 0, 65540, -131058, 0, 65540, -131049, 0, 5, -131048, 0, 196610, -131047, 0, 196610, -131046, 0, 196610, -131045, 0, 196610, -131044, 0, 8, -1, 0, 65540, -65532, 0, 196613, -65531, 0, 196610, -65530, 0, 196610, -65529, 0, 196610, -65528, 0, 196610, -65527, 0, 196610, -65526, 0, 196616, -65522, 0, 196613, -65521, 0, 196610, -65520, 0, 196610, -65519, 0, 196610, -65518, 0, 196610, -65517, 0, 196610, -65516, 0, 196610, -65515, 0, 196610, -65514, 0, 196610, -65513, 0, 196616, -65508, 0, 65540, 65535, 0, 65540, 28, 0, 65540, 131071, 0, 65540, 65564, 0, 65540, 196607, 0, 65540, 131100, 0, 65540, 262143, 0, 65540, 196611, 0, 196609, 196612, 0, 196610, 196613, 0, 196610, 196614, 0, 196611, 196618, 0, 196609, 196619, 0, 196610, 196620, 0, 196610, 196621, 0, 196611, 196625, 0, 4, 196636, 0, 65540, 327679, 0, 65540, 262161, 0, 65540, 262164, 0, 5, 262165, 0, 196610, 262166, 0, 196610, 262167, 0, 8, 262172, 0, 65540, 393215, 0, 65540, 327697, 0, 65540, 327700, 0, 65540, 327703, 0, 196613, 327704, 0, 196610, 327705, 0, 196610, 327706, 0, 196610, 327707, 0, 196610, 327708, 0, 196616, 458743, 0, 5, 458744, 0, 196610, 458745, 0, 196610, 458746, 0, 196610, 458747, 0, 196610, 458748, 0, 8, 458751, 0, 65540, 393233, 0, 65540, 393236, 0, 65540, 524279, 0, 65540, 524284, 0, 196613, 524285, 0, 196610, 524286, 0, 196610, 524287, 0, 196616, 458756, 0, 4, 458760, 0, 4, 458764, 0, 4, 458769, 0, 65540, 458772, 0, 65540, 589815, 0, 65540, 524292, 0, 131076, 524296, 0, 131076, 524300, 0, 131076, 524305, 0, 131076, 524308, 0, 65540, 655351, 0, 65540, 589844, 0, 65540, 720887, 0, 65540, 655380, 0, 65540, 786423, 0, 65540, 720916, 0, 65540, 851959, 0, 65540, 851964, 0, 5, 851965, 0, 196610, 851966, 0, 196610, 851967, 0, 196610, 786432, 0, 196610, 786433, 0, 196610, 786434, 0, 196610, 786435, 0, 196610, 786436, 0, 196610, 786Line truncated
|
||||
tile_data = PoolIntArray( -2686978, 0, 5, -2686977, 0, 196610, -2752512, 0, 196610, -2752511, 0, 196610, -2752510, 0, 196610, -2752509, 0, 196610, -2752508, 0, 196610, -2752507, 0, 196610, -2752506, 0, 196610, -2752505, 0, 196610, -2752504, 0, 196610, -2752503, 0, 196610, -2752502, 0, 196610, -2752501, 0, 196610, -2752500, 0, 196610, -2752499, 0, 196610, -2752498, 0, 196610, -2752497, 0, 196610, -2752496, 0, 196610, -2752495, 0, 196610, -2752494, 0, 196610, -2752493, 0, 196610, -2752492, 0, 196610, -2752491, 0, 196610, -2752490, 0, 196610, -2752489, 0, 196610, -2752488, 0, 196610, -2752487, 0, 196610, -2752486, 0, 8, -2621442, 0, 65540, -2686950, 0, 65540, -2555906, 0, 65540, -2621414, 0, 65540, -2490370, 0, 65540, -2555878, 0, 65540, -2424834, 0, 65540, -2490360, 0, 196609, -2490359, 0, 196610, -2490358, 0, 196610, -2490357, 0, 196610, -2490356, 0, 196610, -2490355, 0, 196610, -2490354, 0, 196610, -2490353, 0, 196610, -2490352, 0, 196611, -2490342, 0, 65540, -2359298, 0, 65540, -2424829, 0, 4, -2424810, 0, 4, -2424806, 0, 65540, -2293762, 0, 65540, -2359293, 0, 65540, -2359274, 0, 65540, -2359270, 0, 65540, -2228226, 0, 65540, -2293757, 0, 65540, -2293738, 0, 65540, -2293734, 0, 65540, -2162690, 0, 65540, -2228221, 0, 65540, -2228202, 0, 65540, -2228198, 0, 65540, -2097154, 0, 65540, -2162685, 0, 65540, -2162666, 0, 65540, -2162662, 0, 65540, -2031618, 0, 65540, -2097149, 0, 65540, -2097130, 0, 65540, -2097126, 0, 65540, -1966082, 0, 65540, -2031613, 0, 131076, -2031594, 0, 131076, -2031590, 0, 65540, -1900546, 0, 65540, -1966054, 0, 65540, -1835010, 0, 65540, -1900518, 0, 65540, -1769474, 0, 65540, -1835002, 0, 196609, -1835001, 0, 196610, -1835000, 0, 196610, -1834999, 0, 196611, -1834992, 0, 196609, -1834991, 0, 196610, -1834990, 0, 196610, -1834989, 0, 196611, -1834982, 0, 65540, -1703938, 0, 65540, -1769446, 0, 65540, -1638402, 0, 65540, -1703910, 0, 65540, -1572866, 0, 196613, -1572865, 0, 196610, -1638400, 0, 196610, -1638399, 0, 196610, -1638398, 0, 196610, -1638397, 0, 196610, -1638396, 0, 196610, -1638395, 0, 196610, -1638394, 0, 196610, -1638393, 0, 196610, -1638392, 0, 196610, -1638391, 0, 196610, -1638390, 0, 8, -1638386, 0, 5, -1638385, 0, 196610, -1638384, 0, 196610, -1638383, 0, 196610, -1638382, 0, 196610, -1638381, 0, 196610, -1638380, 0, 196610, -1638379, 0, 196610, -1638378, 0, 196610, -1638377, 0, 196610, -1638376, 0, 196610, -1638375, 0, 196610, -1638374, 0, 196616, -1572854, 0, 65540, -1572850, 0, 65540, -1507318, 0, 65540, -1507314, 0, 65540, -1441782, 0, 65540, -1441778, 0, 65540, -1376246, 0, 65540, -1376242, 0, 65540, -1310710, 0, 65540, -1310706, 0, 65540, -1245174, 0, 65540, -1245170, 0, 65540, -1179638, 0, 65540, -1179634, 0, 65540, -1114102, 0, 262149, -1114101, 0, 196610, -1114100, 0, 196610, -1114099, 0, 196610, -1114098, 0, 262152, -1048566, 0, 65540, -1048562, 0, 65540, -983030, 0, 65540, -983026, 0, 65540, -917494, 0, 65540, -917490, 0, 65540, -851958, 0, 65540, -851954, 0, 65540, -786422, 0, 65540, -786418, 0, 65540, -720886, 0, 65540, -720882, 0, 65540, -655350, 0, 65540, -655346, 0, 65540, -524290, 0, 5, -524289, 0, 196610, -589824, 0, 196610, -589823, 0, 196610, -589822, 0, 196610, -589821, 0, 196610, -589820, 0, 196610, -589819, 0, 8, -589814, 0, 65540, -589810, 0, 65540, -458754, 0, 65540, -524283, 0, 65540, -524278, 0, 65540, -524274, 0, 65540, -393218, 0, 65540, -458747, 0, 65540, -458742, 0, 65540, -458738, 0, 65540, -327682, 0, 65540, -393211, 0, 65540, -393206, 0, 65540, -393202, 0, 65540, -262146, 0, 65540, -327675, 0, 65540, -327670, 0, 65540, -327666, 0, 65540, -196610, 0, 196613, -196609, 0, 8, -262140, 0, 5, -262139, 0, 196616, -262134, 0, 65540, -262130, 0, 65540, -131073, 0, 65540, -196604, 0, 65540, -196598, 0, 65540, -196594, 0, 65540, -65537, 0, 65540, -131068, 0, 65540, -131062, 0, 65540, -131058, 0, 65540, -131049, 0, 5, -131048, 0, 196610, -131047, 0, 196610, -131046, 0, 196610, -131045, 0, 196610, -131044, 0, 8, -1, 0, 65540, -65532, 0, 196613, -65531, 0, 196610, -65530, 0, 196610, -65529, 0, 196610, -65528, 0, 196610, -65527, 0, 196610, -65526, 0, 196616, -65522, 0, 196613, -65521, 0, 196610, -65520, 0, 196610, -65519, 0, 196610, -65518, 0, 196610, -65517, 0, 196610, -65516, 0, 196610, -65515, 0, 196610, -65514, 0, 196610, -65513, 0, 196616, -65508, 0, 65540, 65535, 0, 65540, 28, 0, 65540, 131071, 0, 65540, 65564, 0, 65540, 196607, 0, 65540, 131100, 0, 65540, 262143, 0, 65540, 196611, 0, 196609, 196612, 0, 196610, 196613, 0, 196610, 196614, 0, 196611, 196618, 0, 196609, 196619, 0, 196610, 196620, 0, 196610, 196621, 0, 196611, 196625, 0, 4, 196636, 0, 65540, 327679, 0, 65540, 262161, 0, 65540, 262164, 0, 5, 262165, 0, 196610, 262166, 0, 196610, 262167, 0, 8, 262172, 0, 65540, 393215, 0, 65540, 327697, 0, 65540, 327700, 0, 65540, 327703, 0, 196613, 327704, 0, 196610, 327705, 0, 196610, 327706, 0, 196610, 327707, 0, 196610, 327708, 0, 196616, 458743, 0, 5, 458744, 0, 196610, 458745, 0, 196610, 458746, 0, 196610, 458747, 0, 196610, 458748, 0, 8, 45Line truncated
|
||||
|
||||
[node name="Fire3" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( -607.628, -210.601 )
|
||||
frames = SubResource( 1 )
|
||||
frame = 1
|
||||
frame = 9
|
||||
playing = true
|
||||
offset = Vector2( 679.819, 333.222 )
|
||||
|
||||
[node name="Fire2" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( -543.25, -212.563 )
|
||||
frames = SubResource( 1 )
|
||||
frame = 4
|
||||
frame = 12
|
||||
playing = true
|
||||
offset = Vector2( 679.819, 333.222 )
|
||||
|
||||
[node name="Fire1" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( -479.806, -214.167 )
|
||||
frames = SubResource( 1 )
|
||||
frame = 11
|
||||
frame = 5
|
||||
playing = true
|
||||
offset = Vector2( 679.819, 333.222 )
|
||||
|
||||
[node name="Fire4" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( -319, -843 )
|
||||
frames = SubResource( 1 )
|
||||
frame = 5
|
||||
playing = true
|
||||
offset = Vector2( 679.819, 333.222 )
|
||||
|
||||
[node name="Fire5" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( -623, -844 )
|
||||
frames = SubResource( 1 )
|
||||
frame = 4
|
||||
playing = true
|
||||
offset = Vector2( 679.819, 333.222 )
|
||||
|
||||
@@ -109,7 +124,7 @@ tile_set = ExtResource( 15 )
|
||||
cell_size = Vector2( 16, 16 )
|
||||
cell_custom_transform = Transform2D( 16, 0, 0, 16, 0, 0 )
|
||||
format = 1
|
||||
tile_data = PoolIntArray( -2621441, 8, 37, -2686976, 8, 38, -2686975, 8, 38, -2686974, 8, 38, -2686973, 8, 38, -2686972, 8, 38, -2686971, 8, 38, -2686970, 8, 38, -2686969, 8, 38, -2686968, 8, 38, -2686967, 8, 38, -2686966, 8, 38, -2686965, 8, 38, -2686964, 8, 38, -2686963, 8, 38, -2686962, 8, 38, -2686961, 8, 38, -2686960, 8, 38, -2686959, 8, 38, -2686958, 8, 38, -2686957, 8, 38, -2686956, 8, 38, -2686955, 8, 38, -2686954, 8, 38, -2686953, 8, 38, -2686952, 8, 38, -2686951, 8, 39, -2555905, 8, 65573, -2621440, 8, 65574, -2621439, 8, 65574, -2621438, 8, 65574, -2621437, 8, 65574, -2621436, 8, 65574, -2621435, 8, 65574, -2621434, 8, 65574, -2621433, 8, 65574, -2621432, 8, 65574, -2621431, 8, 65574, -2621430, 8, 65574, -2621429, 8, 65574, -2621428, 8, 65574, -2621427, 8, 65574, -2621426, 8, 65574, -2621425, 8, 65574, -2621424, 8, 65574, -2621423, 8, 65574, -2621422, 8, 65574, -2621421, 8, 65574, -2621420, 8, 65574, -2621419, 8, 65574, -2621418, 8, 65574, -2621417, 8, 65574, -2621416, 8, 65574, -2621415, 8, 65575, -2490369, 8, 65573, -2555904, 8, 65574, -2555903, 8, 65574, -2555902, 8, 65574, -2555901, 8, 65574, -2555900, 8, 65574, -2555899, 8, 65574, -2555898, 8, 65574, -2555897, 8, 65574, -2555896, 8, 65574, -2555895, 8, 65574, -2555894, 8, 65574, -2555893, 8, 65574, -2555892, 8, 65574, -2555891, 8, 65574, -2555890, 8, 65574, -2555889, 8, 65574, -2555888, 8, 65574, -2555887, 8, 65574, -2555886, 8, 65574, -2555885, 8, 65574, -2555884, 8, 65574, -2555883, 8, 65574, -2555882, 8, 65574, -2555881, 8, 65574, -2555880, 8, 65574, -2555879, 8, 65575, -2424833, 8, 65573, -2490368, 8, 65574, -2490367, 8, 65574, -2490366, 8, 65574, -2490365, 8, 65574, -2490364, 8, 65574, -2490363, 8, 65574, -2490362, 8, 65574, -2490361, 8, 65574, -2490360, 8, 65574, -2490359, 8, 65574, -2490358, 8, 65574, -2490357, 8, 65574, -2490356, 8, 65574, -2490355, 8, 65574, -2490354, 8, 65574, -2490353, 8, 65574, -2490352, 8, 65574, -2490351, 8, 65574, -2490350, 8, 65574, -2490349, 8, 65574, -2490348, 8, 65574, -2490347, 8, 65574, -2490346, 8, 65574, -2490345, 8, 65574, -2490344, 8, 65574, -2490343, 8, 65575, -2359297, 8, 65573, -2424832, 8, 65574, -2424831, 8, 65574, -2424830, 8, 65574, -2424829, 8, 65574, -2424828, 8, 65574, -2424827, 8, 65574, -2424826, 8, 65574, -2424825, 8, 65574, -2424824, 8, 65574, -2424823, 8, 65574, -2424822, 8, 65574, -2424821, 8, 65574, -2424820, 8, 65574, -2424819, 8, 65574, -2424818, 8, 65574, -2424817, 8, 65574, -2424816, 8, 65574, -2424815, 8, 65574, -2424814, 8, 65574, -2424813, 8, 65574, -2424812, 8, 65574, -2424811, 8, 65574, -2424810, 8, 65574, -2424809, 8, 65574, -2424808, 8, 65574, -2424807, 8, 65575, -2293761, 8, 65573, -2359296, 8, 65574, -2359295, 8, 65574, -2359294, 8, 65574, -2359293, 8, 65574, -2359292, 8, 65574, -2359291, 8, 65574, -2359290, 8, 65574, -2359289, 8, 65574, -2359288, 8, 65574, -2359287, 8, 65574, -2359286, 8, 65574, -2359285, 8, 65574, -2359284, 8, 65574, -2359283, 8, 65574, -2359282, 8, 65574, -2359281, 8, 65574, -2359280, 8, 65574, -2359279, 8, 65574, -2359278, 8, 65574, -2359277, 8, 65574, -2359276, 8, 65574, -2359275, 8, 65574, -2359274, 8, 65574, -2359273, 8, 65574, -2359272, 8, 65574, -2359271, 8, 65575, -2228225, 8, 65573, -2293760, 8, 65574, -2293759, 8, 65574, -2293758, 8, 65574, -2293757, 8, 65574, -2293756, 8, 65574, -2293755, 8, 65574, -2293754, 8, 65574, -2293753, 8, 65574, -2293752, 8, 65574, -2293751, 8, 65574, -2293750, 8, 65574, -2293749, 8, 65574, -2293748, 8, 65574, -2293747, 8, 65574, -2293746, 8, 65574, -2293745, 8, 65574, -2293744, 8, 65574, -2293743, 8, 65574, -2293742, 8, 65574, -2293741, 8, 65574, -2293740, 8, 65574, -2293739, 8, 65574, -2293738, 8, 65574, -2293737, 8, 65574, -2293736, 8, 65574, -2293735, 8, 65575, -2162689, 8, 65573, -2228224, 8, 65574, -2228223, 8, 65574, -2228222, 8, 65574, -2228221, 8, 65574, -2228220, 8, 65574, -2228219, 8, 65574, -2228218, 8, 65574, -2228217, 8, 65574, -2228216, 8, 65574, -2228215, 8, 65574, -2228214, 8, 65574, -2228213, 8, 65574, -2228212, 8, 65574, -2228211, 8, 65574, -2228210, 8, 65574, -2228209, 8, 65574, -2228208, 8, 65574, -2228207, 8, 65574, -2228206, 8, 65574, -2228205, 8, 65574, -2228204, 8, 65574, -2228203, 8, 65574, -2228202, 8, 65574, -2228201, 8, 65574, -2228200, 8, 65574, -2228199, 8, 65575, -2097153, 8, 65573, -2162688, 8, 65574, -2162687, 8, 65574, -2162686, 8, 65574, -2162685, 8, 65574, -2162684, 8, 65574, -2162683, 8, 65574, -2162682, 8, 65574, -2162681, 8, 65574, -2162680, 8, 65574, -2162679, 8, 65574, -2162678, 8, 65574, -2162677, 8, 65574, -2162676, 8, 65574, -2162675, 8, 65574, -2162674, 8, 65574, -2162673, 8, 65574, -2162672, 8, 65574, -2162671, 8, 65574, -2162670, 8, 65574, -2162669, 8, 65574, -2162668, 8, 65574, -2162667, 8, 65574, -2162666, 8, 65574, -2162665, 8, 65574, -2162664, 8, 65574, -2162663, 8, 65575, -2031617, 8, 65573, -2097152, 8, 65574, -2097151, 8, 65574, -2097150, 8, 65574, -2097149, 8, 65574, -2097148, 8, 65574, -2097147, 8, 65574, -2097146, 8, 65574, -2097145, 8, 65574, -2097144, 8, 6Line truncated
|
||||
tile_data = PoolIntArray( -2621441, 8, 37, -2686976, 8, 38, -2686975, 8, 38, -2686974, 8, 38, -2686973, 8, 38, -2686972, 8, 38, -2686971, 8, 38, -2686970, 8, 38, -2686969, 8, 38, -2686968, 8, 38, -2686967, 8, 38, -2686966, 8, 38, -2686965, 8, 38, -2686964, 8, 38, -2686963, 8, 38, -2686962, 8, 38, -2686961, 8, 38, -2686960, 8, 38, -2686959, 8, 38, -2686958, 8, 38, -2686957, 8, 38, -2686956, 8, 38, -2686955, 8, 38, -2686954, 8, 38, -2686953, 8, 38, -2686952, 8, 38, -2686951, 8, 39, -2555905, 8, 65573, -2621440, 8, 65574, -2621439, 8, 65574, -2621438, 8, 65574, -2621437, 8, 65574, -2621436, 8, 65574, -2621435, 8, 65574, -2621434, 8, 65574, -2621433, 8, 65574, -2621432, 8, 65574, -2621431, 8, 65574, -2621430, 8, 65574, -2621429, 8, 65574, -2621428, 8, 65574, -2621427, 8, 65574, -2621426, 8, 65574, -2621425, 8, 65574, -2621424, 8, 65574, -2621423, 8, 65574, -2621422, 8, 65574, -2621421, 8, 65574, -2621420, 8, 65574, -2621419, 8, 65574, -2621418, 8, 65574, -2621417, 8, 65574, -2621416, 8, 65574, -2621415, 8, 65575, -2490369, 8, 65573, -2555904, 8, 65574, -2555903, 8, 65574, -2555902, 8, 65574, -2555901, 8, 65574, -2555900, 8, 65574, -2555899, 8, 65574, -2555898, 8, 65574, -2555897, 8, 65578, -2555896, 8, 131110, -2555895, 8, 131110, -2555894, 8, 131110, -2555893, 8, 131110, -2555892, 8, 131110, -2555891, 8, 131110, -2555890, 8, 131110, -2555889, 8, 131110, -2555888, 8, 131110, -2555887, 8, 65579, -2555886, 8, 65574, -2555885, 8, 65574, -2555884, 8, 65574, -2555883, 8, 65574, -2555882, 8, 65574, -2555881, 8, 65574, -2555880, 8, 65574, -2555879, 8, 65575, -2424833, 8, 65573, -2490368, 8, 65574, -2490367, 8, 65574, -2490366, 8, 65578, -2490365, 8, 131110, -2490364, 8, 65579, -2490363, 8, 65574, -2490362, 8, 65574, -2490361, 8, 65575, -2490351, 8, 65573, -2490350, 8, 65574, -2490349, 8, 65574, -2490348, 8, 65574, -2490347, 8, 65578, -2490346, 8, 131110, -2490345, 8, 65579, -2490344, 8, 65574, -2490343, 8, 65575, -2359297, 8, 65573, -2424832, 8, 65574, -2424831, 8, 65574, -2424830, 8, 65575, -2424828, 8, 65573, -2424827, 8, 65574, -2424826, 8, 65574, -2424825, 8, 131114, -2424824, 8, 38, -2424823, 8, 38, -2424822, 8, 38, -2424821, 8, 38, -2424820, 8, 38, -2424819, 8, 38, -2424818, 8, 38, -2424817, 8, 38, -2424816, 8, 38, -2424815, 8, 131115, -2424814, 8, 65574, -2424813, 8, 65574, -2424812, 8, 65574, -2424811, 8, 65575, -2424809, 8, 65573, -2424808, 8, 65574, -2424807, 8, 65575, -2293761, 8, 65573, -2359296, 8, 65574, -2359295, 8, 65574, -2359294, 8, 65575, -2359292, 8, 65573, -2359291, 8, 65574, -2359290, 8, 65574, -2359289, 8, 65574, -2359288, 8, 65574, -2359287, 8, 65574, -2359286, 8, 65574, -2359285, 8, 65574, -2359284, 8, 65574, -2359283, 8, 65574, -2359282, 8, 65574, -2359281, 8, 65574, -2359280, 8, 65574, -2359279, 8, 65574, -2359278, 8, 65574, -2359277, 8, 65574, -2359276, 8, 65574, -2359275, 8, 65575, -2359273, 8, 65573, -2359272, 8, 65574, -2359271, 8, 65575, -2228225, 8, 65573, -2293760, 8, 65574, -2293759, 8, 65574, -2293758, 8, 65575, -2293756, 8, 65573, -2293755, 8, 65574, -2293754, 8, 65574, -2293753, 8, 65574, -2293752, 8, 65574, -2293751, 8, 65574, -2293750, 8, 65574, -2293749, 8, 65574, -2293748, 8, 65574, -2293747, 8, 65574, -2293746, 8, 65574, -2293745, 8, 65574, -2293744, 8, 65574, -2293743, 8, 65574, -2293742, 8, 65574, -2293741, 8, 65574, -2293740, 8, 65574, -2293739, 8, 65575, -2293737, 8, 65573, -2293736, 8, 65574, -2293735, 8, 65575, -2162689, 8, 65573, -2228224, 8, 65574, -2228223, 8, 65574, -2228222, 8, 65575, -2228220, 8, 65573, -2228219, 8, 65574, -2228218, 8, 65574, -2228217, 8, 65574, -2228216, 8, 65574, -2228215, 8, 65574, -2228214, 8, 65574, -2228213, 8, 65574, -2228212, 8, 65574, -2228211, 8, 65574, -2228210, 8, 65574, -2228209, 8, 65574, -2228208, 8, 65574, -2228207, 8, 65574, -2228206, 8, 65574, -2228205, 8, 65574, -2228204, 8, 65574, -2228203, 8, 65575, -2228201, 8, 65573, -2228200, 8, 65574, -2228199, 8, 65575, -2097153, 8, 65573, -2162688, 8, 65574, -2162687, 8, 65574, -2162686, 8, 65575, -2162684, 8, 65573, -2162683, 8, 65574, -2162682, 8, 65574, -2162681, 8, 65574, -2162680, 8, 65574, -2162679, 8, 65574, -2162678, 8, 65574, -2162677, 8, 65574, -2162676, 8, 65574, -2162675, 8, 65574, -2162674, 8, 65574, -2162673, 8, 65574, -2162672, 8, 65574, -2162671, 8, 65574, -2162670, 8, 65574, -2162669, 8, 65574, -2162668, 8, 65574, -2162667, 8, 65575, -2162665, 8, 65573, -2162664, 8, 65574, -2162663, 8, 65575, -2031617, 8, 65573, -2097152, 8, 65574, -2097151, 8, 65574, -2097150, 8, 65575, -2097148, 8, 65573, -2097147, 8, 65574, -2097146, 8, 65574, -2097145, 8, 65574, -2097144, 8, 65574, -2097143, 8, 65574, -2097142, 8, 65574, -2097141, 8, 65574, -2097140, 8, 65574, -2097139, 8, 65574, -2097138, 8, 65574, -2097137, 8, 65574, -2097136, 8, 65574, -2097135, 8, 65574, -2097134, 8, 65574, -2097133, 8, 65574, -2097132, 8, 65574, -2097131, 8, 65575, -2097129, 8, 65573, -2097128, 8, 65574, -2097127, 8, 65575, -1966081, 8, 65573, -2031616, 8, 65574, -2031615, 8, 65574, -2031614, 8, 65575, -2031612Line truncated
|
||||
|
||||
[node name="Wall (Collision)" type="TileMap" parent="."]
|
||||
tile_set = SubResource( 3 )
|
||||
@@ -119,7 +134,7 @@ show_collision = true
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
format = 1
|
||||
tile_data = PoolIntArray( -2686978, 0, 0, -2686977, 0, 0, -2752512, 0, 0, -2752511, 0, 0, -2752510, 0, 0, -2752509, 0, 0, -2752508, 0, 0, -2752507, 0, 0, -2752506, 0, 0, -2752505, 0, 0, -2752504, 0, 0, -2752503, 0, 0, -2752502, 0, 0, -2752501, 0, 0, -2752500, 0, 0, -2752499, 0, 0, -2752498, 0, 0, -2752497, 0, 0, -2752496, 0, 0, -2752495, 0, 0, -2752494, 0, 0, -2752493, 0, 0, -2752492, 0, 0, -2752491, 0, 0, -2752490, 0, 0, -2752489, 0, 0, -2752488, 0, 0, -2752487, 0, 0, -2752486, 0, 0, -2621442, 0, 0, -2686950, 0, 0, -2555906, 0, 0, -2621414, 0, 0, -2490370, 0, 0, -2555878, 0, 0, -2424834, 0, 0, -2490342, 0, 0, -2359298, 0, 0, -2424806, 0, 0, -2293762, 0, 0, -2359270, 0, 0, -2228226, 0, 0, -2293734, 0, 0, -2162690, 0, 0, -2228198, 0, 0, -2097154, 0, 0, -2162662, 0, 0, -2031618, 0, 0, -2097126, 0, 0, -1966082, 0, 0, -2031590, 0, 0, -1900546, 0, 0, -1966054, 0, 0, -1835010, 0, 0, -1900518, 0, 0, -1769474, 0, 0, -1834982, 0, 0, -1703938, 0, 0, -1769446, 0, 0, -1638402, 0, 0, -1638401, 0, 0, -1703910, 0, 0, -1572866, 0, 0, -1572865, 0, 0, -1638400, 0, 0, -1638399, 0, 0, -1638398, 0, 0, -1638397, 0, 0, -1638396, 0, 0, -1638395, 0, 0, -1638394, 0, 0, -1638393, 0, 0, -1638392, 0, 0, -1638391, 0, 0, -1638390, 0, 0, -1638386, 0, 0, -1638385, 0, 0, -1638384, 0, 0, -1638383, 0, 0, -1638382, 0, 0, -1638381, 0, 0, -1638380, 0, 0, -1638379, 0, 0, -1638378, 0, 0, -1638377, 0, 0, -1638376, 0, 0, -1638375, 0, 0, -1638374, 0, 0, -1572854, 0, 0, -1572850, 0, 0, -1507318, 0, 0, -1507314, 0, 0, -1441782, 0, 0, -1441778, 0, 0, -1376246, 0, 0, -1376242, 0, 0, -1310710, 0, 0, -1310706, 0, 0, -1245174, 0, 0, -1245170, 0, 0, -1179638, 0, 0, -1179634, 0, 0, -1114102, 0, 0, -1114101, 0, 0, -1114100, 0, 0, -1114099, 0, 0, -1114098, 0, 0, -524290, 0, 0, -524289, 0, 0, -589824, 0, 0, -589823, 0, 0, -589822, 0, 0, -589821, 0, 0, -589820, 0, 0, -589819, 0, 0, -458754, 0, 0, -524283, 0, 0, -393218, 0, 0, -458747, 0, 0, -327682, 0, 0, -393211, 0, 0, -393206, 0, 0, -393205, 0, 0, -393204, 0, 0, -393203, 0, 0, -393202, 0, 0, -262146, 0, 0, -327675, 0, 0, -327670, 0, 0, -327666, 0, 0, -196610, 0, 0, -196609, 0, 0, -262140, 0, 0, -262139, 0, 0, -262134, 0, 0, -262130, 0, 0, -131073, 0, 0, -196604, 0, 0, -196598, 0, 0, -196594, 0, 0, -65537, 0, 0, -131068, 0, 0, -131062, 0, 0, -131058, 0, 0, -131049, 0, 0, -131048, 0, 0, -131047, 0, 0, -131046, 0, 0, -131045, 0, 0, -131044, 0, 0, -1, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65508, 0, 0, 65535, 0, 0, 28, 0, 0, 131071, 0, 0, 65564, 0, 0, 196607, 0, 0, 131100, 0, 0, 262143, 0, 0, 196611, 0, 0, 196612, 0, 0, 196613, 0, 0, 196614, 0, 0, 196618, 0, 0, 196619, 0, 0, 196620, 0, 0, 196621, 0, 0, 196625, 0, 0, 196636, 0, 0, 327679, 0, 0, 262161, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262172, 0, 0, 393215, 0, 0, 327697, 0, 0, 327700, 0, 0, 327703, 0, 0, 327704, 0, 0, 327705, 0, 0, 327706, 0, 0, 327707, 0, 0, 327708, 0, 0, 458743, 0, 0, 458744, 0, 0, 458745, 0, 0, 458746, 0, 0, 458747, 0, 0, 458748, 0, 0, 458751, 0, 0, 393233, 0, 0, 393236, 0, 0, 524279, 0, 0, 524284, 0, 0, 524285, 0, 0, 524286, 0, 0, 524287, 0, 0, 458756, 0, 0, 458760, 0, 0, 458764, 0, 0, 458769, 0, 0, 458772, 0, 0, 589815, 0, 0, 524292, 0, 0, 524296, 0, 0, 524300, 0, 0, 524305, 0, 0, 524308, 0, 0, 655351, 0, 0, 589844, 0, 0, 720887, 0, 0, 655380, 0, 0, 786423, 0, 0, 720916, 0, 0, 851959, 0, 0, 851964, 0, 0, 851965, 0, 0, 851966, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786452, 0, 0, 917495, 0, 0, 917496, 0, 0, 917497, 0, 0, 917498, 0, 0, 917499, 0, 0, 917500, 0, 0, 851983, 0, 0, 851988, 0, 0, 917519, 0, 0, 917524, 0, 0, 983054, 0, 0, 983055, 0, 0, 983060, 0, 0, 983061, 0, 0, 1048590, 0, 0, 1048597, 0, 0, 1114126, 0, 0, 1114133, 0, 0, 1179662, 0, 0, 1179669, 0, 0, 1245198, 0, 0, 1245205, 0, 0, 1310734, 0, 0, 1310735, 0, 0, 1310736, 0, 0, 1310737, 0, 0, 1310738, 0, 0, 1310739, 0, 0, 1310740, 0, 0, 1310741, 0, 0 )
|
||||
tile_data = PoolIntArray( -2686978, 0, 0, -2686977, 0, 0, -2752512, 0, 0, -2752511, 0, 0, -2752510, 0, 0, -2752509, 0, 0, -2752508, 0, 0, -2752507, 0, 0, -2752506, 0, 0, -2752505, 0, 0, -2752504, 0, 0, -2752503, 0, 0, -2752502, 0, 0, -2752501, 0, 0, -2752500, 0, 0, -2752499, 0, 0, -2752498, 0, 0, -2752497, 0, 0, -2752496, 0, 0, -2752495, 0, 0, -2752494, 0, 0, -2752493, 0, 0, -2752492, 0, 0, -2752491, 0, 0, -2752490, 0, 0, -2752489, 0, 0, -2752488, 0, 0, -2752487, 0, 0, -2752486, 0, 0, -2621442, 0, 0, -2686950, 0, 0, -2555906, 0, 0, -2621414, 0, 0, -2490370, 0, 0, -2555878, 0, 0, -2424834, 0, 0, -2490360, 0, 0, -2490359, 0, 0, -2490358, 0, 0, -2490357, 0, 0, -2490356, 0, 0, -2490355, 0, 0, -2490354, 0, 0, -2490353, 0, 0, -2490352, 0, 0, -2490342, 0, 0, -2359298, 0, 0, -2424829, 0, 0, -2424810, 0, 0, -2424806, 0, 0, -2293762, 0, 0, -2359293, 0, 0, -2359274, 0, 0, -2359270, 0, 0, -2228226, 0, 0, -2293757, 0, 0, -2293738, 0, 0, -2293734, 0, 0, -2162690, 0, 0, -2228221, 0, 0, -2228202, 0, 0, -2228198, 0, 0, -2097154, 0, 0, -2162685, 0, 0, -2162666, 0, 0, -2162662, 0, 0, -2031618, 0, 0, -2097149, 0, 0, -2097130, 0, 0, -2097126, 0, 0, -1966082, 0, 0, -2031613, 0, 0, -2031594, 0, 0, -2031590, 0, 0, -1900546, 0, 0, -1966054, 0, 0, -1835010, 0, 0, -1900518, 0, 0, -1769474, 0, 0, -1835002, 0, 0, -1835001, 0, 0, -1835000, 0, 0, -1834999, 0, 0, -1834992, 0, 0, -1834991, 0, 0, -1834990, 0, 0, -1834989, 0, 0, -1834982, 0, 0, -1703938, 0, 0, -1769446, 0, 0, -1638402, 0, 0, -1638401, 0, 0, -1703910, 0, 0, -1572866, 0, 0, -1572865, 0, 0, -1638400, 0, 0, -1638399, 0, 0, -1638398, 0, 0, -1638397, 0, 0, -1638396, 0, 0, -1638395, 0, 0, -1638394, 0, 0, -1638393, 0, 0, -1638392, 0, 0, -1638391, 0, 0, -1638390, 0, 0, -1638386, 0, 0, -1638385, 0, 0, -1638384, 0, 0, -1638383, 0, 0, -1638382, 0, 0, -1638381, 0, 0, -1638380, 0, 0, -1638379, 0, 0, -1638378, 0, 0, -1638377, 0, 0, -1638376, 0, 0, -1638375, 0, 0, -1638374, 0, 0, -1572854, 0, 0, -1572850, 0, 0, -1507318, 0, 0, -1507314, 0, 0, -1441782, 0, 0, -1441778, 0, 0, -1376246, 0, 0, -1376242, 0, 0, -1310710, 0, 0, -1310706, 0, 0, -1245174, 0, 0, -1245170, 0, 0, -1179638, 0, 0, -1179634, 0, 0, -1114102, 0, 0, -1114101, 0, 0, -1114100, 0, 0, -1114099, 0, 0, -1114098, 0, 0, -524290, 0, 0, -524289, 0, 0, -589824, 0, 0, -589823, 0, 0, -589822, 0, 0, -589821, 0, 0, -589820, 0, 0, -589819, 0, 0, -458754, 0, 0, -524283, 0, 0, -393218, 0, 0, -458747, 0, 0, -327682, 0, 0, -393211, 0, 0, -393206, 0, 0, -393205, 0, 0, -393204, 0, 0, -393203, 0, 0, -393202, 0, 0, -262146, 0, 0, -327675, 0, 0, -327670, 0, 0, -327666, 0, 0, -196610, 0, 0, -196609, 0, 0, -262140, 0, 0, -262139, 0, 0, -262134, 0, 0, -262130, 0, 0, -131073, 0, 0, -196604, 0, 0, -196598, 0, 0, -196594, 0, 0, -65537, 0, 0, -131068, 0, 0, -131062, 0, 0, -131058, 0, 0, -131049, 0, 0, -131048, 0, 0, -131047, 0, 0, -131046, 0, 0, -131045, 0, 0, -131044, 0, 0, -1, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65508, 0, 0, 65535, 0, 0, 28, 0, 0, 131071, 0, 0, 65564, 0, 0, 196607, 0, 0, 131100, 0, 0, 262143, 0, 0, 196611, 0, 0, 196612, 0, 0, 196613, 0, 0, 196614, 0, 0, 196618, 0, 0, 196619, 0, 0, 196620, 0, 0, 196621, 0, 0, 196625, 0, 0, 196636, 0, 0, 327679, 0, 0, 262161, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262172, 0, 0, 393215, 0, 0, 327697, 0, 0, 327700, 0, 0, 327703, 0, 0, 327704, 0, 0, 327705, 0, 0, 327706, 0, 0, 327707, 0, 0, 327708, 0, 0, 458743, 0, 0, 458744, 0, 0, 458745, 0, 0, 458746, 0, 0, 458747, 0, 0, 458748, 0, 0, 458751, 0, 0, 393233, 0, 0, 393236, 0, 0, 524279, 0, 0, 524284, 0, 0, 524285, 0, 0, 524286, 0, 0, 524287, 0, 0, 458756, 0, 0, 458760, 0, 0, 458764, 0, 0, 458769, 0, 0, 458772, 0, 0, 589815, 0, 0, 524292, 0, 0, 524296, 0, 0, 524300, 0, 0, 524305, 0, 0, 524308, 0, 0, 655351, 0, 0, 589844, 0, 0, 720887, 0, 0, 655380, 0, 0, 786423, 0, 0, 720916, 0, 0, 851959, 0, 0, 851964, 0, 0, 851965, 0, 0, 851966, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786452, 0, 0, 917495, 0, 0, 917496, 0, 0, 917497, 0, 0, 917498, 0, 0, 917499, 0, 0, 917500, 0, 0, 851983, 0, 0, 851988, 0, 0, 917519, 0, 0, 917524, 0, 0, 983054, 0, 0, 983055, 0, 0, 983060, 0, 0, 983061, 0, 0, 1048590, 0, 0, 1048597, 0, 0, 1114126, 0, 0, 1114133, 0, 0, 1179662, 0, 0, 1179669, 0, 0, 1245198, 0, 0, 1245205, 0, 0, 1310734, 0, 0, 1310735, 0, 0, 1310736, 0, 0, 1310737, 0, 0, 1310738, 0, 0, 1310739, 0, 0, 1310740, 0, 0, 1310741, 0, 0 )
|
||||
|
||||
[node name="YSort" type="YSort" parent="."]
|
||||
|
||||
@@ -220,9 +235,18 @@ collision_mask = 2
|
||||
position = Vector2( 200, -56 )
|
||||
shape = SubResource( 5 )
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 2.5
|
||||
|
||||
[node name="BGM" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 25 )
|
||||
volume_db = -10.0
|
||||
autoplay = true
|
||||
|
||||
[connection signal="demon_boss_death" from="YSort/Enemies/Demon Boss" to="." method="_on_Demon_Boss_demon_boss_death"]
|
||||
[connection signal="gem_collected" from="YSort/Items/TreasureChest" to="." method="_on_TreasureChest_gem_collected"]
|
||||
[connection signal="gem_collected" from="YSort/Items/TreasureChest2" to="." method="_on_TreasureChest_gem_collected"]
|
||||
[connection signal="gem_collected" from="YSort/Items/TreasureChest3" to="." method="_on_TreasureChest_gem_collected"]
|
||||
[connection signal="gem_collected" from="YSort/Items/TreasureChest4" to="." method="_on_TreasureChest_gem_collected"]
|
||||
[connection signal="area_entered" from="NextArea" to="." method="_on_NextArea_area_entered"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
||||
@@ -7,6 +7,7 @@ func _ready() -> void:
|
||||
|
||||
|
||||
func _on_activate_boss_teleporter_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
$'Interactables/Boss Teleporter'.set_deferred('visible', true)
|
||||
$'Interactables/Activate Boss Teleporter'.call_deferred('queue_free')
|
||||
return
|
||||
|
||||
@@ -1,38 +1,33 @@
|
||||
extends AnimatedSprite
|
||||
|
||||
export(PackedScene) var object_scene: PackedScene = null
|
||||
export var object_scene: PackedScene = null
|
||||
|
||||
var is_player_inside: bool = false
|
||||
var is_opened: bool = false
|
||||
var has_key: bool = false
|
||||
|
||||
onready var animation_player: AnimationPlayer = get_node("AnimationPlayer")
|
||||
onready var tween: Tween = get_node("Key/Tween")
|
||||
|
||||
func _ready() -> void:
|
||||
assert(object_scene != null)
|
||||
animation_player.play("closed")
|
||||
$AnimationPlayer.play('closed')
|
||||
$Key/KeySprite.visible = false
|
||||
return
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if is_player_inside and not is_opened:
|
||||
is_opened = true
|
||||
animation_player.play("open")
|
||||
|
||||
func _on_area_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
$Area/CollisionShape2D.set_deferred('disabled', true)
|
||||
$AnimationPlayer.play('open')
|
||||
_drop_object()
|
||||
return
|
||||
|
||||
|
||||
func _drop_object() -> void:
|
||||
#print($Key.position)
|
||||
$Key/KeySprite.visible = true
|
||||
tween.interpolate_property($Key, "position", Vector2(0,0), Vector2(0, -10), 1.0, Tween.TRANS_QUAD,
|
||||
Tween.EASE_OUT)
|
||||
tween.start()
|
||||
yield(tween, "tween_completed")
|
||||
if not $Key/Tween.interpolate_property($Key, 'position', Vector2(0,0), Vector2(0, -10), 1.0,
|
||||
Tween.TRANS_QUAD, Tween.EASE_OUT):
|
||||
print('ERROR: Chest key animation has errors.')
|
||||
if not $Key/Tween.start():
|
||||
print('ERROR: Chest key animation failed to start.')
|
||||
|
||||
yield($Key/Tween, 'tween_completed')
|
||||
$Key/KeySprite.visible = false
|
||||
|
||||
|
||||
func _on_Area2D_player_entered(_player: KinematicBody2D) -> void:
|
||||
is_player_inside = true
|
||||
|
||||
|
||||
func _on_Area2D_player_exited(_player: KinematicBody2D) -> void:
|
||||
is_player_inside = false
|
||||
return
|
||||
@@ -174,5 +174,4 @@ animation = "closed"
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Entrance"]
|
||||
anims/closed = SubResource( 6 )
|
||||
|
||||
[connection signal="body_entered" from="Area" to="." method="_on_Area2D_player_entered"]
|
||||
[connection signal="body_exited" from="Area" to="." method="_on_Area2D_player_exited"]
|
||||
[connection signal="body_entered" from="Area" to="." method="_on_area_body_entered"]
|
||||
@@ -0,0 +1,63 @@
|
||||
extends ColorRect
|
||||
|
||||
export var dialog_path: String = ''
|
||||
export var text_speed: float = 0.05
|
||||
|
||||
var dialog: Array
|
||||
var phrase_num: int = 0
|
||||
var finished = false
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
$Timer.wait_time = text_speed
|
||||
dialog = get_dialog()
|
||||
assert(dialog, 'Dialog not found')
|
||||
next_phrase()
|
||||
return
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
$Indicator.visible = finished
|
||||
if event.is_action_pressed('ui_accept'):
|
||||
if finished:
|
||||
next_phrase()
|
||||
else:
|
||||
$Text.visible_characters = len($Text.text)
|
||||
return
|
||||
|
||||
|
||||
func get_dialog() -> Array:
|
||||
var f = File.new()
|
||||
assert(f.file_exists(dialog_path), 'File path does not exist')
|
||||
|
||||
f.open(dialog_path, File.READ)
|
||||
var json = f.get_as_text()
|
||||
|
||||
var output = parse_json(json)
|
||||
|
||||
if typeof(output) == TYPE_ARRAY:
|
||||
return output
|
||||
else:
|
||||
return []
|
||||
|
||||
func next_phrase() -> void:
|
||||
if phrase_num >= len(dialog):
|
||||
queue_free()
|
||||
return
|
||||
|
||||
finished = false
|
||||
|
||||
$Name.bbcode_text = dialog[phrase_num]['Name']
|
||||
$Text.bbcode_text = dialog[phrase_num]['Text']
|
||||
|
||||
$Text.visible_characters = 0
|
||||
|
||||
while $Text.visible_characters < len($Text.text):
|
||||
$Text.visible_characters += 1
|
||||
|
||||
$Timer.start()
|
||||
yield($Timer, 'timeout')
|
||||
|
||||
finished = true
|
||||
phrase_num += 1
|
||||
return
|
||||
@@ -0,0 +1,84 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Levels/Objects/DialogBox.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Fonts/AtariClassicSmooth.ttf" type="DynamicFontData" id=2]
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
size = 20
|
||||
extra_spacing_top = -1
|
||||
extra_spacing_bottom = -1
|
||||
extra_spacing_char = -1
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[sub_resource type="Theme" id=3]
|
||||
default_font = SubResource( 2 )
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
resource_name = "bounce"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("AnimationPlayer:root_node")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ NodePath("..") ]
|
||||
}
|
||||
|
||||
[node name="Dialogue" type="Control"]
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="DialogBox" type="ColorRect" parent="."]
|
||||
margin_left = 60.0
|
||||
margin_top = 145.0
|
||||
margin_right = 335.0
|
||||
margin_bottom = 185.0
|
||||
rect_min_size = Vector2( 275, 40 )
|
||||
rect_scale = Vector2( 0.7, 0.730801 )
|
||||
theme = SubResource( 3 )
|
||||
color = Color( 0.776471, 0.752941, 0.647059, 1 )
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
dialog_path = "res://Levels/Objects/journalScrapDialog.json"
|
||||
|
||||
[node name="Name" type="RichTextLabel" parent="DialogBox"]
|
||||
anchor_bottom = 2.0
|
||||
margin_right = 500.0
|
||||
margin_bottom = -17.0
|
||||
rect_scale = Vector2( 0.4, 0.4 )
|
||||
custom_colors/default_color = Color( 0, 0, 0, 1 )
|
||||
text = "ddd"
|
||||
fit_content_height = true
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Text" type="RichTextLabel" parent="DialogBox"]
|
||||
margin_top = 9.0
|
||||
margin_right = 500.0
|
||||
margin_bottom = 70.0
|
||||
rect_scale = Vector2( 0.4, 0.4 )
|
||||
custom_colors/default_color = Color( 0, 0, 0, 1 )
|
||||
text = "dddd"
|
||||
scroll_active = false
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Indicator" type="Polygon2D" parent="DialogBox"]
|
||||
position = Vector2( -104, 104 )
|
||||
color = Color( 0, 0, 0, 1 )
|
||||
antialiased = true
|
||||
polygon = PoolVector2Array( 370.756, -68.0704, 376.296, -74.7627, 365.367, -74.6793 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="DialogBox/Indicator"]
|
||||
anims/bounce = SubResource( 1 )
|
||||
|
||||
[node name="Timer" type="Timer" parent="DialogBox"]
|
||||
@@ -1,24 +1,11 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a: int = 2
|
||||
# var b: String = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta: float) -> void:
|
||||
# pass
|
||||
|
||||
|
||||
func _on_AnimationPlayer_animation_finished(anim_name: String) -> void:
|
||||
func _on_AnimationPlayer_animation_finished(_anim_name: String) -> void:
|
||||
$IceKeySprite.visible = false
|
||||
return
|
||||
|
||||
|
||||
func _on_AnimationPlayer_animation_started(anim_name: String) -> void:
|
||||
func _on_AnimationPlayer_animation_started(_anim_name: String) -> void:
|
||||
$IceKeySprite.visible = true
|
||||
return
|
||||
@@ -1,34 +1,20 @@
|
||||
extends Sprite
|
||||
|
||||
signal ice_key_collected
|
||||
|
||||
var is_player_inside: bool = false
|
||||
var is_opened: bool = false
|
||||
var has_key: bool = true
|
||||
|
||||
signal ice_key_collected
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a: int = 2
|
||||
# var b: String = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta: float) -> void:
|
||||
# pass
|
||||
|
||||
|
||||
func _on_Player_Detector_area_entered(area: Area2D) -> void:
|
||||
print(get_parent().get_parent().score)
|
||||
if area.get_parent().name == 'Player' and get_parent().get_parent().score >= 5:
|
||||
if is_opened == false:
|
||||
$chestClosed.visible = false
|
||||
$chestOpened.visible = true
|
||||
$Key.visible = true
|
||||
$Key/AnimationPlayer.play("rise")
|
||||
$Key/AnimationPlayer.play('rise')
|
||||
is_opened = true
|
||||
has_key = false
|
||||
emit_signal("ice_key_collected")
|
||||
emit_signal('ice_key_collected')
|
||||
return
|
||||
@@ -0,0 +1,5 @@
|
||||
[
|
||||
{"Name":"???", "Text":"Did they REALLY think they would be able to leave the ethereal plane?!"},
|
||||
{"Name":"???", "Text":"No one ever leaves the ethereal plane!"},
|
||||
{"Name":"???", "Text":"What a joke."}
|
||||
]
|
||||
@@ -0,0 +1,7 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
visible = false
|
||||
$CollisionShape2D.visible = false
|
||||
return
|
||||
@@ -1,17 +0,0 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a: int = 2
|
||||
# var b: String = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
self.visible = false
|
||||
$CollisionShape2D.visible = false
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta: float) -> void:
|
||||
# pass
|
||||
@@ -1,6 +1,6 @@
|
||||
extends Area2D
|
||||
|
||||
export var enemy_path: String = 'res://Enemies/Ghost_Enemy.tscn'
|
||||
export var enemy_path: String = 'res://Enemies/ENEMY.tscn'
|
||||
export var relative_x_tiles: int
|
||||
export var relative_y_tiles: int
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/Hub_World.mp3-42885cef66c1c7343770523f6d96d156.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Music/Hub_World.mp3"
|
||||
dest_files=[ "res://.import/Hub_World.mp3-42885cef66c1c7343770523f6d96d156.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
||||
@@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/Level_1.mp3-9039f67add638808045184c34f72f9a7.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Music/Level_1.mp3"
|
||||
dest_files=[ "res://.import/Level_1.mp3-9039f67add638808045184c34f72f9a7.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
||||
@@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/Level_2_1.mp3-ee2c847c916154147d31f02fcb5a48e1.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Music/Level_2_1.mp3"
|
||||
dest_files=[ "res://.import/Level_2_1.mp3-ee2c847c916154147d31f02fcb5a48e1.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
||||
@@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/Level_2_2.mp3-134340b5ecee726d2d95e042e2c114d0.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Music/Level_2_2.mp3"
|
||||
dest_files=[ "res://.import/Level_2_2.mp3-134340b5ecee726d2d95e042e2c114d0.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
||||
@@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/Level_4.mp3-109bbc88c479a0242f45096987fd4cb3.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Music/Level_4.mp3"
|
||||
dest_files=[ "res://.import/Level_4.mp3-109bbc88c479a0242f45096987fd4cb3.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
||||
@@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/Level_Complete.mp3-ae5af4a1ee7128809b313389d42673b2.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Music/Level_Complete.mp3"
|
||||
dest_files=[ "res://.import/Level_Complete.mp3-ae5af4a1ee7128809b313389d42673b2.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
||||
@@ -0,0 +1,21 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamSample"
|
||||
path="res://.import/Level_Failed.wav-b9c2b0727fa0fd5a5f7230cad50c2000.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Music/Level_Failed.wav"
|
||||
dest_files=[ "res://.import/Level_Failed.wav-b9c2b0727fa0fd5a5f7230cad50c2000.sample" ]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop=false
|
||||
compress/mode=0
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 678 B |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 494 B |
|
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 159 B |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 710 B After Width: | Height: | Size: 344 B |
|
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 173 B |
|
Before Width: | Height: | Size: 146 B After Width: | Height: | Size: 159 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 860 B |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 166 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 406 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 689 B |
|
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 188 B |
|
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 218 B |
|
Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 198 B |
|
Before Width: | Height: | Size: 746 B After Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 170 B |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 271 B |
|
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 198 B |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 852 B |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 853 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 703 B |
|
Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 128 B |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 956 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 163 B |
|
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 202 B |
|
Before Width: | Height: | Size: 635 B After Width: | Height: | Size: 405 B |
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 189 B After Width: | Height: | Size: 138 B |
|
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 183 B |
|
Before Width: | Height: | Size: 189 B After Width: | Height: | Size: 138 B |
|
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 195 B |
|
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 149 B |
|
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 164 B |