Personajes seleccionables
This commit is contained in:
1 parent
66f4d8b33b
commit
97335c9d21
42 files changed
+5282
-3106
No files matched your search
+10
-5
@@ -8,6 +8,8 @@ var _shake_remaining: float = 0.0
|
||||
var _shake_duration: float = 0.16
|
||||
var _shake_amplitude: float = 0.0
|
||||
var _clock: float = 0.0
|
||||
var _shake_frequency: float = 83.0
|
||||
var _solo_color: Color = Color(0.66, 0.85, 1.0)
|
||||
var _solo_remaining: float = 0.0
|
||||
var _flash_color := Color(1.0, 0.82, 0.50)
|
||||
var _overlay: Control
|
||||
@@ -31,7 +33,9 @@ func _ready() -> void:
|
||||
|
||||
## Acumula la sacudida mas intensa sin reiniciar a menor fuerza un impacto existente.
|
||||
func impact(strength: float = 1.5, duration: float = 0.16,
|
||||
color: Color = Color(1.0, 0.82, 0.50)) -> void:
|
||||
color: Color = Color(1.0, 0.82, 0.50), frequency: float = 83.0) -> void:
|
||||
if strength >= _shake_amplitude or _shake_remaining <= 0.0:
|
||||
_shake_frequency = maxf(frequency, 1.0)
|
||||
_shake_amplitude = maxf(_shake_amplitude, strength)
|
||||
_shake_remaining = maxf(_shake_remaining, duration)
|
||||
_shake_duration = maxf(_shake_remaining, 0.01)
|
||||
@@ -39,8 +43,9 @@ func impact(strength: float = 1.5, duration: float = 0.16,
|
||||
|
||||
|
||||
## Activa la superposicion del especial durante el tiempo solicitado.
|
||||
func start_solo(duration: float) -> void:
|
||||
func start_solo(duration: float, color: Color = Color(0.66, 0.85, 1.0)) -> void:
|
||||
_solo_remaining = duration
|
||||
_solo_color = color
|
||||
|
||||
|
||||
## Amortigua las sacudidas alrededor del desplazamiento inicial de la camara.
|
||||
@@ -50,7 +55,7 @@ func _process(delta: float) -> void:
|
||||
_solo_remaining = maxf(0.0, _solo_remaining - delta)
|
||||
var envelope: float = _shake_remaining / _shake_duration
|
||||
var amplitude: float = minf(_shake_amplitude, 3.0) * envelope * envelope * feedback_strength
|
||||
offset = _base_offset + Vector2(sin(_clock * 83.0), cos(_clock * 67.0)) * amplitude
|
||||
offset = _base_offset + Vector2(sin(_clock * _shake_frequency), cos(_clock * _shake_frequency * 0.807)) * amplitude
|
||||
if _shake_remaining == 0.0:
|
||||
_shake_amplitude = 0.0
|
||||
_overlay.queue_redraw()
|
||||
@@ -73,7 +78,7 @@ func _draw_feedback() -> void:
|
||||
if _solo_remaining <= 0.0:
|
||||
return
|
||||
var solo_alpha: float = minf(_solo_remaining / 0.25, 1.0) * feedback_strength
|
||||
_overlay.draw_rect(Rect2(Vector2.ZERO, size), Color(0.18, 0.08, 0.32, 0.07 * solo_alpha))
|
||||
_overlay.draw_rect(Rect2(Vector2.ZERO, size), Color(_solo_color.r * 0.3, _solo_color.g * 0.2, _solo_color.b * 0.35, 0.07 * solo_alpha))
|
||||
for side: float in [-1.0, 1.0]:
|
||||
var edge_x: float = 0.0 if side > 0.0 else size.x
|
||||
for index: int in range(7):
|
||||
@@ -81,4 +86,4 @@ func _draw_feedback() -> void:
|
||||
var length: float = (32.0 + float(index % 3) * 19.0) * (0.7 + pulse)
|
||||
var start := Vector2(edge_x, y)
|
||||
var end := Vector2(edge_x + side * length, lerpf(y, size.y * 0.5, 0.1))
|
||||
_overlay.draw_line(start, end, Color(0.66, 0.85, 1.0, 0.24 * solo_alpha), 3.0)
|
||||
_overlay.draw_line(start, end, Color(_solo_color.r, _solo_color.g, _solo_color.b, 0.24 * solo_alpha), 3.0)
|
||||
@@ -10,10 +10,11 @@ class_name CharacterData
|
||||
@export_category("Identity")
|
||||
@export var id: StringName = &"character"
|
||||
@export var display_name: String = "Character"
|
||||
## Etiqueta para el selector; no se usa para decidir el comportamiento.
|
||||
@export var role_name: String = ""
|
||||
|
||||
@export_category("Visuals")
|
||||
## Los cuatro recursos apuntan por ahora a las mismas animaciones de Diego.
|
||||
## Más adelante cada integrante podrá tener su propio SpriteFrames sin tocar Player.
|
||||
## Cada integrante aporta sus fotogramas, sin duplicar movimiento ni combate.
|
||||
@export var sprite_frames: SpriteFrames
|
||||
|
||||
@export_category("Stats")
|
||||
@@ -28,3 +29,19 @@ class_name CharacterData
|
||||
## Campo heredado sin uso actual en Player; se conserva por compatibilidad.
|
||||
## El golpe aereo usa Ground Pound (dano por altura y limites), no este valor.
|
||||
@export_range(0, 100, 1) var air_attack_damage: int = 10
|
||||
|
||||
|
||||
@export_category("Ground Pound Presentation")
|
||||
## Solo el dibujo cambia por integrante. Radio, forma, dano y tiempos viven en Player.
|
||||
@export_enum("ground_pound", "electric_pound", "vocal_dome", "bass_cracks") var ground_pound_effect: String = "ground_pound"
|
||||
|
||||
@export_category("Special Presentation")
|
||||
## Solo cambia la presentacion: los cuatro usan el mismo presupuesto de dano por pulsos.
|
||||
@export_enum("solo", "vocal_wave", "drum_cymbals", "bass_pulse") var special_effect: String = "solo"
|
||||
@export var special_label: String = "GUITAR SOLO!"
|
||||
@export var special_color: Color = Color(0.61, 0.82, 1.0)
|
||||
## Limite visual de Camera2D: 3 px. Feedback Strength permite reducirlo o anularlo.
|
||||
@export_range(0.0, 3.0, 0.1) var special_shake_strength: float = 2.0
|
||||
@export_range(0.05, 0.6, 0.01) var special_shake_duration: float = 0.18
|
||||
## Frecuencia angular, no cantidad de impactos: Fer usa una vibracion mas grave.
|
||||
@export_range(8.0, 100.0, 1.0) var special_shake_frequency: float = 83.0
|
||||
@@ -0,0 +1,266 @@
|
||||
[gd_resource type="SpriteFrames" load_steps=42 format=3]
|
||||
|
||||
[ext_resource type="Texture2D" path="res://assets/characters/band/bassist.svg" id="atlas"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_5"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="jump_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="jump_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="fall_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="fall_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="ground_pound_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="ground_pound_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_5"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_end_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_end_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="hurt_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="hurt_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[resource]
|
||||
animations = [{
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("fall_0")}, {"duration": 1.0, "texture": SubResource("fall_1")}],
|
||||
"loop": true,
|
||||
"name": &"fall",
|
||||
"speed": 7.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("ground_pound_0")}, {"duration": 1.0, "texture": SubResource("ground_pound_1")}],
|
||||
"loop": true,
|
||||
"name": &"ground_pound",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("hurt_0")}, {"duration": 1.0, "texture": SubResource("hurt_1")}],
|
||||
"loop": false,
|
||||
"name": &"hurt",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("idle_0")}, {"duration": 1.0, "texture": SubResource("idle_1")}, {"duration": 1.0, "texture": SubResource("idle_2")}, {"duration": 1.0, "texture": SubResource("idle_3")}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("jump_0")}, {"duration": 1.0, "texture": SubResource("jump_1")}],
|
||||
"loop": false,
|
||||
"name": &"jump",
|
||||
"speed": 9.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("land_0")}, {"duration": 1.0, "texture": SubResource("land_1")}, {"duration": 1.0, "texture": SubResource("land_2")}],
|
||||
"loop": false,
|
||||
"name": &"land",
|
||||
"speed": 16.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("punch_0")}, {"duration": 0.75, "texture": SubResource("punch_1")}, {"duration": 1.15, "texture": SubResource("punch_2")}, {"duration": 0.8, "texture": SubResource("punch_3")}, {"duration": 1.3, "texture": SubResource("punch_4")}],
|
||||
"loop": false,
|
||||
"name": &"punch",
|
||||
"speed": 18.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_0")}, {"duration": 1.0, "texture": SubResource("special_1")}, {"duration": 1.0, "texture": SubResource("special_2")}, {"duration": 1.0, "texture": SubResource("special_3")}, {"duration": 1.0, "texture": SubResource("special_4")}, {"duration": 1.0, "texture": SubResource("special_5")}],
|
||||
"loop": false,
|
||||
"name": &"special",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_end_0")}, {"duration": 1.0, "texture": SubResource("special_end_1")}],
|
||||
"loop": false,
|
||||
"name": &"special_end",
|
||||
"speed": 7.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_start_0")}, {"duration": 1.0, "texture": SubResource("special_start_1")}, {"duration": 1.0, "texture": SubResource("special_start_2")}],
|
||||
"loop": false,
|
||||
"name": &"special_start",
|
||||
"speed": 9.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("walk_0")}, {"duration": 1.0, "texture": SubResource("walk_1")}, {"duration": 1.0, "texture": SubResource("walk_2")}, {"duration": 1.0, "texture": SubResource("walk_3")}, {"duration": 1.0, "texture": SubResource("walk_4")}, {"duration": 1.0, "texture": SubResource("walk_5")}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("pound_land_0")}, {"duration": 1.0, "texture": SubResource("pound_land_1")}, {"duration": 1.0, "texture": SubResource("pound_land_2")}],
|
||||
"loop": false,
|
||||
"name": &"pound_land",
|
||||
"speed": 12.0
|
||||
}]
|
||||
@@ -0,0 +1,266 @@
|
||||
[gd_resource type="SpriteFrames" load_steps=42 format=3]
|
||||
|
||||
[ext_resource type="Texture2D" path="res://assets/characters/band/drummer.svg" id="atlas"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_5"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="jump_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="jump_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="fall_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="fall_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="ground_pound_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="ground_pound_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_5"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_end_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_end_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="hurt_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="hurt_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[resource]
|
||||
animations = [{
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("fall_0")}, {"duration": 1.0, "texture": SubResource("fall_1")}],
|
||||
"loop": true,
|
||||
"name": &"fall",
|
||||
"speed": 7.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("ground_pound_0")}, {"duration": 1.0, "texture": SubResource("ground_pound_1")}],
|
||||
"loop": true,
|
||||
"name": &"ground_pound",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("hurt_0")}, {"duration": 1.0, "texture": SubResource("hurt_1")}],
|
||||
"loop": false,
|
||||
"name": &"hurt",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("idle_0")}, {"duration": 1.0, "texture": SubResource("idle_1")}, {"duration": 1.0, "texture": SubResource("idle_2")}, {"duration": 1.0, "texture": SubResource("idle_3")}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("jump_0")}, {"duration": 1.0, "texture": SubResource("jump_1")}],
|
||||
"loop": false,
|
||||
"name": &"jump",
|
||||
"speed": 9.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("land_0")}, {"duration": 1.0, "texture": SubResource("land_1")}, {"duration": 1.0, "texture": SubResource("land_2")}],
|
||||
"loop": false,
|
||||
"name": &"land",
|
||||
"speed": 16.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("punch_0")}, {"duration": 0.75, "texture": SubResource("punch_1")}, {"duration": 1.15, "texture": SubResource("punch_2")}, {"duration": 0.8, "texture": SubResource("punch_3")}, {"duration": 1.3, "texture": SubResource("punch_4")}],
|
||||
"loop": false,
|
||||
"name": &"punch",
|
||||
"speed": 18.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_0")}, {"duration": 1.0, "texture": SubResource("special_1")}, {"duration": 1.0, "texture": SubResource("special_2")}, {"duration": 1.0, "texture": SubResource("special_3")}, {"duration": 1.0, "texture": SubResource("special_4")}, {"duration": 1.0, "texture": SubResource("special_5")}],
|
||||
"loop": true,
|
||||
"name": &"special",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_end_0")}, {"duration": 1.0, "texture": SubResource("special_end_1")}],
|
||||
"loop": false,
|
||||
"name": &"special_end",
|
||||
"speed": 7.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_start_0")}, {"duration": 1.0, "texture": SubResource("special_start_1")}, {"duration": 1.0, "texture": SubResource("special_start_2")}],
|
||||
"loop": false,
|
||||
"name": &"special_start",
|
||||
"speed": 9.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("walk_0")}, {"duration": 1.0, "texture": SubResource("walk_1")}, {"duration": 1.0, "texture": SubResource("walk_2")}, {"duration": 1.0, "texture": SubResource("walk_3")}, {"duration": 1.0, "texture": SubResource("walk_4")}, {"duration": 1.0, "texture": SubResource("walk_5")}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("pound_land_0")}, {"duration": 1.0, "texture": SubResource("pound_land_1")}, {"duration": 1.0, "texture": SubResource("pound_land_2")}],
|
||||
"loop": false,
|
||||
"name": &"pound_land",
|
||||
"speed": 12.0
|
||||
}]
|
||||
@@ -0,0 +1,266 @@
|
||||
[gd_resource type="SpriteFrames" load_steps=42 format=3]
|
||||
|
||||
[ext_resource type="Texture2D" path="res://assets/characters/band/guitarist.svg" id="atlas"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_5"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="jump_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="jump_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="fall_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="fall_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="ground_pound_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="ground_pound_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_5"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_end_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_end_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="hurt_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="hurt_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[resource]
|
||||
animations = [{
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("fall_0")}, {"duration": 1.0, "texture": SubResource("fall_1")}],
|
||||
"loop": true,
|
||||
"name": &"fall",
|
||||
"speed": 7.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("ground_pound_0")}, {"duration": 1.0, "texture": SubResource("ground_pound_1")}],
|
||||
"loop": true,
|
||||
"name": &"ground_pound",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("hurt_0")}, {"duration": 1.0, "texture": SubResource("hurt_1")}],
|
||||
"loop": false,
|
||||
"name": &"hurt",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("idle_0")}, {"duration": 1.0, "texture": SubResource("idle_1")}, {"duration": 1.0, "texture": SubResource("idle_2")}, {"duration": 1.0, "texture": SubResource("idle_3")}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("jump_0")}, {"duration": 1.0, "texture": SubResource("jump_1")}],
|
||||
"loop": false,
|
||||
"name": &"jump",
|
||||
"speed": 9.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("land_0")}, {"duration": 1.0, "texture": SubResource("land_1")}, {"duration": 1.0, "texture": SubResource("land_2")}],
|
||||
"loop": false,
|
||||
"name": &"land",
|
||||
"speed": 16.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("punch_0")}, {"duration": 0.75, "texture": SubResource("punch_1")}, {"duration": 1.15, "texture": SubResource("punch_2")}, {"duration": 0.8, "texture": SubResource("punch_3")}, {"duration": 1.3, "texture": SubResource("punch_4")}],
|
||||
"loop": false,
|
||||
"name": &"punch",
|
||||
"speed": 18.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_0")}, {"duration": 1.0, "texture": SubResource("special_1")}, {"duration": 1.0, "texture": SubResource("special_2")}, {"duration": 1.0, "texture": SubResource("special_3")}, {"duration": 1.0, "texture": SubResource("special_4")}, {"duration": 1.0, "texture": SubResource("special_5")}],
|
||||
"loop": true,
|
||||
"name": &"special",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_end_0")}, {"duration": 1.0, "texture": SubResource("special_end_1")}],
|
||||
"loop": false,
|
||||
"name": &"special_end",
|
||||
"speed": 7.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_start_0")}, {"duration": 1.0, "texture": SubResource("special_start_1")}, {"duration": 1.0, "texture": SubResource("special_start_2")}],
|
||||
"loop": false,
|
||||
"name": &"special_start",
|
||||
"speed": 9.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("walk_0")}, {"duration": 1.0, "texture": SubResource("walk_1")}, {"duration": 1.0, "texture": SubResource("walk_2")}, {"duration": 1.0, "texture": SubResource("walk_3")}, {"duration": 1.0, "texture": SubResource("walk_4")}, {"duration": 1.0, "texture": SubResource("walk_5")}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("pound_land_0")}, {"duration": 1.0, "texture": SubResource("pound_land_1")}, {"duration": 1.0, "texture": SubResource("pound_land_2")}],
|
||||
"loop": false,
|
||||
"name": &"pound_land",
|
||||
"speed": 12.0
|
||||
}]
|
||||
@@ -0,0 +1,266 @@
|
||||
[gd_resource type="SpriteFrames" load_steps=42 format=3]
|
||||
|
||||
[ext_resource type="Texture2D" path="res://assets/characters/band/singer.svg" id="atlas"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="idle_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 0, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="walk_5"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="jump_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="jump_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="fall_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="fall_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 64, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="punch_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="ground_pound_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="ground_pound_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="land_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 128, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_start_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_3"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_4"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 192, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_5"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(0, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_end_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(64, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="special_end_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(128, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="hurt_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(192, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="hurt_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(256, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_0"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(320, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_1"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(384, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[sub_resource type="AtlasTexture" id="pound_land_2"]
|
||||
atlas = ExtResource("atlas")
|
||||
region = Rect2(448, 256, 64, 64)
|
||||
filter_clip = true
|
||||
|
||||
[resource]
|
||||
animations = [{
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("fall_0")}, {"duration": 1.0, "texture": SubResource("fall_1")}],
|
||||
"loop": true,
|
||||
"name": &"fall",
|
||||
"speed": 7.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("ground_pound_0")}, {"duration": 1.0, "texture": SubResource("ground_pound_1")}],
|
||||
"loop": true,
|
||||
"name": &"ground_pound",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("hurt_0")}, {"duration": 1.0, "texture": SubResource("hurt_1")}],
|
||||
"loop": false,
|
||||
"name": &"hurt",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("idle_0")}, {"duration": 1.0, "texture": SubResource("idle_1")}, {"duration": 1.0, "texture": SubResource("idle_2")}, {"duration": 1.0, "texture": SubResource("idle_3")}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("jump_0")}, {"duration": 1.0, "texture": SubResource("jump_1")}],
|
||||
"loop": false,
|
||||
"name": &"jump",
|
||||
"speed": 9.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("land_0")}, {"duration": 1.0, "texture": SubResource("land_1")}, {"duration": 1.0, "texture": SubResource("land_2")}],
|
||||
"loop": false,
|
||||
"name": &"land",
|
||||
"speed": 16.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("punch_0")}, {"duration": 0.75, "texture": SubResource("punch_1")}, {"duration": 1.15, "texture": SubResource("punch_2")}, {"duration": 0.8, "texture": SubResource("punch_3")}, {"duration": 1.3, "texture": SubResource("punch_4")}],
|
||||
"loop": false,
|
||||
"name": &"punch",
|
||||
"speed": 18.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_0")}, {"duration": 1.0, "texture": SubResource("special_1")}, {"duration": 1.0, "texture": SubResource("special_2")}, {"duration": 1.0, "texture": SubResource("special_3")}, {"duration": 1.0, "texture": SubResource("special_4")}, {"duration": 1.0, "texture": SubResource("special_5")}],
|
||||
"loop": true,
|
||||
"name": &"special",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_end_0")}, {"duration": 1.0, "texture": SubResource("special_end_1")}],
|
||||
"loop": false,
|
||||
"name": &"special_end",
|
||||
"speed": 7.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("special_start_0")}, {"duration": 1.0, "texture": SubResource("special_start_1")}, {"duration": 1.0, "texture": SubResource("special_start_2")}],
|
||||
"loop": false,
|
||||
"name": &"special_start",
|
||||
"speed": 9.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("walk_0")}, {"duration": 1.0, "texture": SubResource("walk_1")}, {"duration": 1.0, "texture": SubResource("walk_2")}, {"duration": 1.0, "texture": SubResource("walk_3")}, {"duration": 1.0, "texture": SubResource("walk_4")}, {"duration": 1.0, "texture": SubResource("walk_5")}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("pound_land_0")}, {"duration": 1.0, "texture": SubResource("pound_land_1")}, {"duration": 1.0, "texture": SubResource("pound_land_2")}],
|
||||
"loop": false,
|
||||
"name": &"pound_land",
|
||||
"speed": 12.0
|
||||
}]
|
||||
@@ -1,15 +1,23 @@
|
||||
[gd_resource type="Resource" script_class="CharacterData" load_steps=3 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://player/character_data.gd" id="1_data"]
|
||||
[ext_resource type="SpriteFrames" path="res://player/characters/shared/prototype_sprite_frames.tres" id="2_frames"]
|
||||
[ext_resource type="SpriteFrames" path="res://player/characters/animations/bassist_frames.tres" id="2_frames"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_data")
|
||||
id = &"bassist"
|
||||
display_name = "Bassist"
|
||||
display_name = "Fer"
|
||||
role_name = "BAJISTA"
|
||||
sprite_frames = ExtResource("2_frames")
|
||||
max_health = 50
|
||||
move_speed = 390.0
|
||||
jump_velocity = -600.0
|
||||
basic_attack_damage = 5
|
||||
air_attack_damage = 10
|
||||
ground_pound_effect = "bass_cracks"
|
||||
special_effect = "bass_pulse"
|
||||
special_label = "BASS QUAKE!"
|
||||
special_color = Color(0.76, 0.52, 1.0, 1)
|
||||
special_shake_strength = 3.0
|
||||
special_shake_duration = 0.32
|
||||
special_shake_frequency = 18.0
|
||||
@@ -1,15 +1,23 @@
|
||||
[gd_resource type="Resource" script_class="CharacterData" load_steps=3 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://player/character_data.gd" id="1_data"]
|
||||
[ext_resource type="SpriteFrames" path="res://player/characters/shared/prototype_sprite_frames.tres" id="2_frames"]
|
||||
[ext_resource type="SpriteFrames" path="res://player/characters/animations/drummer_frames.tres" id="2_frames"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_data")
|
||||
id = &"drummer"
|
||||
display_name = "Drummer"
|
||||
display_name = "Ivan"
|
||||
role_name = "BATERIA"
|
||||
sprite_frames = ExtResource("2_frames")
|
||||
max_health = 50
|
||||
move_speed = 390.0
|
||||
jump_velocity = -600.0
|
||||
basic_attack_damage = 5
|
||||
air_attack_damage = 10
|
||||
ground_pound_effect = "ground_pound"
|
||||
special_effect = "drum_cymbals"
|
||||
special_label = "CYMBAL STORM!"
|
||||
special_color = Color(1.0, 0.76, 0.3, 1)
|
||||
special_shake_strength = 2.0
|
||||
special_shake_duration = 0.18
|
||||
special_shake_frequency = 83.0
|
||||
@@ -1,15 +1,23 @@
|
||||
[gd_resource type="Resource" script_class="CharacterData" load_steps=3 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://player/character_data.gd" id="1_data"]
|
||||
[ext_resource type="SpriteFrames" path="res://player/characters/shared/prototype_sprite_frames.tres" id="2_frames"]
|
||||
[ext_resource type="SpriteFrames" path="res://player/characters/animations/guitarist_frames.tres" id="2_frames"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_data")
|
||||
id = &"guitarist"
|
||||
display_name = "Guitarist"
|
||||
display_name = "Diego"
|
||||
role_name = "GUITARRISTA"
|
||||
sprite_frames = ExtResource("2_frames")
|
||||
max_health = 50
|
||||
move_speed = 390.0
|
||||
jump_velocity = -600.0
|
||||
basic_attack_damage = 5
|
||||
air_attack_damage = 10
|
||||
ground_pound_effect = "electric_pound"
|
||||
special_effect = "solo"
|
||||
special_label = "GUITAR SOLO!"
|
||||
special_color = Color(0.61, 0.82, 1.0, 1)
|
||||
special_shake_strength = 2.0
|
||||
special_shake_duration = 0.18
|
||||
special_shake_frequency = 83.0
|
||||
@@ -1,15 +1,23 @@
|
||||
[gd_resource type="Resource" script_class="CharacterData" load_steps=3 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://player/character_data.gd" id="1_data"]
|
||||
[ext_resource type="SpriteFrames" path="res://player/characters/shared/prototype_sprite_frames.tres" id="2_frames"]
|
||||
[ext_resource type="SpriteFrames" path="res://player/characters/animations/singer_frames.tres" id="2_frames"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_data")
|
||||
id = &"singer"
|
||||
display_name = "Singer"
|
||||
display_name = "Hector"
|
||||
role_name = "CANTANTE"
|
||||
sprite_frames = ExtResource("2_frames")
|
||||
max_health = 50
|
||||
move_speed = 390.0
|
||||
jump_velocity = -600.0
|
||||
basic_attack_damage = 5
|
||||
air_attack_damage = 10
|
||||
ground_pound_effect = "vocal_dome"
|
||||
special_effect = "vocal_wave"
|
||||
special_label = "THRASH SCREAM!"
|
||||
special_color = Color(1.0, 0.88, 0.25, 1)
|
||||
special_shake_strength = 2.0
|
||||
special_shake_duration = 0.18
|
||||
special_shake_frequency = 83.0
|
||||
+34
-9
@@ -134,8 +134,9 @@ const COMBAT_FX = preload("res://effects/combat_fx.gd")
|
||||
## Fraccion del control horizontal que se mantiene durante la caida ofensiva.
|
||||
@export_range(0.0, 1.0) var ground_pound_horizontal_control: float = 0.25
|
||||
|
||||
## Radio del impacto al aterrizar, en pixeles.
|
||||
@export var ground_pound_radius: float = 54.0
|
||||
## Radio comun en pixeles: 108, el doble del anterior (54), para toda la banda.
|
||||
## El circulo fisico y el efecto comparten este alcance; no depende del personaje.
|
||||
@export var ground_pound_radius: float = 108.0
|
||||
## Centro del impacto respecto al cuerpo del jugador.
|
||||
@export var ground_pound_offset: Vector2 = Vector2(0.0, 24.0)
|
||||
|
||||
@@ -262,11 +263,19 @@ var _special_damage_budgets: Dictionary = {}
|
||||
var _special_damage_dealt: Dictionary = {}
|
||||
var _hurt_animation_timer: float = 0.0
|
||||
var _landing_animation_timer: float = 0.0
|
||||
# Pose exclusiva del impacto ofensivo; un aterrizaje normal sigue usando land.
|
||||
var _pound_landing_timer: float = 0.0
|
||||
var _punch_swing_shown: bool = false
|
||||
|
||||
|
||||
## Carga el personaje y prepara ataques, animacion y senales iniciales del HUD.
|
||||
func _ready() -> void:
|
||||
# Resuelve la eleccion antes de vida, animaciones y senales iniciales del HUD.
|
||||
var session: RunSessionState = get_node_or_null("/root/RunSession") as RunSessionState
|
||||
if session != null:
|
||||
var selected: CharacterData = session.character_for(self)
|
||||
if selected != null:
|
||||
character_data = selected
|
||||
if character_data == null:
|
||||
push_error("Player needs a CharacterData resource.")
|
||||
return
|
||||
@@ -529,9 +538,13 @@ func _start_ground_pound() -> void:
|
||||
func _ground_pound_impact() -> void:
|
||||
ground_pound_active = false
|
||||
ground_pound_debug_timer = debug_impact_duration
|
||||
_landing_animation_timer = 0.20
|
||||
_pound_landing_timer = 0.28
|
||||
# La pose especifica no reemplaza la animacion de un salto normal.
|
||||
if animated_sprite.sprite_frames.has_animation(&"pound_land"):
|
||||
animated_sprite.play(&"pound_land")
|
||||
animated_sprite.set_frame_and_progress(0, 0.0)
|
||||
COMBAT_FX.spawn(get_parent(), global_position + Vector2(0, 26),
|
||||
&"ground_pound", facing_direction, ground_pound_radius)
|
||||
StringName(character_data.ground_pound_effect), facing_direction, ground_pound_radius)
|
||||
feedback_camera.call("impact", 2.8, 0.24)
|
||||
|
||||
# Calcula el dano a partir de la altura maxima sobre el punto de despegue y aplica sus limites.
|
||||
@@ -584,8 +597,8 @@ func _start_special_attack() -> void:
|
||||
_special_damage_dealt.clear()
|
||||
punch_timer = 0.0
|
||||
velocity.x = 0.0
|
||||
feedback_camera.call("start_solo", special_duration)
|
||||
_spawn_floating_text("GUITAR SOLO!", Color(0.76, 0.85, 1.0))
|
||||
feedback_camera.call("start_solo", special_duration, character_data.special_color)
|
||||
_spawn_floating_text(character_data.special_label, character_data.special_color)
|
||||
|
||||
|
||||
## Avanza las fases visuales del solo y emite cada pulso una sola vez.
|
||||
@@ -602,9 +615,17 @@ func _update_special_attack(delta: float) -> void:
|
||||
break
|
||||
_apply_special_attack(_special_charge_used, _special_pulses_sent)
|
||||
_special_pulses_sent += 1
|
||||
# Cada nota grave visible coincide con su pulso y sacudida, no con un temporizador aparte.
|
||||
if character_data.special_effect == "bass_pulse":
|
||||
animated_sprite.play(&"special")
|
||||
animated_sprite.set_frame_and_progress(0, 0.0)
|
||||
var effect_radius: float = minf(special_radius, 300.0) if special_radius > 0.0 else 300.0
|
||||
COMBAT_FX.spawn(get_parent(), global_position, &"solo", facing_direction, effect_radius)
|
||||
feedback_camera.call("impact", 2.0, 0.18, Color(0.61, 0.82, 1.0))
|
||||
COMBAT_FX.spawn(get_parent(), global_position,
|
||||
StringName(character_data.special_effect), facing_direction, effect_radius)
|
||||
# Un movimiento de camara por pulso; los platos y ondas nunca aplican dano adicional.
|
||||
feedback_camera.call("impact", character_data.special_shake_strength,
|
||||
character_data.special_shake_duration, character_data.special_color,
|
||||
character_data.special_shake_frequency)
|
||||
velocity.x = -facing_direction * 35.0
|
||||
if _special_elapsed >= special_duration:
|
||||
_special_active = false
|
||||
@@ -852,6 +873,7 @@ func _reload_level() -> void:
|
||||
func _update_timers(delta: float) -> void:
|
||||
_hurt_animation_timer = maxf(0.0, _hurt_animation_timer - delta)
|
||||
_landing_animation_timer = maxf(0.0, _landing_animation_timer - delta)
|
||||
_pound_landing_timer = maxf(0.0, _pound_landing_timer - delta)
|
||||
punch_timer = max(punch_timer - delta, 0.0)
|
||||
attack_cooldown_timer = max(attack_cooldown_timer - delta, 0.0)
|
||||
ground_pound_debug_timer = max(ground_pound_debug_timer - delta, 0.0)
|
||||
@@ -887,6 +909,8 @@ func _update_animation() -> void:
|
||||
animation_name = &"punch"
|
||||
elif not is_on_floor():
|
||||
animation_name = &"jump" if velocity.y < 0.0 else &"fall"
|
||||
elif _pound_landing_timer > 0.0:
|
||||
animation_name = &"pound_land"
|
||||
elif _landing_animation_timer > 0.0:
|
||||
animation_name = &"land"
|
||||
elif absf(velocity.x) > 10.0:
|
||||
@@ -942,7 +966,8 @@ func _setup_attack_hitboxes() -> void:
|
||||
func _draw() -> void:
|
||||
if is_on_floor():
|
||||
draw_rect(Rect2(-14, 24, 28, 3), Color(0.05, 0.06, 0.10, 0.25))
|
||||
if ground_pound_active:
|
||||
# Los trazos dorados tipo baqueta pertenecen solo a Ivan.
|
||||
if ground_pound_active and character_data != null and character_data.ground_pound_effect == "ground_pound":
|
||||
for side: float in [-1.0, 1.0]:
|
||||
draw_line(Vector2(17 * side, -30), Vector2(17 * side, -9), Color(1.0, 0.8, 0.45, 0.75), 2.0)
|
||||
# Los mensajes de objetos se muestran aunque este desactivada la depuracion de colisiones.
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
[gd_scene format=3 uid="uid://nwbjxttgghpq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dccfebno1gvh7" path="res://player/player.gd" id="1_player"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://s2xmt6mpri5c" path="res://player/characters/shared/prototype_sprite_frames.tres" id="2_frames"]
|
||||
[ext_resource type="SpriteFrames" path="res://player/characters/animations/guitarist_frames.tres" id="2_frames"]
|
||||
[ext_resource type="Script" uid="uid://kg3i7b0dj2p8" path="res://player/camera_2d.gd" id="3_camera"]
|
||||
[ext_resource type="Resource" path="res://player/characters/singer.tres" id="4_character"]
|
||||
[ext_resource type="Resource" path="res://player/characters/guitarist.tres" id="4_character"]
|
||||
[ext_resource type="PackedScene" path="res://ui/hud/player_health_hud.tscn" id="5_health_hud"]
|
||||
[ext_resource type="PackedScene" path="res://ui/hud/special_charge_hud.tscn" id="6_special_charge_hud"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user