Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
24
scripts/CustomControls/BirdsWrapper.gd
Normal file
24
scripts/CustomControls/BirdsWrapper.gd
Normal file
|
@ -0,0 +1,24 @@
|
|||
extends Node2D
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
onready var timer = $Timer;
|
||||
onready var player = $AnimationPlayer;
|
||||
onready var birdAnimation = $BirdsAnimation / BirdsAnimation;
|
||||
onready var animationContainer = $BirdsAnimation;
|
||||
|
||||
func Init():
|
||||
player.play("BirdsAnimation");
|
||||
|
||||
func _on_AnimationPlayer_animation_finished(_anim_name):
|
||||
animationContainer.position.x = - 135;
|
||||
birdAnimation.frame = 0;
|
||||
timer.start(55);
|
||||
|
||||
func _on_Timer_timeout():
|
||||
player.play("BirdsAnimation");
|
Loading…
Add table
Add a link
Reference in a new issue