Implemented Pillbug/Mosquito actions. Implemented pre-game settings. TODO: Game settings + bug testing
This commit is contained in:
parent
397082f966
commit
2343638749
15 changed files with 477 additions and 70 deletions
9
Table.gd
9
Table.gd
|
|
@ -3,15 +3,18 @@ extends MeshInstance3D
|
|||
var mat: ShaderMaterial
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
GameEvents.game_started.connect(_on_game_started)
|
||||
mat = get_active_material(0)
|
||||
mat.set_shader_parameter("distance_fade_max", -1.0)
|
||||
mat.set_shader_parameter("distance_fade_min", 0.0)
|
||||
|
||||
func _on_game_started() -> void:
|
||||
|
||||
|
||||
var tween = get_tree().create_tween()
|
||||
tween.set_parallel(true)
|
||||
tween.tween_method(tween_inner, -1.0, 10.0, 3.5).set_ease(Tween.EASE_IN_OUT).set_trans(Tween.TRANS_EXPO)
|
||||
tween.tween_method(tween_outer, 0.0, 25.0, 3.5).set_ease(Tween.EASE_IN_OUT).set_trans(Tween.TRANS_CIRC)
|
||||
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func tween_inner(value: float) -> void:
|
||||
mat.set_shader_parameter("distance_fade_max", value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue