forked from team-sg/hero-mark-2
wonderful sounds and visuals
This commit is contained in:
parent
828a4ccecc
commit
02793ddc38
21 changed files with 177 additions and 24 deletions
|
@ -6,7 +6,7 @@ signal health_changed(amount)
|
|||
|
||||
|
||||
export var push_speed: float = 30.0
|
||||
export var chase_speed: float = 50.0
|
||||
export var chase_speed: float = 65.0
|
||||
export var breath_dps: float = 20.0
|
||||
export var breath_knockback: float = 16.0
|
||||
export var punch_damage: float = 8.0
|
||||
|
@ -38,6 +38,7 @@ func _physics_process(delta: float) -> void:
|
|||
state_chart.send_event("in_range")
|
||||
if fmod(Game.time, 15.0) == 0.0:
|
||||
Audio.play_sound(Audio.a_grumble,Audio.ac_boss)
|
||||
print(hp)
|
||||
|
||||
|
||||
func start_push() -> void:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=54 format=2]
|
||||
[gd_scene load_steps=55 format=2]
|
||||
|
||||
[ext_resource path="res://objects/enemy/boss/famira.gd" type="Script" id=1]
|
||||
[ext_resource path="res://shaders/scale3x.gdshader" type="Shader" id=2]
|
||||
|
@ -27,6 +27,7 @@
|
|||
[ext_resource path="res://graphics/enemy/boss/fami_parts/head_upper.png" type="Texture" id=25]
|
||||
[ext_resource path="res://graphics/enemy/boss/fami_parts/eye.png" type="Texture" id=26]
|
||||
[ext_resource path="res://audio/sounds/fami_grumble.ogg" type="AudioStream" id=27]
|
||||
[ext_resource path="res://graphics/enemy/boss/famira_fire.png" type="Texture" id=28]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=11]
|
||||
extents = Vector2( 28, 64 )
|
||||
|
@ -1759,7 +1760,7 @@ shader = ExtResource( 2 )
|
|||
shader_param/pixel_scale = 1.0
|
||||
|
||||
[sub_resource type="Curve" id=8]
|
||||
_data = [ Vector2( 0, 0.5 ), 0.0, 0.890696, 0, 0, Vector2( 0.814474, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), -13.2988, 0.0, 0, 0 ]
|
||||
_data = [ Vector2( 0, 0.5 ), 0.0, 0.890696, 0, 0, Vector2( 0.79703, 0.718182 ), 0.0, 0.0, 0, 0, Vector2( 0.985149, 0 ), -13.2988, 0.0, 0, 0 ]
|
||||
|
||||
[sub_resource type="Gradient" id=9]
|
||||
offsets = PoolRealArray( 0, 0.163743, 0.432749, 0.596491, 0.853801, 1 )
|
||||
|
@ -3906,7 +3907,7 @@ lifetime = 2.0
|
|||
lifetime_randomness = 0.5
|
||||
local_coords = false
|
||||
draw_order = 1
|
||||
texture = ExtResource( 15 )
|
||||
texture = ExtResource( 28 )
|
||||
emission_shape = 2
|
||||
emission_rect_extents = Vector2( 0, 0 )
|
||||
direction = Vector2( -1, 0 )
|
||||
|
|
|
@ -3,7 +3,7 @@ extends KinematicBody2D
|
|||
|
||||
signal died()
|
||||
signal health_changed(amount)
|
||||
signal energy_changed(amount)
|
||||
signal energy_changed(amount,laser_energy)
|
||||
|
||||
|
||||
enum State {DEAD, STAND, FORWARD, BACK, DUCK, BEAM, INACTIVE}
|
||||
|
@ -76,8 +76,7 @@ func _input(event: InputEvent) -> void:
|
|||
|
||||
func set_energy(value: float) -> void:
|
||||
energy = clamp(value, 0.0, max_energy)
|
||||
emit_signal("energy_changed", energy)
|
||||
|
||||
emit_signal("energy_changed", energy, beam_energy)
|
||||
|
||||
func land(duck: bool) -> void:
|
||||
if duck:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue