Refactored to allow hotseat and multiplayer. TODO: Create interface class for webrtc/enet multiplayer
This commit is contained in:
parent
d688eaf9c6
commit
5fe8f22ccb
27 changed files with 798 additions and 135 deletions
24
Table.gd
Normal file
24
Table.gd
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
extends MeshInstance3D
|
||||
|
||||
var mat: ShaderMaterial
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
mat = get_active_material(0)
|
||||
|
||||
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)
|
||||
|
||||
func tween_outer(value: float) -> void:
|
||||
mat.set_shader_parameter("distance_fade_min", value)
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue