mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-29 16:54:56 +02:00
Fire Punch animation
This commit is contained in:
parent
c2f3eeff22
commit
e400c49d7d
BIN
P3D/Content/Sounds/Battle/Attacks/Fire/FirePunch.wav
Normal file
BIN
P3D/Content/Sounds/Battle/Attacks/Fire/FirePunch.wav
Normal file
Binary file not shown.
BIN
P3D/Content/Textures/Battle/Fire/FirePunch_Fist.png
Normal file
BIN
P3D/Content/Textures/Battle/Fire/FirePunch_Fist.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 300 B |
@ -18287,6 +18287,9 @@
|
|||||||
<Content Include="Content\Sounds\Battle\Attacks\Fire\Ember_Start.wav">
|
<Content Include="Content\Sounds\Battle\Attacks\Fire\Ember_Start.wav">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="Content\Sounds\Battle\Attacks\Fire\FirePunch.wav">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="Content\Sounds\Battle\Attacks\Flying\Fly_Hit.wav">
|
<Content Include="Content\Sounds\Battle\Attacks\Flying\Fly_Hit.wav">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
@ -18437,6 +18440,9 @@
|
|||||||
<Content Include="Content\Textures\Battle\Electric\FlashBackground.png">
|
<Content Include="Content\Textures\Battle\Electric\FlashBackground.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="Content\Textures\Battle\Fire\FirePunch_Fist.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="Content\Textures\Battle\Flying\Fly.png">
|
<Content Include="Content\Textures\Battle\Flying\Fly.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -71,6 +71,37 @@
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Overrides Sub InternalOpponentPokemonMoveAnimation(ByVal BattleScreen As BattleScreen, ByVal BattleFlip As Boolean, ByVal CurrentPokemon As Pokemon, ByVal CurrentEntity As NPC)
|
||||||
|
Dim MoveAnimation = New AnimationQueryObject(CurrentEntity, BattleFlip)
|
||||||
|
|
||||||
|
Dim maxAmount As Integer = 12
|
||||||
|
Dim currentAmount As Integer = 0
|
||||||
|
While currentAmount <= maxAmount
|
||||||
|
Dim Texture As Texture2D = TextureManager.GetTexture("Textures\Battle\Fire\Ember", New Rectangle(0, 64, 32, 32), "")
|
||||||
|
Dim xDest = CSng((Random.NextDouble() - 0.5) * 1.5)
|
||||||
|
Dim yDest = 0.25F
|
||||||
|
Dim zDest = CSng((Random.NextDouble() - 0.5) * 1.5)
|
||||||
|
|
||||||
|
Dim Destination As New Vector3(xDest, yDest, zDest)
|
||||||
|
|
||||||
|
Dim Position As New Vector3(0, 0, 0)
|
||||||
|
|
||||||
|
Dim Scale As New Vector3(0.35F)
|
||||||
|
Dim startDelay As Double = 1.5 * Random.NextDouble()
|
||||||
|
Dim FlameEntity As Entity = MoveAnimation.SpawnEntity(Position, Texture, Scale, 1.0F, CSng(startDelay))
|
||||||
|
|
||||||
|
MoveAnimation.AnimationMove(FlameEntity, False, Destination.X, Destination.Y, Destination.Z, 0.02F, False, False, CSng(startDelay), 0.0F,,, 0.0075F)
|
||||||
|
MoveAnimation.AnimationFade(FlameEntity, True, 0.4F, False, 0.0F, CSng(startDelay) + 1.5F, 0)
|
||||||
|
Threading.Interlocked.Increment(currentAmount)
|
||||||
|
End While
|
||||||
|
|
||||||
|
Dim FistEntity = MoveAnimation.SpawnEntity(New Vector3(0, -0.2, 0), TextureManager.GetTexture("Textures\Battle\Fire\FirePunch_Fist"), New Vector3(0.5F), 0.0F, 0, 2)
|
||||||
|
MoveAnimation.AnimationOscillateMove(FistEntity, False, New Vector3(0, 0.02, 0), 0.03, True, 7, 0, 0.5, 0, New Vector3(0, 1, 0))
|
||||||
|
MoveAnimation.AnimationFade(FistEntity, True, 1.0F, False, 0.0F, 7, 0)
|
||||||
|
MoveAnimation.AnimationPlaySound("Battle\Attacks\Fire\FirePunch", 0, 0)
|
||||||
|
|
||||||
|
BattleScreen.BattleQuery.Add(MoveAnimation)
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
End Namespace
|
End Namespace
|
Loading…
x
Reference in New Issue
Block a user