Added pause and mute.
Improved fonts and font scaling Added level editor
This commit is contained in:
@@ -3,10 +3,35 @@ class_name Paddle
|
||||
|
||||
var width : int :
|
||||
get:
|
||||
return $CollisionShape2D.shape.size.x
|
||||
|
||||
func _on_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void:
|
||||
pass # Replace with function body.
|
||||
return $CollisionShape2D.shape.height
|
||||
|
||||
func hit() -> void:
|
||||
pass
|
||||
|
||||
func big() -> void:
|
||||
$Normal.visible = false
|
||||
$Small.visible = false
|
||||
$Big.visible = true
|
||||
$CollisionShape2D.shape.height = 40
|
||||
$EffectTimer.start(30)
|
||||
$GrowSound.play()
|
||||
pass
|
||||
|
||||
func small() -> void:
|
||||
$Normal.visible = false
|
||||
$Small.visible = true
|
||||
$Big.visible = false
|
||||
$CollisionShape2D.shape.height = 24
|
||||
$EffectTimer.start(30)
|
||||
$ShrinkSound.play()
|
||||
pass
|
||||
|
||||
func normal() -> void:
|
||||
$Normal.visible = true
|
||||
$Small.visible = false
|
||||
$Big.visible = false
|
||||
$CollisionShape2D.shape.height = 32
|
||||
pass
|
||||
|
||||
func _on_effect_timer_timeout() -> void:
|
||||
normal()
|
||||
|
||||
Reference in New Issue
Block a user