Added pause and mute.

Improved fonts and font scaling
Added level editor
This commit is contained in:
2024-05-05 22:36:32 +01:00
parent fef3ae9d8e
commit 81d8e14746
355 changed files with 3231 additions and 5428 deletions

View File

@@ -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()