change lugia animation a bit and remove unused effect binaries

This commit is contained in:
nilllzz 2018-02-24 18:50:45 +01:00
parent c9218fb4b4
commit fc6a4c4d93
6 changed files with 5 additions and 4 deletions

View File

@ -9,6 +9,7 @@ Namespace Screens.MainMenu.Scene
Inherits MainMenuEntity Inherits MainMenuEntity
Private Shared _random As Random = New Random() Private Shared _random As Random = New Random()
Private Shared _frames As Integer() = {0, 0, 0, 1, 2, 3}
Private _entities As List(Of MainMenuEntity) Private _entities As List(Of MainMenuEntity)
Private _textures As Texture2D() Private _textures As Texture2D()
@ -47,11 +48,11 @@ Namespace Screens.MainMenu.Scene
If _animationDelay = 0 Then If _animationDelay = 0 Then
_animationDelay = 12 _animationDelay = 12
_textureIndex += 1 _textureIndex += 1
If _textureIndex = _textures.Length Then If _textureIndex = _frames.Length Then
_textureIndex = 0 _textureIndex = 0
End If End If
Texture = _textures(_textureIndex) Texture = _textures(_frames(_textureIndex))
For i = 0 To _random.Next(1, 4) For i = 0 To _random.Next(1, 4)
@ -61,7 +62,7 @@ Namespace Screens.MainMenu.Scene
Next Next
End If End If
CreateWorld() CreateWorld()
MyBase.Update() MyBase.Update()
End Sub End Sub

View File

@ -31,7 +31,7 @@ Namespace Screens.MainMenu.Scene
Position.X += 1.2F Position.X += 1.2F
Position.Y += CType(Math.Sin(_phase), Single) Position.Y += CType(Math.Sin(_phase), Single)
Alpha -= 0.01F Alpha -= 0.018F
If Alpha <= 0F Then If Alpha <= 0F Then
ToBeRemoved = True ToBeRemoved = True

Binary file not shown.

Binary file not shown.