You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
485 B
32 lines
485 B
if (state == 0)
|
|
{
|
|
if (statetime == 150)
|
|
{
|
|
state = 1
|
|
statetime = 0
|
|
}
|
|
}
|
|
if (state == 1)
|
|
{
|
|
image_angle = lerp(image_angle, 0, 0.05)
|
|
if (statetime == 70)
|
|
{
|
|
state = 2
|
|
statetime = 0
|
|
}
|
|
}
|
|
if (state == 2)
|
|
{
|
|
image_angle = 0
|
|
if (image_index > 1)
|
|
image_index -= 0.2
|
|
if (image_index < 1)
|
|
image_index = 1
|
|
if (statetime > 40)
|
|
{
|
|
if (vspeed < 2.5)
|
|
vspeed += 0.03
|
|
}
|
|
}
|
|
statetime += 1
|