Fixing merge conflicts
@@ -9,7 +9,7 @@ var speed : = 0.5
|
||||
var position_tracker = 0.0
|
||||
var player = null
|
||||
var obstacle = null
|
||||
var DisplayValue = 10
|
||||
var DisplayValue = 5
|
||||
var health: int = 2
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
@@ -59,7 +59,7 @@ func _on_Star_detect_body_exited(_body):
|
||||
#print("obstacle exited")
|
||||
#if _body.name == 'Obstacle':
|
||||
#obstacle = null
|
||||
null
|
||||
pass
|
||||
|
||||
func _on_Timer_timeout():
|
||||
#print("time out")
|
||||
|
@@ -15,7 +15,9 @@ extents = Vector2( 5.48996, 5.06427 )
|
||||
[sub_resource type="RectangleShape2D" id=4]
|
||||
extents = Vector2( 5.50204, 4.89798 )
|
||||
|
||||
[node name="Dark Matter" type="KinematicBody2D"]
|
||||
[node name="Dark Matter" type="KinematicBody2D" groups=[
|
||||
"enemy",
|
||||
]]
|
||||
collision_layer = 2
|
||||
collision_mask = 6
|
||||
script = ExtResource( 2 )
|
||||
@@ -42,11 +44,13 @@ shape = SubResource( 3 )
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="."]
|
||||
[node name="Dark_hitbox" type="Area2D" parent="." groups=[
|
||||
"enemy_hitbox_1",
|
||||
]]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Dark_hitbox"]
|
||||
shape = SubResource( 4 )
|
||||
|
||||
[connection signal="body_entered" from="Player_detect" to="." method="_on_Player_detect_body_entered"]
|
||||
@@ -54,4 +58,4 @@ shape = SubResource( 4 )
|
||||
[connection signal="body_entered" from="Star_detect" to="." method="_on_Star_detect_body_entered"]
|
||||
[connection signal="body_exited" from="Star_detect" to="." method="_on_Star_detect_body_exited"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
||||
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
|
||||
[connection signal="area_entered" from="Dark_hitbox" to="." method="_on_Hitbox_area_entered"]
|
||||
|
74
Enemies/Demon Boss.gd
Normal file
@@ -0,0 +1,74 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
const SPEED: int = 30
|
||||
|
||||
var player: KinematicBody2D = null
|
||||
var velocity: Vector2 = Vector2.ZERO
|
||||
var health: int = 15
|
||||
var hit: bool = false
|
||||
var counter: int = 0
|
||||
|
||||
|
||||
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
|
||||
var angle = position.angle_to_point(player.position)
|
||||
if abs(angle) > PI/2:
|
||||
$AnimatedSprite1.scale.x = -0.563
|
||||
else:
|
||||
$AnimatedSprite1.scale.x = 0.563
|
||||
|
||||
if hit == true:
|
||||
if counter < 15:
|
||||
if counter % 5 == 0:
|
||||
$AnimatedSprite1.visible = false
|
||||
else:
|
||||
$AnimatedSprite1.visible = true
|
||||
counter += 1
|
||||
velocity = Vector2.ZERO
|
||||
else:
|
||||
hit = false
|
||||
counter = 0
|
||||
|
||||
velocity = move_and_slide(velocity)
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = body
|
||||
$AnimatedSprite1.animation = 'Walk'
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_body_exited(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = null
|
||||
$AnimatedSprite1.animation = 'Idle'
|
||||
return
|
||||
|
||||
|
||||
func _on_hitbox_area_entered(area: Area2D) -> void:
|
||||
if area.is_in_group('player_weapon_1'):
|
||||
health -= 1
|
||||
hit = true
|
||||
elif area.is_in_group('player_weapon_2'):
|
||||
health -= 2
|
||||
hit = true
|
||||
|
||||
if health <= 0:
|
||||
call_deferred('queue_free')
|
||||
return
|
||||
|
||||
func _on_Player_Detector__Attack_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = body
|
||||
$AnimatedSprite1.animation = 'Attack'
|
||||
|
||||
|
||||
func _on_Player_Detector__Attack_body_exited(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = body
|
||||
$AnimatedSprite1.animation = 'Walk'
|
@@ -1,347 +1,388 @@
|
||||
[gd_scene load_steps=68 format=2]
|
||||
[gd_scene load_steps=71 format=2]
|
||||
|
||||
[ext_resource path="res://Resources/Level_5_Enemy_Glowing_Ghost_Occluder.tres" type="OccluderPolygon2D" id=1]
|
||||
[ext_resource path="res://Sprites/Assets/Light.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Sprites/Enemies/Demon_Slime_Spritesheet.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Enemies/DemonBoss.gd" type="Script" id=4]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=1]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=2]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 288, 0, 288, 160 )
|
||||
[ext_resource path="res://Enemies/Demon Boss.gd" type="Script" id=4]
|
||||
[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=3]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 576, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 864, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=5]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 1152, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=6]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 1440, 0, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=7]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=8]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 288, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=9]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 576, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=10]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 864, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=11]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 1152, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=12]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 1440, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=13]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 1728, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=14]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 2016, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=15]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 2304, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=16]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 2592, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=17]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 2880, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=18]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 3168, 160, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=19]
|
||||
atlas = ExtResource( 3 )
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=20]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 288, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=21]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=5]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 576, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=22]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=6]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 864, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=23]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=7]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1152, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=24]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=8]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1440, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=25]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=9]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1728, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=26]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=10]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2016, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=27]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=11]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2304, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=28]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=12]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2592, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=29]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=13]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2880, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=30]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=14]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 3168, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=31]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=15]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 3456, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=32]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=16]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 3744, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=33]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=17]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 4032, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=34]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=18]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 4320, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=35]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=19]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 4608, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=36]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=20]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 4896, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=37]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=21]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 5184, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=38]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=22]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 5472, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=39]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=23]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 5760, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=40]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=24]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 6048, 640, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=41]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=43]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=42]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=44]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 288, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=43]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=45]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 576, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=44]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=46]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 864, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=45]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=47]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1152, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=46]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=48]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1440, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=47]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=49]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1728, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=48]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=50]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2016, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=49]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=51]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2304, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=50]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=52]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2592, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=51]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=53]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 2880, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=52]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=54]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 3168, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=53]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=55]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 3456, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=54]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=56]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 3744, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=55]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=57]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 4032, 320, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=56]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=58]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=57]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=59]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 288, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=58]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=60]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 576, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=59]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=61]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 864, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=60]
|
||||
atlas = ExtResource( 3 )
|
||||
[sub_resource type="AtlasTexture" id=62]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1152, 480, 288, 160 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=61]
|
||||
[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( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
|
||||
"loop": true,
|
||||
"name": "Idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ) ],
|
||||
"loop": true,
|
||||
"name": "Walk",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 19 ), SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ), SubResource( 25 ), SubResource( 26 ), SubResource( 27 ), SubResource( 28 ), SubResource( 29 ), SubResource( 30 ), SubResource( 31 ), SubResource( 32 ), SubResource( 33 ), SubResource( 34 ), SubResource( 35 ), SubResource( 36 ), SubResource( 37 ), SubResource( 38 ), SubResource( 39 ), SubResource( 40 ) ],
|
||||
"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( 41 ), SubResource( 42 ), 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 ) ],
|
||||
"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( 56 ), SubResource( 57 ), SubResource( 58 ), SubResource( 59 ), SubResource( 60 ) ],
|
||||
"frames": [ SubResource( 58 ), SubResource( 59 ), SubResource( 60 ), SubResource( 61 ), SubResource( 62 ) ],
|
||||
"loop": true,
|
||||
"name": "Hit",
|
||||
"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 ) ],
|
||||
"loop": true,
|
||||
"name": "Idle",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=62]
|
||||
radius = 3.0
|
||||
[sub_resource type="CapsuleShape2D" id=64]
|
||||
radius = 1.5
|
||||
height = 3.0
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 26.0
|
||||
height = 2.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id=63]
|
||||
radius = 50.0
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
radius = 144.003
|
||||
|
||||
[node name="DemonBoss" type="KinematicBody2D" groups=[
|
||||
"enemies",
|
||||
]]
|
||||
collision_layer = 2
|
||||
[sub_resource type="CircleShape2D" id=65]
|
||||
radius = 42.0
|
||||
|
||||
[node name="Demon Boss" type="KinematicBody2D" groups=["enemy"]]
|
||||
light_mask = 0
|
||||
collision_layer = 4
|
||||
collision_mask = 5
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="AnimatedSprite1" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( 1, -3 )
|
||||
position = Vector2( 2, -15 )
|
||||
scale = Vector2( 0.5, 0.5 )
|
||||
frames = SubResource( 61 )
|
||||
frames = SubResource( 63 )
|
||||
animation = "Idle"
|
||||
frame = 3
|
||||
frame = 5
|
||||
playing = true
|
||||
|
||||
[node name="Hitbox" type="CollisionShape2D" parent="."]
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
visible = false
|
||||
light_mask = 4
|
||||
position = Vector2( 0, -3 )
|
||||
shape = SubResource( 62 )
|
||||
texture = ExtResource( 7 )
|
||||
offset = Vector2( 0, 0.5 )
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
light_mask = 0
|
||||
rotation = 1.5708
|
||||
shape = SubResource( 64 )
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox_1"]]
|
||||
light_mask = 0
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
visible = false
|
||||
light_mask = 0
|
||||
position = Vector2( 2, 5 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Player Detector" type="Area2D" parent="."]
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
light_mask = 0
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
|
||||
scale = Vector2( 2, 2 )
|
||||
shape = SubResource( 63 )
|
||||
light_mask = 0
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Player Attack" type="Area2D" parent="."]
|
||||
visible = false
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
[node name="Player Detector - Attack" type="Area2D" parent="."]
|
||||
light_mask = 0
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
|
||||
[node name="Attack" type="CollisionShape2D" parent="Player Attack"]
|
||||
position = Vector2( 0, 7 )
|
||||
scale = Vector2( 1, 0.75 )
|
||||
shape = SubResource( 63 )
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector - Attack"]
|
||||
shape = SubResource( 65 )
|
||||
|
||||
[node name="Light2D" type="Light2D" parent="."]
|
||||
[node name="Player Detector - Attack2" type="Area2D" parent="."]
|
||||
light_mask = 0
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector - Attack2"]
|
||||
visible = false
|
||||
shape = SubResource( 65 )
|
||||
|
||||
[node name="Light" type="Light2D" parent="."]
|
||||
visible = false
|
||||
scale = Vector2( 0.5, 0.5 )
|
||||
texture = ExtResource( 2 )
|
||||
texture_scale = 0.5
|
||||
color = Color( 0.984314, 0.94902, 0.211765, 0.392157 )
|
||||
energy = 2.0
|
||||
range_item_cull_mask = 11
|
||||
|
||||
[node name="Light2DEyes" type="Light2D" parent="."]
|
||||
[node name="Eyes" type="Light2D" parent="."]
|
||||
visible = false
|
||||
scale = Vector2( 0.1, 0.1 )
|
||||
texture = ExtResource( 2 )
|
||||
offset = Vector2( 5, -40 )
|
||||
offset = Vector2( 5, -35 )
|
||||
range_item_cull_mask = 4
|
||||
shadow_item_cull_mask = 0
|
||||
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="."]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="."]
|
||||
visible = false
|
||||
show_behind_parent = true
|
||||
occluder = ExtResource( 1 )
|
||||
|
||||
[connection signal="area_entered" from="Player Detector" to="." method="_on_player_detector_area_entered"]
|
||||
[connection signal="area_exited" from="Player Detector" to="." method="_on_player_detector_area_exited"]
|
||||
[connection signal="area_entered" from="Player Attack" to="." method="_on_Player_Attack_area_entered"]
|
||||
[connection signal="area_exited" from="Player Attack" to="." method="_on_Player_Attack_area_exited"]
|
||||
[connection signal="area_entered" from="Hitbox" to="." method="_on_hitbox_area_entered"]
|
||||
[connection signal="body_entered" from="Player Detector" to="." method="_on_player_detector_body_entered"]
|
||||
[connection signal="body_exited" from="Player Detector" to="." method="_on_player_detector_body_exited"]
|
||||
[connection signal="body_entered" from="Player Detector - Attack" to="." method="_on_Player_Detector__Attack_body_entered"]
|
||||
[connection signal="body_exited" from="Player Detector - Attack" to="." method="_on_Player_Detector__Attack_body_exited"]
|
||||
[connection signal="body_entered" from="Player Detector - Attack2" to="." method="_on_Player_Detector__Attack_body_entered"]
|
||||
[connection signal="body_exited" from="Player Detector - Attack2" to="." method="_on_Player_Detector__Attack_body_exited"]
|
@@ -1,50 +0,0 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
const SPEED: int = 30
|
||||
|
||||
var player: KinematicBody2D = null
|
||||
var velocity: Vector2 = Vector2.ZERO
|
||||
|
||||
var status = "walk"
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
velocity = Vector2.ZERO
|
||||
|
||||
if player:
|
||||
velocity = position.direction_to(player.position).normalized() * SPEED
|
||||
var angle = position.angle_to_point(player.position)
|
||||
if abs(angle) > PI/2:
|
||||
$AnimatedSprite1.scale.x = -0.563
|
||||
else:
|
||||
$AnimatedSprite1.scale.x = 0.563
|
||||
|
||||
velocity = move_and_slide(velocity)
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_entered(area: Area2D) -> void:
|
||||
if area.get_parent().name == 'Player':
|
||||
player = area.get_parent()
|
||||
$AnimatedSprite1.animation = "Walk"
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_exited(_area: Area2D):
|
||||
player = null
|
||||
$AnimatedSprite1.animation = "Idle"
|
||||
return
|
||||
|
||||
|
||||
func _on_Player_Attack_area_entered(area: Area2D) -> void:
|
||||
if area.get_parent().name == 'Player':
|
||||
player = area.get_parent()
|
||||
$AnimatedSprite1.animation = "Attack"
|
||||
status = "attack"
|
||||
return
|
||||
|
||||
|
||||
func _on_Player_Attack_area_exited(area: Area2D) -> void:
|
||||
player = null
|
||||
if not status == "attack":
|
||||
$AnimatedSprite1.animation = "Walk"
|
||||
return
|
@@ -4,6 +4,9 @@ const SPEED: int = 50
|
||||
|
||||
var player: KinematicBody2D = null
|
||||
var velocity: Vector2 = Vector2.ZERO
|
||||
var health: int = 2
|
||||
var hit: bool = false
|
||||
var counter: int = 0
|
||||
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
@@ -30,21 +33,48 @@ func _on_player_detector_area_exited(_area: Area2D):
|
||||
=======
|
||||
velocity = Vector2.ZERO
|
||||
|
||||
if player:
|
||||
if player and position.distance_to(player.position) > 1:
|
||||
velocity = position.direction_to(player.position).normalized() * SPEED
|
||||
|
||||
|
||||
if hit == true:
|
||||
if counter < 15:
|
||||
if counter % 5 == 0:
|
||||
$AnimatedSprite.visible = false
|
||||
else:
|
||||
$AnimatedSprite.visible = true
|
||||
counter += 1
|
||||
velocity = Vector2.ZERO
|
||||
else:
|
||||
counter = 0
|
||||
hit = false
|
||||
|
||||
|
||||
velocity = move_and_slide(velocity)
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_entered(area: Area2D) -> void:
|
||||
if area.get_parent().name == 'Player':
|
||||
player = area.get_parent()
|
||||
|
||||
func _on_player_detector_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = body
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_exited(_area: Area2D):
|
||||
player = null
|
||||
func _on_player_detector_body_exited(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = null
|
||||
return
|
||||
|
||||
|
||||
func _on_hitbox_area_entered(area: Area2D) -> void:
|
||||
if area.is_in_group('player_weapon_1'):
|
||||
health -= 1
|
||||
hit = true
|
||||
elif area.is_in_group('player_weapon_2'):
|
||||
health -= 2
|
||||
hit = true
|
||||
|
||||
if health <= 0:
|
||||
call_deferred('queue_free')
|
||||
return
|
||||
>>>>>>> main
|
||||
|
@@ -1,106 +1,75 @@
|
||||
[gd_scene load_steps=11 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://Resources/Level_5_Enemy_Glowing_Ghost_Occluder.tres" type="OccluderPolygon2D" id=1]
|
||||
[ext_resource path="res://Sprites/Assets/Light.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Sprites/Enemies/Chasing_Glowing_Ghost.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Enemies/Flaming Skull.gd" type="Script" id=4]
|
||||
<<<<<<< HEAD
|
||||
[ext_resource path="res://Sprites/Enemies/flaming skull design.png" type="Texture" id=5]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=1]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 0, 672, 672 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=2]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 672, 0, 672, 672 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1344, 0, 672, 672 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=4]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ) ],
|
||||
=======
|
||||
[ext_resource path="res://Sprites/Enemies/Flaming_Skull_Design.png" type="Texture" id=5]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
flags = 4
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 0, 672, 672 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
flags = 4
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 672, 0, 672, 672 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=5]
|
||||
flags = 4
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 1344, 0, 672, 672 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=6]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ) ],
|
||||
>>>>>>> main
|
||||
"loop": true,
|
||||
"name": "default",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
<<<<<<< HEAD
|
||||
[sub_resource type="CapsuleShape2D" id=5]
|
||||
radius = 3.0
|
||||
height = 2.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id=6]
|
||||
radius = 50.0
|
||||
|
||||
[node name="Flaming Skull" type="KinematicBody2D" groups=[
|
||||
"enemies",
|
||||
]]
|
||||
=======
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 3.0
|
||||
height = 2.0
|
||||
radius = 5.0
|
||||
height = 12.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
radius = 50.0
|
||||
|
||||
[node name="Flaming Skull" type="KinematicBody2D" groups=["enemies"]]
|
||||
>>>>>>> main
|
||||
collision_layer = 2
|
||||
[node name="Flaming Skull" type="KinematicBody2D" groups=["enemy"]]
|
||||
light_mask = 0
|
||||
collision_layer = 4
|
||||
collision_mask = 5
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
scale = Vector2( 0.0446429, 0.0446429 )
|
||||
<<<<<<< HEAD
|
||||
frames = SubResource( 4 )
|
||||
frame = 1
|
||||
=======
|
||||
position = Vector2( 4.76837e-07, -2.38419e-07 )
|
||||
scale = Vector2( 0.0517113, 0.0517113 )
|
||||
frames = SubResource( 6 )
|
||||
>>>>>>> main
|
||||
frame = 2
|
||||
playing = true
|
||||
offset = Vector2( 0, 0.5 )
|
||||
|
||||
[node name="Hitbox" type="CollisionShape2D" parent="."]
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
visible = false
|
||||
light_mask = 4
|
||||
position = Vector2( 0, -3 )
|
||||
<<<<<<< HEAD
|
||||
shape = SubResource( 5 )
|
||||
texture = ExtResource( 3 )
|
||||
offset = Vector2( 0, 0.5 )
|
||||
|
||||
[node name="Player Detector" type="Area2D" parent="."]
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
collision_layer = 0
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
light_mask = 0
|
||||
rotation = 1.5708
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox_1"]]
|
||||
light_mask = 0
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
|
||||
visible = false
|
||||
shape = SubResource( 6 )
|
||||
=======
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
light_mask = 0
|
||||
position = Vector2( -1, 1 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Player Detector" type="Area2D" parent="."]
|
||||
light_mask = 0
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
input_pickable = false
|
||||
@@ -108,28 +77,9 @@ monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
|
||||
visible = false
|
||||
light_mask = 0
|
||||
shape = SubResource( 2 )
|
||||
>>>>>>> main
|
||||
|
||||
[node name="Light2D" type="Light2D" parent="."]
|
||||
visible = false
|
||||
scale = Vector2( 0.5, 0.5 )
|
||||
texture = ExtResource( 2 )
|
||||
color = Color( 0.984314, 0.94902, 0.211765, 0.392157 )
|
||||
energy = 2.0
|
||||
range_item_cull_mask = 11
|
||||
|
||||
[node name="Light2DEyes" type="Light2D" parent="."]
|
||||
visible = false
|
||||
scale = Vector2( 0.1, 0.1 )
|
||||
texture = ExtResource( 2 )
|
||||
offset = Vector2( 5, -40 )
|
||||
range_item_cull_mask = 4
|
||||
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="."]
|
||||
visible = false
|
||||
show_behind_parent = true
|
||||
occluder = ExtResource( 1 )
|
||||
|
||||
[connection signal="area_entered" from="Player Detector" to="." method="_on_player_detector_area_entered"]
|
||||
[connection signal="area_exited" from="Player Detector" to="." method="_on_player_detector_area_exited"]
|
||||
[connection signal="area_entered" from="Hitbox" to="." method="_on_hitbox_area_entered"]
|
||||
[connection signal="body_entered" from="Player Detector" to="." method="_on_player_detector_body_entered"]
|
||||
[connection signal="body_exited" from="Player Detector" to="." method="_on_player_detector_body_exited"]
|
||||
|
@@ -4,12 +4,15 @@ const SPEED: int = 60
|
||||
|
||||
var player: KinematicBody2D = null
|
||||
var velocity: Vector2 = Vector2.ZERO
|
||||
var health: int = 2
|
||||
var hit: bool = false
|
||||
var counter: int = 0
|
||||
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
velocity = Vector2.ZERO
|
||||
|
||||
if player:
|
||||
if player and position.distance_to(player.position) > 1:
|
||||
velocity = position.direction_to(player.position).normalized() * SPEED
|
||||
var angle = position.angle_to_point(player.position)
|
||||
if abs(angle) > PI/2:
|
||||
@@ -17,31 +20,55 @@ func _physics_process(_delta: float) -> void:
|
||||
else:
|
||||
$AnimatedSprite1.scale.x = 0.563
|
||||
|
||||
if hit == true:
|
||||
if counter < 15:
|
||||
if counter % 5 == 0:
|
||||
$AnimatedSprite1.visible = false
|
||||
else:
|
||||
$AnimatedSprite1.visible = true
|
||||
counter += 1
|
||||
velocity = Vector2.ZERO
|
||||
else:
|
||||
counter = 0
|
||||
hit = false
|
||||
|
||||
velocity = move_and_slide(velocity)
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_entered(area: Area2D) -> void:
|
||||
if area.get_parent().name == 'Player':
|
||||
player = area.get_parent()
|
||||
func _on_player_detector_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = body
|
||||
$AnimatedSprite1.animation = 'Running'
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_exited(_area: Area2D):
|
||||
player = null
|
||||
$AnimatedSprite1.animation = 'Idle'
|
||||
func _on_player_detector_body_exited(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = null
|
||||
$AnimatedSprite1.animation = 'Idle'
|
||||
return
|
||||
|
||||
|
||||
func _on_Player_Attack_area_entered(area: Area2D) -> void:
|
||||
if area.get_parent().name == 'Player':
|
||||
player = area.get_parent()
|
||||
func _on_hitbox_area_entered(area: Area2D) -> void:
|
||||
if area.is_in_group('player_weapon_1'):
|
||||
health -= 1
|
||||
hit = true
|
||||
elif area.is_in_group('player_weapon_2'):
|
||||
health -= 2
|
||||
hit = true
|
||||
|
||||
if health <= 0:
|
||||
call_deferred('queue_free')
|
||||
return
|
||||
|
||||
func _on_Player_Detector__Attack_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = body
|
||||
$AnimatedSprite1.animation = 'Jump'
|
||||
return
|
||||
|
||||
|
||||
func _on_Player_Attack_area_exited(area: Area2D) -> void:
|
||||
player = null
|
||||
$AnimatedSprite1.animation = 'Running'
|
||||
return
|
||||
func _on_Player_Detector__Attack_body_exited(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
player = body
|
||||
$AnimatedSprite1.animation = 'Running'
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=27 format=2]
|
||||
[gd_scene load_steps=30 format=2]
|
||||
|
||||
[ext_resource path="res://Resources/Level_5_Enemy_Glowing_Ghost_Occluder.tres" type="OccluderPolygon2D" id=1]
|
||||
[ext_resource path="res://Sprites/Assets/Light.png" type="Texture" id=2]
|
||||
@@ -7,181 +7,215 @@
|
||||
[ext_resource path="res://Sprites/Enemies/Hell_Hound_Jump.png" type="Texture" id=5]
|
||||
[ext_resource path="res://Sprites/Enemies/Hell_Hound_Run.png" type="Texture" id=6]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=9]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=10]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 64, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=11]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 128, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=12]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 192, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=13]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 256, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=14]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 320, 0, 64, 32 )
|
||||
[ext_resource path="res://Sprites/Enemies/Chasing_Glowing_Ghost.png" type="Texture" id=7]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
flags = 4
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 0, 0, 65, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
flags = 4
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 65, 0, 65, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=5]
|
||||
flags = 4
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 130, 0, 65, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=6]
|
||||
flags = 4
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 195, 0, 65, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=7]
|
||||
flags = 4
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 260, 0, 65, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=8]
|
||||
flags = 4
|
||||
atlas = ExtResource( 5 )
|
||||
region = Rect2( 325, 0, 65, 48 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=15]
|
||||
flags = 4
|
||||
atlas = ExtResource( 6 )
|
||||
region = Rect2( 0, 0, 67, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=16]
|
||||
flags = 4
|
||||
atlas = ExtResource( 6 )
|
||||
region = Rect2( 67, 0, 67, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=17]
|
||||
flags = 4
|
||||
atlas = ExtResource( 6 )
|
||||
region = Rect2( 134, 0, 67, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=18]
|
||||
flags = 4
|
||||
atlas = ExtResource( 6 )
|
||||
region = Rect2( 201, 0, 67, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=19]
|
||||
flags = 4
|
||||
atlas = ExtResource( 6 )
|
||||
region = Rect2( 268, 0, 67, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=9]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=10]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 64, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=11]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 128, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=12]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 192, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=13]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 256, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=14]
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 320, 0, 64, 32 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=20]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ) ],
|
||||
"loop": true,
|
||||
"name": "Idle",
|
||||
"speed": 3.0
|
||||
}, {
|
||||
<<<<<<< HEAD
|
||||
"frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
|
||||
=======
|
||||
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ) ],
|
||||
>>>>>>> main
|
||||
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ) ]
|
||||
"loop": true,
|
||||
"name": "Jump",
|
||||
"speed": 8.0
|
||||
}, {
|
||||
"frames": [ SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ) ],
|
||||
"frames": [ SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 17 ) ],
|
||||
"loop": true,
|
||||
"name": "Running",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ) ],
|
||||
"loop": true,
|
||||
"name": "Idle",
|
||||
"speed": 3.0
|
||||
} ]
|
||||
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=21]
|
||||
radius = 1.5
|
||||
height = 3.0
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 3.0
|
||||
radius = 8.0
|
||||
height = 2.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
radius = 50.0
|
||||
radius = 82.0061
|
||||
|
||||
[sub_resource type="CircleShape2D" id=22]
|
||||
radius = 25.02
|
||||
|
||||
[node name="Hellhound" type="KinematicBody2D" groups=["enemy"]]
|
||||
light_mask = 0
|
||||
collision_layer = 4
|
||||
collision_mask = 5
|
||||
|
||||
[node name="Hellhound" type="KinematicBody2D" groups=["enemies"]]
|
||||
collision_layer = 2
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="AnimatedSprite1" type="AnimatedSprite" parent="."]
|
||||
light_mask = 0
|
||||
position = Vector2( 1, -3 )
|
||||
scale = Vector2( 0.5625, 0.5625 )
|
||||
frames = SubResource( 20 )
|
||||
frames = SubResource( 18 )
|
||||
animation = "Idle"
|
||||
frame = 5
|
||||
frame = 3
|
||||
playing = true
|
||||
|
||||
[node name="Hitbox" type="CollisionShape2D" parent="."]
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
visible = false
|
||||
light_mask = 4
|
||||
position = Vector2( 0, -3 )
|
||||
|
||||
texture = ExtResource( 7 )
|
||||
offset = Vector2( 0, 0.5 )
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
light_mask = 0
|
||||
rotation = 1.5708
|
||||
shape = SubResource( 21 )
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox_1"]]
|
||||
light_mask = 0
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
visible = false
|
||||
light_mask = 0
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Player Detector" type="Area2D" parent="."]
|
||||
light_mask = 0
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
|
||||
visible = false
|
||||
scale = Vector2( 1.5, 1.5 )
|
||||
|
||||
light_mask = 0
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Player Attack" type="Area2D" parent="."]
|
||||
visible = false
|
||||
[node name="Player Detector - Attack" type="Area2D" parent="."]
|
||||
light_mask = 0
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector - Attack"]
|
||||
shape = SubResource( 22 )
|
||||
|
||||
[node name="Player Detector - Attack2" type="Area2D" parent="."]
|
||||
light_mask = 0
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
|
||||
[node name="Attack" type="CollisionShape2D" parent="Player Attack"]
|
||||
visible = false
|
||||
scale = Vector2( 0.5, 0.5 )
|
||||
shape = SubResource( 2 )
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector - Attack2"]
|
||||
shape = SubResource( 22 )
|
||||
|
||||
[node name="Light2D" type="Light2D" parent="."]
|
||||
|
||||
[node name="Light" type="Light2D" parent="."]
|
||||
visible = false
|
||||
scale = Vector2( 0.5, 0.5 )
|
||||
texture = ExtResource( 2 )
|
||||
texture_scale = 0.5
|
||||
color = Color( 0.984314, 0.94902, 0.211765, 0.392157 )
|
||||
energy = 2.0
|
||||
range_item_cull_mask = 11
|
||||
|
||||
[node name="Light2DEyes" type="Light2D" parent="."]
|
||||
[node name="Eyes" type="Light2D" parent="."]
|
||||
visible = false
|
||||
scale = Vector2( 0.1, 0.1 )
|
||||
texture = ExtResource( 2 )
|
||||
offset = Vector2( 5, -40 )
|
||||
offset = Vector2( 5, -35 )
|
||||
range_item_cull_mask = 4
|
||||
shadow_item_cull_mask = 0
|
||||
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="."]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="."]
|
||||
visible = false
|
||||
show_behind_parent = true
|
||||
occluder = ExtResource( 1 )
|
||||
|
||||
[connection signal="area_entered" from="Player Detector" to="." method="_on_player_detector_area_entered"]
|
||||
[connection signal="area_exited" from="Player Detector" to="." method="_on_player_detector_area_exited"]
|
||||
[connection signal="area_entered" from="Player Attack" to="." method="_on_Player_Attack_area_entered"]
|
||||
[connection signal="area_exited" from="Player Attack" to="." method="_on_Player_Attack_area_exited"]
|
||||
[connection signal="area_entered" from="Hitbox" to="." method="_on_hitbox_area_entered"]
|
||||
[connection signal="body_entered" from="Player Detector" to="." method="_on_player_detector_body_entered"]
|
||||
[connection signal="body_exited" from="Player Detector" to="." method="_on_player_detector_body_exited"]
|
||||
[connection signal="body_entered" from="Player Detector - Attack" to="." method="_on_Player_Detector__Attack_body_entered"]
|
||||
[connection signal="body_exited" from="Player Detector - Attack" to="." method="_on_Player_Detector__Attack_body_exited"]
|
||||
[connection signal="body_entered" from="Player Detector - Attack2" to="." method="_on_Player_Detector__Attack_body_entered"]
|
||||
[connection signal="body_exited" from="Player Detector - Attack2" to="." method="_on_Player_Detector__Attack_body_exited"]
|
||||
|
18
Enemies/Snowball Blue.gd
Normal file
@@ -0,0 +1,18 @@
|
||||
extends Area2D
|
||||
|
||||
var move = Vector2.ZERO
|
||||
var look_vec = Vector2.ZERO
|
||||
var player = null
|
||||
var speed = 3
|
||||
|
||||
func _ready():
|
||||
|
||||
look_vec = player.position - global_position
|
||||
|
||||
func _physics_process(delta):
|
||||
move = Vector2.ZERO
|
||||
move = move.move_toward(look_vec, delta)
|
||||
move = move.normalized() * speed
|
||||
position += move
|
||||
|
||||
|
21
Enemies/Snowball Blue.tscn
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Enemies/Snowball.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Sprites/Enemies/blue_snowball.png" type="Texture" id=2]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 4.47823
|
||||
|
||||
[node name="snowball_blue" type="Area2D" groups=[
|
||||
"freeze",
|
||||
]]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
position = Vector2( 0, -2 )
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="snowball_blue" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
23
Enemies/Snowball.gd
Normal file
@@ -0,0 +1,23 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
var move = Vector2.ZERO
|
||||
var look_vec = Vector2.ZERO
|
||||
var player = null
|
||||
var speed = 3
|
||||
|
||||
func _ready():
|
||||
|
||||
look_vec = player.position - position
|
||||
|
||||
func _physics_process(delta):
|
||||
move = Vector2.ZERO
|
||||
move = move.move_toward(look_vec, delta)
|
||||
move = move.normalized() * speed
|
||||
position += move
|
||||
|
||||
|
||||
#position = position.move_toward(look_vec, delta).normalized() * SPEED
|
||||
|
||||
|
||||
|
22
Enemies/Snowball.tscn
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Enemies/Snowball.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Sprites/Enemies/pink_snowball.png" type="Texture" id=2]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 4.47823
|
||||
|
||||
[node name="snowball" type="Area2D" groups=[
|
||||
"enemy_projectile_1",
|
||||
]]
|
||||
monitoring = false
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="snowball" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( -0.00869751, -0.0361767 )
|
||||
shape = SubResource( 1 )
|
64
Enemies/Snowman Enemy Blue.gd
Normal file
@@ -0,0 +1,64 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
onready var SNOWBALL_BLUE_SCENE = preload("res://Enemies/Snowball Blue.tscn")
|
||||
|
||||
var player = null
|
||||
var move = Vector2.ZERO
|
||||
var speed = .5
|
||||
var health: int = 2
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
move = Vector2.ZERO
|
||||
|
||||
if player != null:
|
||||
move = position.direction_to(player.position) * speed
|
||||
else:
|
||||
move = Vector2.ZERO
|
||||
|
||||
move = move.normalized()
|
||||
move = move_and_collide(move)
|
||||
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
func fire():
|
||||
var snowball = SNOWBALL_BLUE_SCENE.instance()
|
||||
snowball.position = get_global_position()
|
||||
snowball.player = player
|
||||
get_parent().add_child(snowball)
|
||||
$Timer.set_wait_time(1)
|
||||
|
||||
|
||||
func _on_Timer_timeout() -> void:
|
||||
if player != null:
|
||||
fire()
|
||||
|
||||
func _on_player_detector_area_entered(area: Area2D) -> void:
|
||||
if area.get_parent().name == 'Player':
|
||||
player = area.get_parent()
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_exited(_area: Area2D):
|
||||
player = null
|
||||
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:
|
||||
call_deferred('queue_free')
|
||||
return
|
54
Enemies/Snowman Enemy Blue.tscn
Normal file
@@ -0,0 +1,54 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Enemies/blue_snowman.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Enemies/Snowman Enemy.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 1.5
|
||||
height = 3.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
radius = 58.0175
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=3]
|
||||
radius = 6.0
|
||||
height = 5.0
|
||||
|
||||
[node name="snowmen_enemy" type="KinematicBody2D" groups=[
|
||||
"freeze",
|
||||
]]
|
||||
collision_layer = 2
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
light_mask = 0
|
||||
position = Vector2( 0.618717, 6.27557 )
|
||||
rotation = 1.5708
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="detection" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="detection" type="CollisionShape2D" parent="detection"]
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
autostart = true
|
||||
|
||||
[node name="hitbox" type="Area2D" parent="." groups=[
|
||||
"freeze",
|
||||
]]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[connection signal="body_entered" from="detection" to="." method="_on_Area2D_body_entered"]
|
||||
[connection signal="body_exited" from="detection" to="." method="_on_Area2D_body_exited"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
||||
[connection signal="area_entered" from="hitbox" to="." method="_on_hitbox_area_entered"]
|
66
Enemies/Snowman Enemy.gd
Normal file
@@ -0,0 +1,66 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
onready var SNOWBALL_SCENE = preload("res://Enemies/Snowball.tscn")
|
||||
|
||||
var player = null
|
||||
var move = Vector2.ZERO
|
||||
var speed = .5
|
||||
var health: int = 2
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
move = Vector2.ZERO
|
||||
|
||||
if player != null:
|
||||
move = position.direction_to(player.position) * speed
|
||||
else:
|
||||
move = Vector2.ZERO
|
||||
|
||||
move = move.normalized()
|
||||
move = move_and_collide(move)
|
||||
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
func fire():
|
||||
var snowball = SNOWBALL_SCENE.instance()
|
||||
snowball.position = get_global_position()
|
||||
snowball.player = player
|
||||
get_parent().add_child(snowball)
|
||||
$Timer.set_wait_time(1)
|
||||
|
||||
|
||||
func _on_Timer_timeout() -> void:
|
||||
if player != null:
|
||||
fire()
|
||||
|
||||
|
||||
func _on_player_detector_area_entered(area: Area2D) -> void:
|
||||
if area.get_parent().name == 'Player':
|
||||
player = area.get_parent()
|
||||
return
|
||||
|
||||
|
||||
func _on_player_detector_area_exited(_area: Area2D):
|
||||
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'):
|
||||
health -= 2
|
||||
|
||||
if health <= 0:
|
||||
call_deferred('queue_free')
|
||||
return
|
55
Enemies/Snowman Enemy.tscn
Normal file
@@ -0,0 +1,55 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Enemies/pink_snowman.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Enemies/Snowman Enemy.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 1.5
|
||||
height = 3.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
radius = 56.0659
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=3]
|
||||
radius = 6.0
|
||||
height = 5.0
|
||||
|
||||
[node name="snowmen_enemy" type="KinematicBody2D" groups=[
|
||||
"enemy",
|
||||
]]
|
||||
collision_layer = 2
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
light_mask = 0
|
||||
position = Vector2( 0.618717, 6.27557 )
|
||||
rotation = 1.5708
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="detection" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="detection" type="CollisionShape2D" parent="detection"]
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
autostart = true
|
||||
|
||||
[node name="hitbox" type="Area2D" parent="." groups=[
|
||||
"enemy_hitbox_1",
|
||||
]]
|
||||
visible = false
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[connection signal="body_entered" from="detection" to="." method="_on_Area2D_body_entered"]
|
||||
[connection signal="body_exited" from="detection" to="." method="_on_Area2D_body_exited"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
||||
[connection signal="area_entered" from="hitbox" to="." method="_on_hitbox_area_entered"]
|
12
GUI/Countdown Timer.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends Label
|
||||
|
||||
signal timer_end
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
var time_seconds: int = int($Timer.get_time_left())
|
||||
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')
|
||||
return
|
28
GUI/Countdown Timer.tscn
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://GUI/Countdown Timer.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Fonts/AtariClassicSmooth.ttf" type="DynamicFontData" id=2]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 40
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[node name="Countdown Timer" type="Label"]
|
||||
margin_left = 135.0
|
||||
margin_top = 1.0
|
||||
margin_right = 335.0
|
||||
margin_bottom = 41.0
|
||||
rect_min_size = Vector2( 200, 0 )
|
||||
rect_scale = Vector2( 0.25, 0.25 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
align = 1
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 60.0
|
||||
one_shot = true
|
||||
autostart = true
|
@@ -1,11 +1,28 @@
|
||||
extends CanvasLayer
|
||||
|
||||
export var hub_world_path: String = 'res://Levels/Hub World.tscn'
|
||||
export var disable_back_to_hub: bool = false
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if disable_back_to_hub:
|
||||
$'Menu/Menu Options/Back To Hub'.visible = false
|
||||
return
|
||||
|
||||
|
||||
func _on_resume_button_pressed() -> void:
|
||||
resume()
|
||||
return
|
||||
|
||||
|
||||
func _on_back_to_hub_button_pressed():
|
||||
if get_tree().change_scene(hub_world_path) != OK:
|
||||
print('ERROR: Pause Screen failed to change scene to Hub World.')
|
||||
resume()
|
||||
queue_free()
|
||||
return
|
||||
|
||||
|
||||
func _on_quit_button_pressed() -> void:
|
||||
get_tree().quit()
|
||||
return
|
||||
@@ -16,6 +33,11 @@ func _on_resume_button_mouse_entered() -> void:
|
||||
return
|
||||
|
||||
|
||||
func _on_back_to_hub_button_mouse_entered() -> void:
|
||||
$'Menu Button Hover'.play(0.0)
|
||||
return
|
||||
|
||||
|
||||
func _on_quit_button_mouse_entered() -> void:
|
||||
$'Menu Button Hover'.play(0.0)
|
||||
return
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=8 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/Black_Background.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Sprites/Menus/Menu Buttons/Quit_Button_Normal.png" type="Texture" id=2]
|
||||
@@ -7,6 +7,8 @@
|
||||
[ext_resource path="res://Sprites/Menus/Menu Buttons/Quit_Button_Hover.png" type="Texture" id=5]
|
||||
[ext_resource path="res://GUI/Pause Screen.gd" type="Script" id=6]
|
||||
[ext_resource path="res://Sounds/Menu_Button_Hover.wav" type="AudioStream" id=7]
|
||||
[ext_resource path="res://Sprites/Menus/Menu Buttons/Back_To_Hub_Button_Normal.png" type="Texture" id=8]
|
||||
[ext_resource path="res://Sprites/Menus/Menu Buttons/Back_To_Hub_Button_Hover.png" type="Texture" id=9]
|
||||
|
||||
[node name="Pause Screen" type="CanvasLayer"]
|
||||
pause_mode = 2
|
||||
@@ -34,10 +36,10 @@ __meta__ = {
|
||||
}
|
||||
|
||||
[node name="Menu Options" type="VBoxContainer" parent="Menu"]
|
||||
margin_left = 49.0
|
||||
margin_top = 63.0
|
||||
margin_right = 111.0
|
||||
margin_bottom = 97.0
|
||||
margin_left = 33.0
|
||||
margin_top = 53.0
|
||||
margin_right = 126.0
|
||||
margin_bottom = 106.0
|
||||
|
||||
[node name="Resume" type="CenterContainer" parent="Menu/Menu Options"]
|
||||
margin_right = 62.0
|
||||
@@ -49,6 +51,17 @@ margin_bottom = 15.0
|
||||
texture_normal = ExtResource( 3 )
|
||||
texture_hover = ExtResource( 4 )
|
||||
|
||||
[node name="Back To Hub" type="CenterContainer" parent="Menu/Menu Options"]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="Back To Hub Button" type="TextureButton" parent="Menu/Menu Options/Back To Hub"]
|
||||
margin_top = 12.0
|
||||
margin_right = 93.0
|
||||
margin_bottom = 27.0
|
||||
texture_normal = ExtResource( 8 )
|
||||
texture_hover = ExtResource( 9 )
|
||||
|
||||
[node name="Quit" type="CenterContainer" parent="Menu/Menu Options"]
|
||||
margin_top = 19.0
|
||||
margin_right = 62.0
|
||||
@@ -67,5 +80,7 @@ volume_db = -16.0
|
||||
|
||||
[connection signal="mouse_entered" from="Menu/Menu Options/Resume/Resume Button" to="." method="_on_resume_button_mouse_entered"]
|
||||
[connection signal="pressed" from="Menu/Menu Options/Resume/Resume Button" to="." method="_on_resume_button_pressed"]
|
||||
[connection signal="mouse_entered" from="Menu/Menu Options/Back To Hub/Back To Hub Button" to="." method="_on_back_to_hub_button_mouse_entered"]
|
||||
[connection signal="pressed" from="Menu/Menu Options/Back To Hub/Back To Hub Button" to="." method="_on_back_to_hub_button_pressed"]
|
||||
[connection signal="mouse_entered" from="Menu/Menu Options/Quit/Quit Button" to="." method="_on_quit_button_mouse_entered"]
|
||||
[connection signal="pressed" from="Menu/Menu Options/Quit/Quit Button" to="." method="_on_quit_button_pressed"]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/Splash_Screen.png" type="Texture" id=1]
|
||||
[ext_resource path="res://GUI/Splash Screen.gd" type="Script" id=2]
|
||||
|
@@ -3,4 +3,15 @@ extends Node2D
|
||||
|
||||
func _ready() -> void:
|
||||
$YSort/Player.load_hud($HUD)
|
||||
|
||||
for level_portal in $'YSort/Level Portals'.get_children():
|
||||
if level_portal.connect('enter_level', self, 'enter_level') != OK:
|
||||
print('ERROR: Level Portal "enter_level" signal already connected.')
|
||||
return
|
||||
|
||||
|
||||
func enter_level(level: String) -> void:
|
||||
if get_tree().change_scene(level) != OK:
|
||||
print('ERROR: Hub World failed to change scene to Level.')
|
||||
queue_free()
|
||||
return
|
||||
|
10
Levels/Interactables/Coin.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
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()
|
19
Levels/Interactables/Coin.tscn
Normal file
@@ -0,0 +1,19 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Levels/Interactables/Coin.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Sprites/Assets/coin.png" type="Texture" id=2]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 6.38067
|
||||
|
||||
[node name="coin" type="Area2D"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
position = Vector2( 0, 1 )
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="coin" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_Node2D_body_entered"]
|
11
Levels/Interactables/Level Portal.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends Area2D
|
||||
|
||||
signal enter_level(level)
|
||||
|
||||
export var level_path: String = 'res://Levels/LEVEL.tscn'
|
||||
|
||||
|
||||
func _on_level_portal_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
emit_signal('enter_level', level_path)
|
||||
return
|
28
Levels/Interactables/Level Portal.tscn
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Levels/Interactables/Level_Portal.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Levels/Interactables/Level Portal.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 8.0
|
||||
height = 18.0
|
||||
|
||||
[node name="Level Portal" type="Area2D"]
|
||||
light_mask = 0
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
offset = Vector2( 0, -8 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
light_mask = 0
|
||||
position = Vector2( 0, -8 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_level_portal_body_entered"]
|
@@ -38,10 +38,10 @@ shape = SubResource( 2 )
|
||||
|
||||
[node name="Unlock" type="Area2D" parent="."]
|
||||
light_mask = 0
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Unlock"]
|
||||
visible = false
|
||||
|
@@ -1,10 +1,27 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/blue_star.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Sprites/Assets/bule_star_sprite_spread.png" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 7.95021, 8.07351 )
|
||||
|
||||
[sub_resource type="Animation" id=2]
|
||||
resource_name = "Sparkle"
|
||||
length = 2.0
|
||||
loop = true
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Sprite:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 0.5, 1, 1.5 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ 0, 1, 2, 3 ]
|
||||
}
|
||||
|
||||
[node name="Star" type="RigidBody2D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 0
|
||||
@@ -15,3 +32,10 @@ shape = SubResource( 1 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
hframes = 4
|
||||
frame = 2
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
autoplay = "Sparkle"
|
||||
method_call_mode = 1
|
||||
anims/Sparkle = SubResource( 2 )
|
||||
|
@@ -36,7 +36,6 @@ limit_bottom = 225
|
||||
|
||||
[node name="Dark Matter" parent="YSort/Enemies" instance=ExtResource( 6 )]
|
||||
position = Vector2( 97.0154, 82.0323 )
|
||||
collision_mask = 0
|
||||
|
||||
[node name="Dark Matter2" parent="YSort/Enemies" instance=ExtResource( 6 )]
|
||||
position = Vector2( 205.006, 50.8542 )
|
||||
@@ -64,3 +63,12 @@ position = Vector2( 323.666, 161.038 )
|
||||
[node name="HUD" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
[node name="Pause Screen" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
[node name="Map_boundary" type="RigidBody2D" parent="."]
|
||||
collision_layer = 7
|
||||
collision_mask = 7
|
||||
mode = 1
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Map_boundary"]
|
||||
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 )
|
||||
|
56
Levels/Level 3.gd
Normal file
@@ -0,0 +1,56 @@
|
||||
extends Node2D
|
||||
|
||||
onready var coin = preload('res://Levels/Interactables/Coin.tscn')
|
||||
|
||||
var screensize
|
||||
var score = 0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
$YSort/Player.load_hud($HUD)
|
||||
screensize = get_viewport_rect().size
|
||||
spawn_coins(8)
|
||||
return
|
||||
|
||||
|
||||
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')
|
||||
#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
|
||||
|
||||
|
||||
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')
|
||||
return
|
||||
|
||||
|
||||
func _on_TreasureChest_ice_key_collected() -> void:
|
||||
$YSort/Door/doorClosed.visible = false
|
||||
$YSort/Door/doorOpened.visible = true
|
||||
$YSort/DoorCollision.layers = 5
|
||||
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':
|
||||
print('WIN WIN WIN')
|
||||
get_tree().change_scene('res://Levels/Hub World.tscn')
|
||||
return
|
227
Levels/Level 3.tscn
Normal file
16
Levels/Objects/IceDoor.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends Sprite
|
||||
|
||||
|
||||
# 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
|
21
Levels/Objects/IceDoor.tscn
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Levels/Objects/Gate_Open.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Sprites/Levels/Objects/Gate_Closed.png" type="Texture" id=2]
|
||||
|
||||
[node name="IceDoor" type="Sprite"]
|
||||
|
||||
[node name="doorClosed" type="Sprite" parent="."]
|
||||
modulate = Color( 0.00392157, 0.905882, 1, 1 )
|
||||
self_modulate = Color( 0.0352941, 0.705882, 1, 1 )
|
||||
position = Vector2( 0.530327, 0.0883861 )
|
||||
scale = Vector2( 0.742002, 0.706551 )
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="doorOpened" type="Sprite" parent="."]
|
||||
visible = false
|
||||
modulate = Color( 0.00392157, 0.905882, 1, 1 )
|
||||
self_modulate = Color( 0.0352941, 0.705882, 1, 1 )
|
||||
position = Vector2( 0.353549, 0.97227 )
|
||||
scale = Vector2( 0.732446, 0.669794 )
|
||||
texture = ExtResource( 1 )
|
24
Levels/Objects/Key.gd
Normal file
@@ -0,0 +1,24 @@
|
||||
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:
|
||||
$IceKeySprite.visible = false
|
||||
|
||||
|
||||
func _on_AnimationPlayer_animation_started(anim_name: String) -> void:
|
||||
$IceKeySprite.visible = true
|
21
Levels/Objects/Key.tscn
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Levels/Objects/icekey.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Levels/Interactables/Gem.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
resource_name = "rise"
|
||||
length = 1.2
|
||||
|
||||
[node name="Key" type="Node2D"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="IceKeySprite" type="Sprite" parent="."]
|
||||
position = Vector2( -0.0417144, 0.145997 )
|
||||
scale = Vector2( 0.760146, 0.732771 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
anims/rise = SubResource( 1 )
|
||||
|
||||
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"]
|
34
Levels/Objects/TreasureChest_L3.gd
Normal file
@@ -0,0 +1,34 @@
|
||||
extends Sprite
|
||||
|
||||
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")
|
||||
is_opened = true
|
||||
has_key = false
|
||||
emit_signal("ice_key_collected")
|
38
Levels/Objects/TreasureChest_L3.tscn
Normal file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://Levels/Interactables/Treasure Chest.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Levels/Objects/Key.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Sprites/Levels/Interactables/Treasure_Chest_Closed.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Sprites/Levels/Interactables/Treasure_Chest_Open.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Levels/Objects/Key.gd" type="Script" id=5]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 21.3333, 17.3333 )
|
||||
|
||||
[node name="TreasureChest" type="Sprite" groups=["enemies"]]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="chestOpened" type="Sprite" parent="."]
|
||||
visible = false
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
[node name="chestClosed" type="Sprite" parent="."]
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Key" parent="." instance=ExtResource( 2 )]
|
||||
visible = false
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="Player Detector" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
|
||||
visible = false
|
||||
position = Vector2( 1, -1 )
|
||||
scale = Vector2( 1.5, 1.5 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[connection signal="area_entered" from="Player Detector" to="." method="_on_Player_Detector_area_entered"]
|
@@ -3,18 +3,15 @@
|
||||
[ext_resource path="res://Sprites/Assets/forestTreeBig.png" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 6.0
|
||||
height = 10.0
|
||||
radius = 5.0
|
||||
height = 9.0
|
||||
|
||||
[node name="Tree" type="Node2D"]
|
||||
[node name="Tree" type="StaticBody2D"]
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
modulate = Color( 0.870588, 0.215686, 0.215686, 1 )
|
||||
texture = ExtResource( 1 )
|
||||
offset = Vector2( 0, -5 )
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
rotation = 1.5708
|
||||
shape = SubResource( 1 )
|
||||
|
BIN
Levels/Objects/icekey.png
Normal file
After Width: | Height: | Size: 285 B |
34
Levels/Objects/icekey.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icekey.png-527d7dd5cd660f0970e78efce0eda1a1.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Levels/Objects/icekey.png"
|
||||
dest_files=[ "res://.import/icekey.png-527d7dd5cd660f0970e78efce0eda1a1.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
35
Levels/SlowTime.gd
Normal file
@@ -0,0 +1,35 @@
|
||||
extends Node
|
||||
|
||||
signal unfreeze
|
||||
|
||||
const END_VALUE: int = 1
|
||||
|
||||
var is_active: bool = false
|
||||
var time_start: int
|
||||
var duration_ms: int
|
||||
var start_value: float
|
||||
|
||||
|
||||
func start(duration: int = 1, strength: float = 0.9):
|
||||
time_start = OS.get_ticks_msec()
|
||||
duration_ms = duration * 1000
|
||||
start_value = 1 - strength
|
||||
Engine.time_scale = start_value
|
||||
is_active = true
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
if is_active:
|
||||
var current_time = OS.get_ticks_msec() - time_start
|
||||
var value = circl_ease_in(current_time, start_value, END_VALUE, duration_ms)
|
||||
if current_time >= duration_ms:
|
||||
is_active = false
|
||||
value = END_VALUE
|
||||
emit_signal('unfreeze')
|
||||
Engine.time_scale = value
|
||||
return
|
||||
|
||||
|
||||
func circl_ease_in(t, b, c, d):
|
||||
t /= d
|
||||
return -c * (sqrt(1 - t * t) - 1) + b
|
@@ -7,7 +7,7 @@ export var relative_y_tiles: int
|
||||
|
||||
func _on_spawn_trap_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
set_deferred('monitoring', false)
|
||||
$Tile.set_deferred('disabled', true)
|
||||
|
||||
var enemy: KinematicBody2D = load(enemy_path).instance()
|
||||
enemy.position.x = position.x + (relative_x_tiles * 16 + 8)
|
||||
|
14
Main.gd
@@ -3,10 +3,11 @@ extends Node
|
||||
export var splash_screen_path: String
|
||||
export var main_menu_path: String
|
||||
export var level_select_menu_path: String
|
||||
export var world_path: String
|
||||
export var hub_world_path: String
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
randomize()
|
||||
var splash_screen: Node = play_splash_screen()
|
||||
yield(splash_screen, 'complete')
|
||||
splash_screen = null
|
||||
@@ -39,10 +40,13 @@ func play_main_menu() -> Node:
|
||||
|
||||
func main_menu_option(option: String) -> void:
|
||||
if option == 'new game':
|
||||
var level_select_menu: Node = play_level_select_menu()
|
||||
yield(level_select_menu, 'complete')
|
||||
free_connected_node(level_select_menu, 'level_select_menu_option')
|
||||
level_select_menu = null
|
||||
if get_tree().change_scene(hub_world_path) != OK:
|
||||
print('ERROR: Main failed to change scene to Hub World.')
|
||||
queue_free()
|
||||
#var level_select_menu: Node = play_level_select_menu()
|
||||
#yield(level_select_menu, 'complete')
|
||||
#free_connected_node(level_select_menu, 'level_select_menu_option')
|
||||
#level_select_menu = null
|
||||
return
|
||||
|
||||
|
||||
|
@@ -8,7 +8,7 @@ script = ExtResource( 1 )
|
||||
splash_screen_path = "res://GUI/Splash Screen.tscn"
|
||||
main_menu_path = "res://GUI/Main Menu.tscn"
|
||||
level_select_menu_path = "res://GUI/Level Select Menu.tscn"
|
||||
world_path = "res://Levels/Hub World.tscn"
|
||||
hub_world_path = "res://Levels/Hub World.tscn"
|
||||
|
||||
[node name="Background" type="Sprite" parent="."]
|
||||
texture = ExtResource( 3 )
|
||||
|
BIN
Music/Level_3.mp3
Normal file
15
Music/Level_3.mp3.import
Normal file
@@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
path="res://.import/Level_3.mp3-c1f27f9292fb52473328a029b05dce7d.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Music/Level_3.mp3"
|
||||
dest_files=[ "res://.import/Level_3.mp3-c1f27f9292fb52473328a029b05dce7d.mp3str" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
@@ -1,5 +1,7 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
signal frozen
|
||||
|
||||
export var ACCELERATION: int = 1000
|
||||
export var MAX_SPEED: int = 120
|
||||
export var FRICTION: int = 1000
|
||||
@@ -7,8 +9,6 @@ export var FRICTION: int = 1000
|
||||
const HEALTH_SLICES: Array = [0, 18, 35, 50, 65, 82, 100]
|
||||
var health_index: int = 6
|
||||
|
||||
var l5_gems: int = 0
|
||||
|
||||
var hud: CanvasLayer = null
|
||||
var velocity: Vector2 = Vector2.ZERO
|
||||
|
||||
@@ -49,22 +49,22 @@ func load_hud(node: CanvasLayer) -> void:
|
||||
|
||||
|
||||
func set_weapon_position(pos: Vector2) -> void:
|
||||
# facing left
|
||||
# Facing left
|
||||
if pos[0] < 0:
|
||||
$Sword.rotation_degrees = -90
|
||||
$Javelin.rotation_degrees = -90
|
||||
|
||||
# facing right
|
||||
# Facing right
|
||||
elif pos[0] > 0:
|
||||
$Sword.rotation_degrees = 90
|
||||
$Javelin.rotation_degrees = 90
|
||||
|
||||
# facing up
|
||||
# Facing up
|
||||
elif pos[1] < 0:
|
||||
$Sword.rotation_degrees = 0
|
||||
$Javelin.rotation_degrees = 0
|
||||
|
||||
# facing down
|
||||
# Facing down
|
||||
elif pos[1] > 0:
|
||||
$Sword.rotation_degrees = 180
|
||||
$Javelin.rotation_degrees = 180
|
||||
@@ -104,6 +104,9 @@ func _on_hitbox_area_entered(area: Area2D) -> void:
|
||||
hit = 2
|
||||
elif area.is_in_group('enemy_hitbox_3') or area.is_in_group('enemy_projectile_3'):
|
||||
hit = 3
|
||||
elif area.is_in_group('freeze'):
|
||||
emit_signal('frozen')
|
||||
$Sprite.self_modulate = Color(0, 0.5, 1)
|
||||
else:
|
||||
return
|
||||
|
||||
@@ -111,7 +114,10 @@ func _on_hitbox_area_entered(area: Area2D) -> void:
|
||||
health_index -= hit
|
||||
if health_index < 0:
|
||||
health_index = 0
|
||||
|
||||
hud.update_health(HEALTH_SLICES[health_index])
|
||||
else:
|
||||
get_tree().change_scene('res://Levels/Hub World.tscn')
|
||||
return
|
||||
|
||||
|
||||
@@ -122,7 +128,7 @@ func _input(event: InputEvent) -> void:
|
||||
elif hud.weapon == 'javelin':
|
||||
$'Javelin/Javelin Animation'.play('swing')
|
||||
|
||||
if event.is_action_pressed('screenshot'):
|
||||
elif event.is_action_pressed('screenshot'):
|
||||
var img: Image = get_viewport().get_texture().get_data()
|
||||
yield(get_tree(), 'idle_frame')
|
||||
yield(get_tree(), 'idle_frame')
|
||||
@@ -135,3 +141,8 @@ func _input(event: InputEvent) -> void:
|
||||
if img.save_png('user://Screenshot_%d%d%d_%d.png' % [time.year, time.month, time.day, time_msecs]) != OK:
|
||||
print('ERROR: Failed saving screenshot.')
|
||||
return
|
||||
|
||||
|
||||
func _on_SlowTime_unfreeze() -> void:
|
||||
$Sprite.self_modulate = Color(1, 1, 1)
|
||||
return
|
||||
|
@@ -10,9 +10,9 @@
|
||||
|
||||
[sub_resource type="SpriteFrames" id=1]
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 2 ) ],
|
||||
"frames": [ ExtResource( 4 ) ],
|
||||
"loop": false,
|
||||
"name": "look_left",
|
||||
"name": "look_up",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 2 ) ],
|
||||
@@ -20,15 +20,15 @@ animations = [ {
|
||||
"name": "look_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 4 ) ],
|
||||
"loop": false,
|
||||
"name": "look_up",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 3 ) ],
|
||||
"loop": false,
|
||||
"name": "look_down",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 2 ) ],
|
||||
"loop": false,
|
||||
"name": "look_left",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=2]
|
||||
@@ -182,9 +182,7 @@ graph_offset = Vector2( -3591.37, -302.6 )
|
||||
|
||||
[sub_resource type="AnimationNodeStateMachinePlayback" id=14]
|
||||
|
||||
[node name="Player" type="KinematicBody2D" groups=[
|
||||
"player",
|
||||
]]
|
||||
[node name="Player" type="KinematicBody2D" groups=["player"]]
|
||||
collision_layer = 2
|
||||
script = ExtResource( 1 )
|
||||
|
||||
@@ -200,12 +198,10 @@ visible = false
|
||||
rotation = 1.5708
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." groups=[
|
||||
"player_hitbox",
|
||||
]]
|
||||
input_pickable = false
|
||||
[node name="Hitbox" type="Area2D" parent="." groups=["player_hitbox"]]
|
||||
collision_layer = 2
|
||||
collision_mask = 4
|
||||
input_pickable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
visible = false
|
||||
|
28
Resources/tileSet.tres
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_resource type="TileSet" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Sprites/Assets/tileSet.png" type="Texture" id=1]
|
||||
|
||||
[resource]
|
||||
0/name = "tileSet.png 0"
|
||||
0/texture = ExtResource( 1 )
|
||||
0/tex_offset = Vector2( 0, 0 )
|
||||
0/modulate = Color( 1, 1, 1, 1 )
|
||||
0/region = Rect2( 0, 0, 208, 96 )
|
||||
0/tile_mode = 1
|
||||
0/autotile/bitmask_mode = 1
|
||||
0/autotile/bitmask_flags = [ Vector2( 1, 1 ), 432, Vector2( 1, 2 ), 438, Vector2( 1, 3 ), 54, Vector2( 1, 4 ), 48, Vector2( 2, 1 ), 504, Vector2( 2, 2 ), 511, Vector2( 2, 3 ), 63, Vector2( 2, 4 ), 56, Vector2( 3, 1 ), 216, Vector2( 3, 2 ), 219, Vector2( 3, 3 ), 27, Vector2( 3, 4 ), 24, Vector2( 4, 1 ), 144, Vector2( 4, 2 ), 146, Vector2( 4, 3 ), 18, Vector2( 4, 4 ), 16, Vector2( 5, 1 ), 176, Vector2( 5, 2 ), 182, Vector2( 5, 3 ), 434, Vector2( 5, 4 ), 50, Vector2( 5, 5 ), 178, Vector2( 6, 1 ), 248, Vector2( 6, 2 ), 255, Vector2( 6, 3 ), 507, Vector2( 6, 4 ), 59, Vector2( 6, 5 ), 251, Vector2( 7, 1 ), 440, Vector2( 7, 2 ), 447, Vector2( 7, 3 ), 510, Vector2( 7, 4 ), 62, Vector2( 7, 5 ), 446, Vector2( 8, 1 ), 152, Vector2( 8, 2 ), 155, Vector2( 8, 3 ), 218, Vector2( 8, 4 ), 26, Vector2( 8, 5 ), 154, Vector2( 9, 1 ), 184, Vector2( 9, 2 ), 191, Vector2( 9, 3 ), 506, Vector2( 9, 4 ), 58, Vector2( 9, 5 ), 186, Vector2( 10, 1 ), 443, Vector2( 10, 2 ), 254, Vector2( 10, 3 ), 442, Vector2( 10, 4 ), 190, Vector2( 11, 3 ), 250, Vector2( 11, 4 ), 187 ]
|
||||
0/autotile/icon_coordinate = Vector2( 2, 2 )
|
||||
0/autotile/tile_size = Vector2( 16, 16 )
|
||||
0/autotile/spacing = 0
|
||||
0/autotile/occluder_map = [ ]
|
||||
0/autotile/navpoly_map = [ ]
|
||||
0/autotile/priority_map = [ ]
|
||||
0/autotile/z_index_map = [ ]
|
||||
0/occluder_offset = Vector2( 0, 0 )
|
||||
0/navigation_offset = Vector2( 0, 0 )
|
||||
0/shape_offset = Vector2( 0, 0 )
|
||||
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||
0/shape_one_way = false
|
||||
0/shape_one_way_margin = 0.0
|
||||
0/shapes = [ ]
|
||||
0/z_index = 0
|
BIN
Sprites/Assets/Black_Tile.png
Normal file
After Width: | Height: | Size: 82 B |
@@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/resources_basic.png-128bab182945611297ec1bda48bed0c4.stex"
|
||||
path="res://.import/Black_Tile.png-468b234ed74eefbb74c33d4d44fd3553.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Assets/resources_basic.png"
|
||||
dest_files=[ "res://.import/resources_basic.png-128bab182945611297ec1bda48bed0c4.stex" ]
|
||||
source_file="res://Sprites/Assets/Black_Tile.png"
|
||||
dest_files=[ "res://.import/Black_Tile.png-468b234ed74eefbb74c33d4d44fd3553.stex" ]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
34
Sprites/Assets/Resources_Basic.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Resources_Basic.png-ace2281282b93b7ae48cda9c52d377ad.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Assets/Resources_Basic.png"
|
||||
dest_files=[ "res://.import/Resources_Basic.png-ace2281282b93b7ae48cda9c52d377ad.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=2
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=0
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
|
BIN
Sprites/Assets/blue_star_225.png
Normal file
After Width: | Height: | Size: 389 B |
34
Sprites/Assets/blue_star_225.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/blue_star_225.png-5b00146bb430703346fdaaa520f40253.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Assets/blue_star_225.png"
|
||||
dest_files=[ "res://.import/blue_star_225.png-5b00146bb430703346fdaaa520f40253.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
BIN
Sprites/Assets/blue_star_45.png
Normal file
After Width: | Height: | Size: 339 B |
34
Sprites/Assets/blue_star_45.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/blue_star_45.png-3d076c408f8cdbf88a33f4a91f0e7375.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Assets/blue_star_45.png"
|
||||
dest_files=[ "res://.import/blue_star_45.png-3d076c408f8cdbf88a33f4a91f0e7375.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
BIN
Sprites/Assets/bule_star_sprite_spread.png
Normal file
After Width: | Height: | Size: 746 B |
34
Sprites/Assets/bule_star_sprite_spread.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/bule_star_sprite_spread.png-38c7879008f2591d865215d456421085.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Assets/bule_star_sprite_spread.png"
|
||||
dest_files=[ "res://.import/bule_star_sprite_spread.png-38c7879008f2591d865215d456421085.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
BIN
Sprites/Assets/coin.png
Normal file
After Width: | Height: | Size: 252 B |
35
Sprites/Assets/coin.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/coin.png-d3ed10af727404355aa36094ddb4dc03.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Assets/coin.png"
|
||||
dest_files=[ "res://.import/coin.png-d3ed10af727404355aa36094ddb4dc03.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
@@ -20,7 +20,7 @@ compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
@@ -28,7 +28,8 @@ process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
|
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
|
BIN
Sprites/Assets/tileSet.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
35
Sprites/Assets/tileSet.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/tileSet.png-6c03456baa0e3f76257076e875be6f45.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Assets/tileSet.png"
|
||||
dest_files=[ "res://.import/tileSet.png-6c03456baa0e3f76257076e875be6f45.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=3
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=2
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=0
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
|
@@ -28,6 +28,7 @@ process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
|
BIN
Sprites/Enemies/blue_snowball.png
Normal file
After Width: | Height: | Size: 189 B |
35
Sprites/Enemies/blue_snowball.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/blue_snowball.png-c6d5abfbfa9ce938493f1016f2e4589f.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Enemies/blue_snowball.png"
|
||||
dest_files=[ "res://.import/blue_snowball.png-c6d5abfbfa9ce938493f1016f2e4589f.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
Sprites/Enemies/blue_snowman.png
Normal file
After Width: | Height: | Size: 285 B |
35
Sprites/Enemies/blue_snowman.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/blue_snowman.png-112d9d688c299d472d979f859a987784.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Enemies/blue_snowman.png"
|
||||
dest_files=[ "res://.import/blue_snowman.png-112d9d688c299d472d979f859a987784.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
Sprites/Enemies/pink_snowball.png
Normal file
After Width: | Height: | Size: 189 B |
35
Sprites/Enemies/pink_snowball.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/pink_snowball.png-25092ec229f21e93ceffdfbf202a6897.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Enemies/pink_snowball.png"
|
||||
dest_files=[ "res://.import/pink_snowball.png-25092ec229f21e93ceffdfbf202a6897.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
Sprites/Enemies/pink_snowman.png
Normal file
After Width: | Height: | Size: 303 B |
35
Sprites/Enemies/pink_snowman.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/pink_snowman.png-d3376657eb23cfcae58851c482f8d18e.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Enemies/pink_snowman.png"
|
||||
dest_files=[ "res://.import/pink_snowman.png-d3376657eb23cfcae58851c482f8d18e.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
Before Width: | Height: | Size: 265 B After Width: | Height: | Size: 265 B |
@@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/fire_column_medium_10.png-9ae78a0f5ef8531c3b56d09574ecd317.stex"
|
||||
path="res://.import/Fire_Column_Medium_10.png-505d756e8645c45b6fb339fbb6f8add5.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Levels/Environment/fire_column_medium_10.png"
|
||||
dest_files=[ "res://.import/fire_column_medium_10.png-9ae78a0f5ef8531c3b56d09574ecd317.stex" ]
|
||||
source_file="res://Sprites/Levels/Environment/Fire_Column_Medium_10.png"
|
||||
dest_files=[ "res://.import/Fire_Column_Medium_10.png-505d756e8645c45b6fb339fbb6f8add5.stex" ]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 208 B |
@@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/fire_column_medium_11.png-f6c2ac8f20428aebca0febd0f65a5806.stex"
|
||||
path="res://.import/Fire_Column_Medium_11.png-cb278dde504fd6f8f415eda7091cfa9a.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Levels/Environment/fire_column_medium_11.png"
|
||||
dest_files=[ "res://.import/fire_column_medium_11.png-f6c2ac8f20428aebca0febd0f65a5806.stex" ]
|
||||
source_file="res://Sprites/Levels/Environment/Fire_Column_Medium_11.png"
|
||||
dest_files=[ "res://.import/Fire_Column_Medium_11.png-cb278dde504fd6f8f415eda7091cfa9a.stex" ]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 181 B After Width: | Height: | Size: 181 B |
@@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/fire_column_medium_12.png-25bc0d063fd42a44b6e9e423e3bf2656.stex"
|
||||
path="res://.import/Fire_Column_Medium_12.png-1e7c2da6903b243f73d7ed4b50d90f8a.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Levels/Environment/fire_column_medium_12.png"
|
||||
dest_files=[ "res://.import/fire_column_medium_12.png-25bc0d063fd42a44b6e9e423e3bf2656.stex" ]
|
||||
source_file="res://Sprites/Levels/Environment/Fire_Column_Medium_12.png"
|
||||
dest_files=[ "res://.import/Fire_Column_Medium_12.png-1e7c2da6903b243f73d7ed4b50d90f8a.stex" ]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 151 B After Width: | Height: | Size: 151 B |
@@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/fire_column_medium_13.png-6f8490642f9a7a3884a31ae3975deb08.stex"
|
||||
path="res://.import/Fire_Column_Medium_13.png-a147b7694df1cdf05d373697c6a4ede3.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Levels/Environment/fire_column_medium_13.png"
|
||||
dest_files=[ "res://.import/fire_column_medium_13.png-6f8490642f9a7a3884a31ae3975deb08.stex" ]
|
||||
source_file="res://Sprites/Levels/Environment/Fire_Column_Medium_13.png"
|
||||
dest_files=[ "res://.import/Fire_Column_Medium_13.png-a147b7694df1cdf05d373697c6a4ede3.stex" ]
|
||||
|
||||
[params]
|
||||
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 125 B |
@@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/fire_column_medium_14.png-81452b14764f0dd97e4008c5f9448c38.stex"
|
||||
path="res://.import/Fire_Column_Medium_14.png-205dacf8251c335e3becb65b0df84941.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Levels/Environment/fire_column_medium_14.png"
|
||||
dest_files=[ "res://.import/fire_column_medium_14.png-81452b14764f0dd97e4008c5f9448c38.stex" ]
|
||||
source_file="res://Sprites/Levels/Environment/Fire_Column_Medium_14.png"
|
||||
dest_files=[ "res://.import/Fire_Column_Medium_14.png-205dacf8251c335e3becb65b0df84941.stex" ]
|
||||
|
||||
[params]
|
||||
|
BIN
Sprites/Levels/Interactables/Level_Portal.png
Normal file
After Width: | Height: | Size: 201 B |
34
Sprites/Levels/Interactables/Level_Portal.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Level_Portal.png-032cf024355e4d24a270165e6487b474.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Levels/Interactables/Level_Portal.png"
|
||||
dest_files=[ "res://.import/Level_Portal.png-032cf024355e4d24a270165e6487b474.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=2
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=0
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
Sprites/Levels/Interactables/icekey.png
Normal file
After Width: | Height: | Size: 285 B |
34
Sprites/Levels/Interactables/icekey.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icekey.png-df1cf56280665fb9b333567113ef5539.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Levels/Interactables/icekey.png"
|
||||
dest_files=[ "res://.import/icekey.png-df1cf56280665fb9b333567113ef5539.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
Sprites/Levels/Tilesets/Hub_World_Grass_Atlas.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
34
Sprites/Levels/Tilesets/Hub_World_Grass_Atlas.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Hub_World_Grass_Atlas.png-35f62295b86dd25eba082844cf2760f1.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Levels/Tilesets/Hub_World_Grass_Atlas.png"
|
||||
dest_files=[ "res://.import/Hub_World_Grass_Atlas.png-35f62295b86dd25eba082844cf2760f1.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=2
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=0
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
Sprites/Menus/Menu Buttons/Back_To_Hub_Button_Hover.png
Normal file
After Width: | Height: | Size: 227 B |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Back_To_Hub_Button_Hover.png-7168f4a8f8f34c936a30024ee0a830de.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Menus/Menu Buttons/Back_To_Hub_Button_Hover.png"
|
||||
dest_files=[ "res://.import/Back_To_Hub_Button_Hover.png-7168f4a8f8f34c936a30024ee0a830de.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=2
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=0
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
Sprites/Menus/Menu Buttons/Back_To_Hub_Button_Normal.png
Normal file
After Width: | Height: | Size: 227 B |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Back_To_Hub_Button_Normal.png-f0f1f9eb9ea13789e27688857590fc22.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Menus/Menu Buttons/Back_To_Hub_Button_Normal.png"
|
||||
dest_files=[ "res://.import/Back_To_Hub_Button_Normal.png-f0f1f9eb9ea13789e27688857590fc22.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=2
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=0
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
@@ -12,11 +12,11 @@ config_version=4
|
||||
|
||||
config/name="Embodiment"
|
||||
run/main_scene="res://Main.tscn"
|
||||
run/delta_sync_after_draw=true
|
||||
boot_splash/image="res://Sprites/Assets/Black_Background.png"
|
||||
boot_splash/use_filter=false
|
||||
boot_splash/bg_color=Color( 0, 0, 0, 1 )
|
||||
config/icon="res://Sprites/Assets/icon.png"
|
||||
run/delta_sync_after_draw=true
|
||||
|
||||
[display]
|
||||
|
||||
@@ -31,33 +31,33 @@ window/stretch/aspect="keep"
|
||||
|
||||
player_right={
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null)
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
player_left={
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
player_up={
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null)
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
player_down={
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"unicode":0,"echo":false,"script":null)
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
screenshot={
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777245,"unicode":0,"echo":false,"script":null)
|
||||
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
player_attack={
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null)
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777245,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
|