Bandidos
|
Classes | |
enum | ExplosionType |
Static Public Member Functions | |
static Effect | createHitEffect (float xPosition, float yPosition, float scale, Color color) |
static BasicEntity | createBloodPool (float xPosition, float yPosition, final float size, final float timeOnGround) |
static Effect | createExplosionEffect (ExplosionType explosionType, float xPosition, float yPosition, final float scale) |
static TextEntity | createTextEffect (FontData font, String text, float size, final float startX, final float startY, float x, float y) |
static TextEntity | createTextEffect (FontData font, String text, float size, final float startX, final float startY, float x, float y, float offsetX, float offsetY, final float waitTillFade) |
This class contains static methods which can be used to create effects
|
static |
Creates a blood pool and makes it fade away after a given amount of time
xPosition | to spawn the blood pool |
yPosition | to spawn the blood pool |
size | to scale blood pool to |
timeOnGround | is the time this blood pool is on the ground in seconds before it fades. |
|
static |
Creates an explosion effect on the given position and deletes when it is finished playing
explosionType | is the type of explosion effect to spawn |
xPosition | is the x position to spawn the explosion effect on |
yPosition | is the y position to spawn the explosion effect on |
scale | is how big the explosion effect should be scaled. This will also affect the screen shake of this effect |
|
static |
Creates a hit effect and deletes it when its finished.
xPosition | to spawn hit effect |
yPosition | to spawn hit effect |
scale | to make hit effect |
color | to dye the effect in |
|
static |
Creates a text effect which pops out of a position and fades away afterwards.
font | to give the text |
text | is the string to give the text |
size | as fontsize |
startX | where the effect will start |
startY | where the effect will start |
x | where the effect will lerp to |
y | where the effect will lerp to |
|
static |
Creates a text effect which pops out of a position and fades away afterwards.
font | to give the text |
text | is the string to give the text |
size | as fontsize |
startX | where the effect will start |
startY | where the effect will start |
x | where the effect will lerp to |
y | where the effect will lerp to |
offsetX | is the forced offset despite the bounds onto the x param |
offsetY | is the forced offset despite the bounds onto the y param |