Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
3e0f1c99d5 | |||
eda35b4e9b | |||
02f04cc38a | |||
12b02877bb |
@ -43,6 +43,6 @@ one_shot = true
|
||||
ignore_time_scale = true
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
[connection signal="timeout" from="KillAfter" to="." method="_on_kill_after_timeout"]
|
||||
|
@ -8,7 +8,7 @@ script = ExtResource("1_7je20")
|
||||
arrow_scene = ExtResource("2_ek028")
|
||||
|
||||
[node name="SpawnTiming" type="Timer" parent="."]
|
||||
wait_time = 3.0
|
||||
wait_time = 5.0
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="SpawnTiming" to="." method="_on_spawn_timing_timeout"]
|
||||
|
@ -1,13 +1,26 @@
|
||||
extends Node
|
||||
class_name Damageable
|
||||
|
||||
|
||||
@export var health = 3
|
||||
@export var hitback_velocity: float = 500
|
||||
|
||||
var active = true
|
||||
|
||||
signal got_hit
|
||||
signal die
|
||||
|
||||
func set_active(new_active: bool):
|
||||
active = new_active
|
||||
|
||||
func damage(value: int = 0, direction: Vector2 = Vector2.UP):
|
||||
if not active:
|
||||
return
|
||||
|
||||
health -= value
|
||||
if health <= 0:
|
||||
die.emit()
|
||||
return
|
||||
|
||||
get_parent().velocity = hitback_velocity * direction
|
||||
got_hit.emit()
|
||||
|
||||
|
@ -5,4 +5,5 @@
|
||||
[node name="Hitbox" type="Area2D"]
|
||||
script = ExtResource("1_n3l2p")
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
92
dialogues/choice.gd
Normal file
92
dialogues/choice.gd
Normal file
@ -0,0 +1,92 @@
|
||||
extends Node
|
||||
|
||||
@onready var bubbles: HBoxContainer = %Bubbles
|
||||
@onready var bubbles_back: TileMapLayer = %BubblesBack
|
||||
@onready var bubbles_interior: TileMapLayer = %BubblesInterior
|
||||
@onready var bubble_label: RichTextLabel = %BubbleLabel
|
||||
|
||||
@onready var ui_flicker_timer: Timer = $UIFlickerTimer
|
||||
@onready var e_ui_button: TextureRect = %E
|
||||
@onready var next_label: Label = %NextLabel
|
||||
|
||||
@onready var choices_container: MarginContainer = %ChoicesContainer
|
||||
@onready var accept_indicator: ColorRect = %AcceptIndicator
|
||||
@onready var accept_label: Label = %AcceptLabel
|
||||
@onready var reject_indicator: ColorRect = %RejectIndicator
|
||||
@onready var reject_label: Label = %RejectLabel
|
||||
|
||||
@export_multiline var choice = ""
|
||||
@export var accept_option = ""
|
||||
@export var reject_option = ""
|
||||
|
||||
@onready var wait_a_sec: Timer = $WaitASec
|
||||
|
||||
signal accepted
|
||||
signal rejected
|
||||
|
||||
var is_accept_selected = true
|
||||
var is_choice_happening = false
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if not is_choice_happening:
|
||||
return
|
||||
|
||||
if Input.is_action_just_pressed("move_right"):
|
||||
is_accept_selected = false
|
||||
update_ui()
|
||||
|
||||
if Input.is_action_just_pressed("move_left"):
|
||||
is_accept_selected = true
|
||||
update_ui()
|
||||
|
||||
if Input.is_action_just_pressed("interact"):
|
||||
stop_choice()
|
||||
|
||||
|
||||
func update_ui():
|
||||
accept_indicator.visible = is_accept_selected
|
||||
reject_indicator.visible = not is_accept_selected
|
||||
|
||||
func toggle_ui():
|
||||
e_ui_button.visible = not e_ui_button.visible
|
||||
|
||||
func start_choice():
|
||||
bubbles.visible = true
|
||||
bubbles_back.visible = true
|
||||
bubbles_interior.visible = true
|
||||
bubble_label.visible = true
|
||||
e_ui_button.visible = true
|
||||
next_label.visible = true
|
||||
choices_container.visible = true
|
||||
|
||||
bubble_label.text = choice
|
||||
|
||||
accept_label.text = accept_option
|
||||
reject_label.text = reject_option
|
||||
|
||||
is_accept_selected = true
|
||||
update_ui()
|
||||
|
||||
wait_a_sec.start()
|
||||
|
||||
func stop_choice():
|
||||
is_choice_happening = false
|
||||
|
||||
ui_flicker_timer.stop()
|
||||
|
||||
bubbles.visible = false
|
||||
bubbles_back.visible = false
|
||||
bubbles_interior.visible = false
|
||||
bubble_label.visible = false
|
||||
e_ui_button.visible = false
|
||||
next_label.visible = false
|
||||
choices_container.visible = false
|
||||
|
||||
if is_accept_selected:
|
||||
accepted.emit()
|
||||
else:
|
||||
rejected.emit()
|
||||
|
||||
func _on_wait_a_sec_timeout() -> void:
|
||||
is_choice_happening = true
|
||||
ui_flicker_timer.start()
|
1
dialogues/choice.gd.uid
Normal file
1
dialogues/choice.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://b65dvbdgyplnm
|
17
dialogues/choice.tscn
Normal file
17
dialogues/choice.tscn
Normal file
@ -0,0 +1,17 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c2axd06m2g28y"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b65dvbdgyplnm" path="res://dialogues/choice.gd" id="1_ht8c8"]
|
||||
|
||||
[node name="Choice" type="Node"]
|
||||
script = ExtResource("1_ht8c8")
|
||||
|
||||
[node name="UIFlickerTimer" type="Timer" parent="."]
|
||||
wait_time = 0.5
|
||||
ignore_time_scale = true
|
||||
|
||||
[node name="WaitASec" type="Timer" parent="."]
|
||||
wait_time = 0.5
|
||||
one_shot = true
|
||||
|
||||
[connection signal="timeout" from="UIFlickerTimer" to="." method="toggle_ui"]
|
||||
[connection signal="timeout" from="WaitASec" to="." method="_on_wait_a_sec_timeout"]
|
@ -13,7 +13,6 @@ extends Node
|
||||
@onready var e_ui_button: TextureRect = %E
|
||||
@onready var next_label: Label = %NextLabel
|
||||
|
||||
|
||||
@export_multiline var dialogue = ""
|
||||
@export var start_with_left = false
|
||||
@export var left_picture: Texture2D
|
||||
@ -29,9 +28,6 @@ var is_left_speaking = false
|
||||
|
||||
func _ready() -> void:
|
||||
is_left_speaking = start_with_left
|
||||
left_speaker.texture = left_picture
|
||||
right_speaker.texture = right_picture
|
||||
display_profiles()
|
||||
|
||||
e_ui_button.visible = false
|
||||
next_label.visible = false
|
||||
@ -41,6 +37,9 @@ func _ready() -> void:
|
||||
dialogue_steps.append(step.strip_edges())
|
||||
|
||||
func display_profiles():
|
||||
left_speaker.texture = left_picture
|
||||
right_speaker.texture = right_picture
|
||||
|
||||
left_speaker.visible = is_left_speaking
|
||||
right_speaker.visible = not is_left_speaking
|
||||
|
||||
@ -70,15 +69,17 @@ func load_next_dialogue():
|
||||
|
||||
func on_dialogue_started():
|
||||
bubbles.visible = true
|
||||
bubble_label.visible = true
|
||||
bubbles_back.visible = true
|
||||
bubbles_interior.visible = true
|
||||
|
||||
display_profiles()
|
||||
is_dialogue_ongoing = true
|
||||
time_between_letters.start()
|
||||
load_next_dialogue()
|
||||
|
||||
func end_dialogue():
|
||||
bubbles.visible = false
|
||||
bubble_label.visible = false
|
||||
bubbles_back.visible = false
|
||||
bubbles_interior.visible = false
|
||||
e_ui_button.visible = false
|
||||
|
43
ennemy/skeleton.gd
Normal file
43
ennemy/skeleton.gd
Normal file
@ -0,0 +1,43 @@
|
||||
extends AnimatedSprite2D
|
||||
|
||||
@onready var hitbox_2: Area2D = $Hitbox2
|
||||
@onready var hitbox: Area2D = $Hitbox
|
||||
@onready var wait_to_die: Timer = $WaitToDie
|
||||
@onready var hitting: Timer = $Hitting
|
||||
@onready var wait_to_hit: Timer = $WaitToHit
|
||||
|
||||
var is_dying = false
|
||||
|
||||
func start_dancing():
|
||||
play("dance")
|
||||
|
||||
func hit():
|
||||
if is_dying:
|
||||
return
|
||||
|
||||
hitbox.monitorable = true
|
||||
hitbox.monitoring = true
|
||||
play("hit")
|
||||
hitting.start()
|
||||
|
||||
func stop_hitting():
|
||||
if is_dying:
|
||||
return
|
||||
|
||||
hitbox.monitorable = false
|
||||
hitbox.monitoring = false
|
||||
|
||||
play("idle")
|
||||
wait_to_hit.start()
|
||||
|
||||
func _on_damageable_die() -> void:
|
||||
hitbox.set_deferred("monitorable", false)
|
||||
hitbox.set_deferred("monitoring", false)
|
||||
hitbox_2.set_deferred("monitorable", false)
|
||||
hitbox_2.set_deferred("monitoring", false)
|
||||
is_dying = true
|
||||
play("die")
|
||||
wait_to_die.start()
|
||||
|
||||
func _on_wait_to_die_timeout() -> void:
|
||||
queue_free()
|
1
ennemy/skeleton.gd.uid
Normal file
1
ennemy/skeleton.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://b0ewbthpfsy7t
|
477
ennemy/skeleton.tscn
Normal file
477
ennemy/skeleton.tscn
Normal file
@ -0,0 +1,477 @@
|
||||
[gd_scene load_steps=67 format=3 uid="uid://b2fyaj2fmrug7"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://din26pdtyka1n" path="res://ennemy/Skeleton/Sprite Sheets/Skeleton Hit.png" id="1_yndcr"]
|
||||
[ext_resource type="Texture2D" uid="uid://bpxn5oa3r3121" path="res://ennemy/Skeleton/Sprite Sheets/Skeleton Dead.png" id="2_sx7nw"]
|
||||
[ext_resource type="Texture2D" uid="uid://kd8wotp135ud" path="res://ennemy/Skeleton/Sprite Sheets/Skeleton Attack.png" id="3_whaqf"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4hj35wb0pm2b" path="res://ennemy/Skeleton/Sprite Sheets/Skeleton Idle.png" id="4_g7r65"]
|
||||
[ext_resource type="Script" uid="uid://bhbn4pngdfk7w" path="res://damageable/damageable.gd" id="5_oqxir"]
|
||||
[ext_resource type="Script" uid="uid://b0ewbthpfsy7t" path="res://ennemy/skeleton.gd" id="5_sx7nw"]
|
||||
[ext_resource type="PackedScene" uid="uid://7sqwi3lygb1u" path="res://damageable/hitbox.tscn" id="6_kopbd"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yvsr8"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(0, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tko6h"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(60, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_am8a1"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(90, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8dc3g"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(120, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_htgcl"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(0, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_smeu8"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(33, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_f3y11"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(66, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cpm2s"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(99, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_u81y6"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(132, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rt5wr"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(165, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mnw77"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(198, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vjgyh"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(231, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_d5iia"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(264, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_asu84"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(297, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qwt6e"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(330, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_off2o"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(363, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tttfs"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(396, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1iygd"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(429, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g5xqc"]
|
||||
atlas = ExtResource("2_sx7nw")
|
||||
region = Rect2(462, 0, 33, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s4o1y"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(0, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7mmqq"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(30, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3exxq"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(60, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5aa3q"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(90, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bmvma"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(120, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_shlp4"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(150, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2n44k"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(180, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_86lig"]
|
||||
atlas = ExtResource("1_yndcr")
|
||||
region = Rect2(210, 0, 30, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ldnlw"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(0, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qe8ju"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(43, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bnk2o"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(86, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_oosfy"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(129, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nf4f2"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(172, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xkvoa"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(215, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t5kpo"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(258, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pw0td"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(301, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_37eu1"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(344, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0wkqm"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(387, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ve5sr"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(430, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5s44m"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(473, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ibca3"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(516, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g3y5b"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(559, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1slqb"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(602, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uo83y"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(645, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_y0aao"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(688, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wm5rm"]
|
||||
atlas = ExtResource("3_whaqf")
|
||||
region = Rect2(731, 0, 43, 37)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vieuh"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(0, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yjja3"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(24, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_l0gw7"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(48, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_inymm"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(72, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jcxqu"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(96, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0arob"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(120, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dij0e"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(144, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_k1udn"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(168, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wat4s"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(192, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ywjan"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(216, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_m74q3"]
|
||||
atlas = ExtResource("4_g7r65")
|
||||
region = Rect2(240, 0, 24, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_getpj"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yvsr8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tko6h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_am8a1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8dc3g")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"dance",
|
||||
"speed": 15.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_htgcl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_smeu8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_f3y11")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cpm2s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_u81y6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rt5wr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mnw77")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vjgyh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_d5iia")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_asu84")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qwt6e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_off2o")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tttfs")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1iygd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g5xqc")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"die",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s4o1y")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7mmqq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3exxq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5aa3q")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bmvma")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_shlp4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2n44k")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_86lig")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"got_hit",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ldnlw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qe8ju")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bnk2o")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_oosfy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nf4f2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xkvoa")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_t5kpo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pw0td")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_37eu1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0wkqm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ve5sr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5s44m")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ibca3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g3y5b")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1slqb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_uo83y")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_y0aao")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wm5rm")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"hit",
|
||||
"speed": 17.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vieuh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yjja3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_l0gw7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_inymm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jcxqu")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0arob")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dij0e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_k1udn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wat4s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ywjan")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_m74q3")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_qsp4k"]
|
||||
radius = 6.08276
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kq58d"]
|
||||
size = Vector2(6, 21)
|
||||
|
||||
[node name="Skeleton" type="AnimatedSprite2D"]
|
||||
sprite_frames = SubResource("SpriteFrames_getpj")
|
||||
animation = &"die"
|
||||
autoplay = "idle"
|
||||
flip_h = true
|
||||
script = ExtResource("5_sx7nw")
|
||||
|
||||
[node name="Hitbox" parent="." instance=ExtResource("6_kopbd")]
|
||||
hitback_direction = Vector2(-1, -1)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
position = Vector2(-8, 8)
|
||||
shape = SubResource("CircleShape2D_qsp4k")
|
||||
|
||||
[node name="Hitbox2" parent="." instance=ExtResource("6_kopbd")]
|
||||
hitback_direction = Vector2(-1, -1)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox2"]
|
||||
position = Vector2(4, 5.5)
|
||||
shape = SubResource("RectangleShape2D_kq58d")
|
||||
|
||||
[node name="Damageable" type="Node" parent="Hitbox2"]
|
||||
script = ExtResource("5_oqxir")
|
||||
health = 1
|
||||
hitback_velocity = 0.0
|
||||
metadata/_custom_type_script = "uid://bhbn4pngdfk7w"
|
||||
|
||||
[node name="WaitToDie" type="Timer" parent="."]
|
||||
wait_time = 3.0
|
||||
one_shot = true
|
||||
|
||||
[node name="Hitting" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[node name="WaitToHit" type="Timer" parent="."]
|
||||
wait_time = 3.0
|
||||
|
||||
[connection signal="die" from="Hitbox2/Damageable" to="." method="_on_damageable_die"]
|
||||
[connection signal="timeout" from="WaitToDie" to="." method="_on_wait_to_die_timeout"]
|
||||
[connection signal="timeout" from="Hitting" to="." method="stop_hitting"]
|
||||
[connection signal="timeout" from="WaitToHit" to="." method="hit"]
|
33
main.gd
33
main.gd
@ -8,6 +8,7 @@ var active_camera: SuperCamera
|
||||
@onready var opening_fade_to_black: ColorRect = $OpeningFadeToBlack
|
||||
|
||||
@onready var opening_cutscene: AnimationPlayer = $OpeningCutscene
|
||||
@onready var dance_cutscene: AnimationPlayer = $DanceCutscene
|
||||
|
||||
@onready var background_far: TileMapLayer = $BackgroundFar
|
||||
@onready var background_middle: TileMapLayer = $BackgroundMiddle
|
||||
@ -15,10 +16,13 @@ var active_camera: SuperCamera
|
||||
@onready var foreground_far: TileMapLayer = $ForegroundFar
|
||||
|
||||
@export_group("Parallax")
|
||||
@export var parallax_far = 0.1
|
||||
@export var parallax_middle = 0.3
|
||||
@export var parallax_close = 0.5
|
||||
@export var foreground = 0.8
|
||||
@export var parallax_far = 0.5
|
||||
@export var parallax_middle = 0.4
|
||||
@export var parallax_close = 0.3
|
||||
@export var foreground = 0.2
|
||||
|
||||
@onready var choices_container: MarginContainer = %ChoicesContainer
|
||||
@onready var red_hood_cutscene: AnimationPlayer = $RedHoodCutscene
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
@ -39,9 +43,30 @@ func _process(delta: float) -> void:
|
||||
next_dialogue.global_position.x = active_camera.global_position.x + 133.0
|
||||
bubbles_back.global_position.x = active_camera.global_position.x
|
||||
bubbles_interior.global_position.x = active_camera.global_position.x
|
||||
choices_container.global_position.x = active_camera.global_position.x - 100
|
||||
|
||||
background_far.global_position.x = active_camera.global_position.x * parallax_far
|
||||
background_middle.global_position.x = active_camera.global_position.x * parallax_middle
|
||||
background_close.global_position.x = active_camera.global_position.x * parallax_close
|
||||
foreground_far.global_position.x = active_camera.global_position.x * foreground
|
||||
|
||||
|
||||
func _on_start_dancing() -> void:
|
||||
dance_cutscene.play("dance")
|
||||
|
||||
func restart_at_first_scene():
|
||||
get_tree().change_scene_to_file("res://main.tscn")
|
||||
|
||||
func to_main_menu():
|
||||
pass
|
||||
|
||||
func quit_game():
|
||||
pass
|
||||
|
||||
|
||||
func _on_trigger_second_npc_dialogue_body_entered(body: Node2D) -> void:
|
||||
red_hood_cutscene.play("cutscene")
|
||||
|
||||
|
||||
func _on_red_hood_sword_dialogue_dialogue_ended() -> void:
|
||||
red_hood_cutscene.play("flee")
|
||||
|
@ -1,59 +1,181 @@
|
||||
[gd_resource type="SpriteFrames" load_steps=13 format=3 uid="uid://i6035vm5ited"]
|
||||
[gd_resource type="SpriteFrames" load_steps=34 format=3 uid="uid://i6035vm5ited"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dbruj2bdtjfmd" path="res://player/assets/char_blue.png" id="1_pbrcr"]
|
||||
[ext_resource type="Texture2D" uid="uid://cjruk5xlt3tyn" path="res://ennemy/MechantVol.png" id="2_pxh46"]
|
||||
[ext_resource type="Texture2D" uid="uid://dv7jhtoptk12r" path="res://player/assets/Danse.png" id="1_4wqev"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcyawv770lkhp" path="res://player/assets/Défense.png" id="2_b2lu2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwn548x0n4bpd" path="res://player/assets/Outch.png" id="2_t0xqw"]
|
||||
[ext_resource type="Texture2D" uid="uid://dpy6espwka35l" path="res://player/assets/RunArme.png" id="4_3w5np"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pxh46"]
|
||||
atlas = ExtResource("1_pbrcr")
|
||||
region = Rect2(112, 280, 56, 56)
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tqiix"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_b2lu2"]
|
||||
atlas = ExtResource("1_pbrcr")
|
||||
region = Rect2(168, 280, 56, 56)
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e7oew"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3w5np"]
|
||||
atlas = ExtResource("1_pbrcr")
|
||||
region = Rect2(224, 280, 56, 56)
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_c35mf"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(64, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4wqev"]
|
||||
atlas = ExtResource("2_pxh46")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_65viv"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(96, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t0xqw"]
|
||||
atlas = ExtResource("2_pxh46")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_x7c3f"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(128, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bjvpn"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(160, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s7qer"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(192, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ge24q"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(224, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pnw6m"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(256, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1so5t"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(288, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_55jnj"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(320, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dx5ib"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(352, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_a2xo5"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(384, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_art4l"]
|
||||
atlas = ExtResource("1_4wqev")
|
||||
region = Rect2(416, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hg6s5"]
|
||||
atlas = ExtResource("2_t0xqw")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8t03j"]
|
||||
atlas = ExtResource("2_t0xqw")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3w5np"]
|
||||
atlas = ExtResource("2_b2lu2")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4wqev"]
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_t0xqw"]
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7en50"]
|
||||
atlas = ExtResource("2_pxh46")
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(64, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dcl6h"]
|
||||
atlas = ExtResource("2_pxh46")
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(96, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pbrcr"]
|
||||
atlas = ExtResource("1_pbrcr")
|
||||
region = Rect2(392, 168, 56, 56)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yp8g1"]
|
||||
atlas = ExtResource("2_pxh46")
|
||||
region = Rect2(64, 0, 32, 32)
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(128, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_er5ay"]
|
||||
atlas = ExtResource("2_pxh46")
|
||||
region = Rect2(96, 0, 32, 32)
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(160, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_x3djp"]
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(192, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ko4fi"]
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(224, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i5cp7"]
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(256, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0mkg8"]
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(288, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5lqr2"]
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(320, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nq0ey"]
|
||||
atlas = ExtResource("4_3w5np")
|
||||
region = Rect2(352, 0, 32, 32)
|
||||
|
||||
[resource]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pxh46")
|
||||
"texture": SubResource("AtlasTexture_tqiix")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_b2lu2")
|
||||
"texture": SubResource("AtlasTexture_e7oew")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3w5np")
|
||||
"texture": SubResource("AtlasTexture_c35mf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_65viv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_x7c3f")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bjvpn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s7qer")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ge24q")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pnw6m")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1so5t")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_55jnj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dx5ib")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_a2xo5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_art4l")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"dance",
|
||||
"speed": 6.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hg6s5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8t03j")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"got_hit",
|
||||
@ -61,21 +183,7 @@ animations = [{
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4wqev")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_t0xqw")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"hit",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7en50")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dcl6h")
|
||||
"texture": SubResource("AtlasTexture_3w5np")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
@ -83,20 +191,42 @@ animations = [{
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pbrcr")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"jump",
|
||||
"speed": 5.0
|
||||
"texture": SubResource("AtlasTexture_4wqev")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_t0xqw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7en50")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dcl6h")
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yp8g1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_er5ay")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_x3djp")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ko4fi")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_i5cp7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0mkg8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5lqr2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nq0ey")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 2.0
|
||||
"speed": 14.0
|
||||
}]
|
||||
|
BIN
player/assets/Danse.png
(Stored with Git LFS)
Normal file
BIN
player/assets/Danse.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
player/assets/Danse.png.import
Normal file
34
player/assets/Danse.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dv7jhtoptk12r"
|
||||
path="res://.godot/imported/Danse.png-360f9d75971dc28cdb901fbcce9ab403.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/assets/Danse.png"
|
||||
dest_files=["res://.godot/imported/Danse.png-360f9d75971dc28cdb901fbcce9ab403.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
player/assets/RunArme.png
(Stored with Git LFS)
Normal file
BIN
player/assets/RunArme.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
player/assets/RunArme.png.import
Normal file
34
player/assets/RunArme.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dpy6espwka35l"
|
||||
path="res://.godot/imported/RunArme.png-0ddf4bccde5c36d31728f6dfcc6c39c0.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/assets/RunArme.png"
|
||||
dest_files=["res://.godot/imported/RunArme.png-0ddf4bccde5c36d31728f6dfcc6c39c0.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
player/assets/RunArmeEpee.png
(Stored with Git LFS)
Normal file
BIN
player/assets/RunArmeEpee.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
player/assets/RunArmeEpee.png.import
Normal file
34
player/assets/RunArmeEpee.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dxsbbcagqkiid"
|
||||
path="res://.godot/imported/RunArmeEpee.png-53c014bb63270f9d7b7a1a264ad4311e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/assets/RunArmeEpee.png"
|
||||
dest_files=["res://.godot/imported/RunArmeEpee.png-53c014bb63270f9d7b7a1a264ad4311e.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
7
player/blue_profile.tres
Normal file
7
player/blue_profile.tres
Normal file
@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://b6ivps1v5bwc7"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dbruj2bdtjfmd" path="res://player/assets/char_blue.png" id="1_jjpkp"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_jjpkp")
|
||||
region = Rect2(22, 24, 11, 12)
|
@ -11,17 +11,25 @@ var jump_velocity = 400.0
|
||||
@export_range(0, 10, 0.1, "or_greater")
|
||||
var gravity_modifier = 1
|
||||
|
||||
@onready var knight: AnimatedSprite2D = $Knight
|
||||
@onready var base: AnimatedSprite2D = $Base
|
||||
@onready var hitting: Timer = $Hitting
|
||||
@onready var hitbox: Area2D = $Hitbox
|
||||
|
||||
var animated_sprites = []
|
||||
@onready var sword: AnimatedSprite2D = $Sword
|
||||
@onready var damageable: Damageable = $Damageable
|
||||
@onready var shield: AnimatedSprite2D = $Shield
|
||||
@onready var base: AnimatedSprite2D = $Base
|
||||
var current_sprite: AnimatedSprite2D
|
||||
|
||||
var is_in_cutscene = false # back to true on build
|
||||
var current_animation = "idle"
|
||||
|
||||
var is_hitting = false
|
||||
var has_shield = false
|
||||
var has_sword = false
|
||||
var has_armor = false
|
||||
|
||||
func play_anim():
|
||||
for sprite: AnimatedSprite2D in animated_sprites:
|
||||
sprite.play(current_animation)
|
||||
current_sprite.play(current_animation)
|
||||
|
||||
func play_anim_run():
|
||||
current_animation = "run"
|
||||
@ -32,45 +40,49 @@ func play_anim_idle():
|
||||
func play_anim_jump():
|
||||
current_animation = "jump"
|
||||
|
||||
func play_anim_dance():
|
||||
current_animation = "dance"
|
||||
|
||||
func set_in_cutscene():
|
||||
is_in_cutscene = true
|
||||
play_anim_idle()
|
||||
|
||||
func set_in_play():
|
||||
is_in_cutscene = false
|
||||
|
||||
func look_left():
|
||||
for sprite in animated_sprites:
|
||||
sprite.flip_h = true
|
||||
current_sprite.flip_h = true
|
||||
|
||||
func look_right():
|
||||
for sprite in animated_sprites:
|
||||
sprite.flip_h = false
|
||||
current_sprite.flip_h = false
|
||||
|
||||
func _ready() -> void:
|
||||
animated_sprites = [
|
||||
knight,
|
||||
base
|
||||
]
|
||||
current_sprite = base
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
play_anim()
|
||||
if is_in_cutscene:
|
||||
play_anim_idle()
|
||||
velocity.x = move_toward(velocity.x, 0, speed)
|
||||
move_and_slide()
|
||||
return
|
||||
|
||||
if is_hitting:
|
||||
current_animation = "hit"
|
||||
velocity.x = move_toward(velocity.x, 0, speed)
|
||||
move_and_slide()
|
||||
return
|
||||
|
||||
if not is_on_floor():
|
||||
velocity += get_gravity() * delta * gravity_modifier
|
||||
|
||||
var direction := Input.get_axis("move_left", "move_right")
|
||||
|
||||
damageable.set_active(has_shield and direction != 0)
|
||||
if direction > 0 and is_on_floor():
|
||||
look_right()
|
||||
if direction < 0 and is_on_floor():
|
||||
look_left()
|
||||
|
||||
|
||||
if not is_on_floor():
|
||||
current_animation = "got_hit"
|
||||
else:
|
||||
@ -87,10 +99,43 @@ func _physics_process(delta: float) -> void:
|
||||
else:
|
||||
velocity.x = move_toward(velocity.x, 0, speed)
|
||||
|
||||
if Input.is_action_just_pressed("hit") and has_sword:
|
||||
hit()
|
||||
|
||||
move_and_slide()
|
||||
|
||||
func hit():
|
||||
is_hitting = true
|
||||
hitting.start()
|
||||
hitbox.monitorable = true
|
||||
hitbox.monitoring = true
|
||||
|
||||
func _on_hitting_timeout() -> void:
|
||||
is_hitting = false
|
||||
hitbox.monitorable = false
|
||||
hitbox.monitoring = false
|
||||
|
||||
func _on_dialogue_manager_dialogue_ended() -> void:
|
||||
set_in_play()
|
||||
|
||||
func _on_trigger_dialogue_body_entered(body: Node2D) -> void:
|
||||
set_in_cutscene()
|
||||
|
||||
func _on_start_dancing() -> void:
|
||||
play_anim_dance()
|
||||
|
||||
func _on_npc_shield_dialogue_dialogue_ended() -> void:
|
||||
set_in_play()
|
||||
current_sprite.visible = false
|
||||
current_sprite = shield
|
||||
current_sprite.play("idle")
|
||||
current_sprite.visible = true
|
||||
has_shield = true
|
||||
|
||||
func _on_red_hood_sword_dialogue_dialogue_ended() -> void:
|
||||
set_in_play()
|
||||
current_sprite.visible = false
|
||||
current_sprite = sword
|
||||
current_sprite.play("idle")
|
||||
current_sprite.visible = true
|
||||
has_sword = true
|
||||
|
@ -1,13 +1,72 @@
|
||||
[gd_scene load_steps=30 format=3 uid="uid://yvp44oauis4n"]
|
||||
[gd_scene load_steps=65 format=3 uid="uid://yvp44oauis4n"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c1fqj3lba7wik" path="res://player/player.gd" id="1_yw30f"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxsbbcagqkiid" path="res://player/assets/RunArmeEpee.png" id="2_hg6s5"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://i6035vm5ited" path="res://player/armored_spritesheet.tres" id="2_qjkh3"]
|
||||
[ext_resource type="Texture2D" uid="uid://dv7jhtoptk12r" path="res://player/assets/Danse.png" id="3_hg6s5"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwn548x0n4bpd" path="res://player/assets/Outch.png" id="3_rgyib"]
|
||||
[ext_resource type="Texture2D" uid="uid://d2rfo6ilwusak" path="res://player/assets/Stab .png" id="4_8t03j"]
|
||||
[ext_resource type="Texture2D" uid="uid://dr5ypp4q8n2xm" path="res://player/assets/DebutIdle.png" id="4_rgyib"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsxvqsh3umw01" path="res://player/assets/RunCycle.png" id="5_boad6"]
|
||||
[ext_resource type="PackedScene" uid="uid://djwoetcyvvofc" path="res://damageable/damageable.tscn" id="5_g6k8r"]
|
||||
[ext_resource type="Shape2D" uid="uid://6rhdwj5jxbxn" path="res://player/player_collision.tres" id="5_qjkh3"]
|
||||
[ext_resource type="Texture2D" uid="uid://dw6tn0grt2ajc" path="res://player/assets/WalkCycle.png" id="5_rgyib"]
|
||||
[ext_resource type="PackedScene" uid="uid://7sqwi3lygb1u" path="res://damageable/hitbox.tscn" id="11_2ieo8"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tqiix"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e7oew"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_c35mf"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(64, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_65viv"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(96, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_x7c3f"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(128, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bjvpn"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(160, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_s7qer"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(192, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ge24q"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(224, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pnw6m"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(256, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1so5t"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(288, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_55jnj"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(320, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dx5ib"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(352, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_a2xo5"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(384, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_art4l"]
|
||||
atlas = ExtResource("3_hg6s5")
|
||||
region = Rect2(416, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hg6s5"]
|
||||
atlas = ExtResource("3_rgyib")
|
||||
@ -17,6 +76,222 @@ region = Rect2(0, 0, 32, 32)
|
||||
atlas = ExtResource("3_rgyib")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jfgyi"]
|
||||
atlas = ExtResource("4_8t03j")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_237xx"]
|
||||
atlas = ExtResource("4_8t03j")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wpyo2"]
|
||||
atlas = ExtResource("4_8t03j")
|
||||
region = Rect2(64, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7crtr"]
|
||||
atlas = ExtResource("4_8t03j")
|
||||
region = Rect2(96, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vgvch"]
|
||||
atlas = ExtResource("4_8t03j")
|
||||
region = Rect2(128, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_a1u5o"]
|
||||
atlas = ExtResource("4_8t03j")
|
||||
region = Rect2(160, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2ieo8"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(96, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ebec5"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(288, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yllr7"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kb6p2"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fjxoa"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(64, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gswnw"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(96, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xcnuv"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(128, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_j55il"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(160, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hjies"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(192, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mmwog"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(224, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8pxes"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(256, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fmu53"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(288, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w7j2h"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(320, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n0b8q"]
|
||||
atlas = ExtResource("2_hg6s5")
|
||||
region = Rect2(352, 0, 32, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_jfgyi"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tqiix")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e7oew")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_c35mf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_65viv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_x7c3f")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bjvpn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s7qer")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ge24q")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pnw6m")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1so5t")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_55jnj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dx5ib")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_a2xo5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_art4l")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"dance",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hg6s5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8t03j")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"got_hit",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jfgyi")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_237xx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wpyo2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7crtr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vgvch")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_a1u5o")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"hit",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2ieo8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ebec5")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 2.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yllr7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kb6p2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fjxoa")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gswnw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xcnuv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_j55il")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hjies")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mmwog")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8pxes")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fmu53")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w7j2h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n0b8q")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 14.0
|
||||
}]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wodsf"]
|
||||
atlas = ExtResource("4_rgyib")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
@ -25,22 +300,6 @@ region = Rect2(0, 0, 32, 32)
|
||||
atlas = ExtResource("4_rgyib")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2ieo8"]
|
||||
atlas = ExtResource("5_rgyib")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ebec5"]
|
||||
atlas = ExtResource("5_rgyib")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yllr7"]
|
||||
atlas = ExtResource("5_rgyib")
|
||||
region = Rect2(64, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kb6p2"]
|
||||
atlas = ExtResource("5_rgyib")
|
||||
region = Rect2(96, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g4c7l"]
|
||||
atlas = ExtResource("5_boad6")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
@ -93,6 +352,53 @@ region = Rect2(352, 0, 32, 32)
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tqiix")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e7oew")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_c35mf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_65viv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_x7c3f")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bjvpn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_s7qer")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ge24q")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pnw6m")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1so5t")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_55jnj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dx5ib")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_a2xo5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_art4l")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"dance",
|
||||
"speed": 6.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_hg6s5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
@ -115,23 +421,6 @@ animations = [{
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2ieo8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ebec5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yllr7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kb6p2")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"jump",
|
||||
"speed": 4.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g4c7l")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
@ -172,6 +461,8 @@ animations = [{
|
||||
"speed": 14.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ebec5"]
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
collision_layer = 3
|
||||
script = ExtResource("1_yw30f")
|
||||
@ -181,11 +472,20 @@ acceleration = 0.177
|
||||
[node name="AudioListener2D" type="AudioListener2D" parent="."]
|
||||
current = true
|
||||
|
||||
[node name="Knight" type="AnimatedSprite2D" parent="."]
|
||||
[node name="Sword" type="AnimatedSprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(1, -28)
|
||||
position = Vector2(0, -16)
|
||||
sprite_frames = SubResource("SpriteFrames_jfgyi")
|
||||
animation = &"hit"
|
||||
autoplay = "idle"
|
||||
frame = 5
|
||||
frame_progress = 1.0
|
||||
|
||||
[node name="Shield" type="AnimatedSprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(0, -16)
|
||||
sprite_frames = ExtResource("2_qjkh3")
|
||||
animation = &"jump"
|
||||
animation = &"dance"
|
||||
autoplay = "idle"
|
||||
|
||||
[node name="Base" type="AnimatedSprite2D" parent="."]
|
||||
@ -193,7 +493,6 @@ position = Vector2(0, -16)
|
||||
sprite_frames = SubResource("SpriteFrames_mmwog")
|
||||
animation = &"got_hit"
|
||||
autoplay = "idle"
|
||||
frame_progress = 0.993718
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
@ -202,3 +501,18 @@ shape = ExtResource("5_qjkh3")
|
||||
|
||||
[node name="Damageable" parent="." instance=ExtResource("5_g6k8r")]
|
||||
hitback_velocity = 400.0
|
||||
|
||||
[node name="Hitting" type="Timer" parent="."]
|
||||
wait_time = 0.5
|
||||
one_shot = true
|
||||
|
||||
[node name="Hitbox" parent="." instance=ExtResource("11_2ieo8")]
|
||||
monitoring = false
|
||||
monitorable = false
|
||||
damage = 10
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
position = Vector2(16, -10)
|
||||
shape = SubResource("CircleShape2D_ebec5")
|
||||
|
||||
[connection signal="timeout" from="Hitting" to="." method="_on_hitting_timeout"]
|
||||
|
7
player/player_left_profile.tres
Normal file
7
player/player_left_profile.tres
Normal file
@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://d4lwniwokx7px"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dsxvqsh3umw01" path="res://player/assets/RunCycle.png" id="1_1apyp"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_1apyp")
|
||||
region = Rect2(14, 9, 6, 6)
|
7
player/red_hood_profile.tres
Normal file
7
player/red_hood_profile.tres
Normal file
@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://oocxl803i4aa"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d3t1fn35skpip" path="res://player/assets/idle sheet-Sheet.png" id="1_0t2s6"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_0t2s6")
|
||||
region = Rect2(663, 28, 14, 13)
|
BIN
world_assets/Armoire.png
(Stored with Git LFS)
Normal file
BIN
world_assets/Armoire.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
world_assets/Armoire.png.import
Normal file
34
world_assets/Armoire.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://rbj0av8dvm2e"
|
||||
path="res://.godot/imported/Armoire.png-62a56be0dd5d8aab64da1c1f213a9e8a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://world_assets/Armoire.png"
|
||||
dest_files=["res://.godot/imported/Armoire.png-62a56be0dd5d8aab64da1c1f213a9e8a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user