public class PlayerRenderer
extends java.lang.Object
Constructor and Description |
---|
PlayerRenderer(Player player,
com.jonathan.survivor.World world,
com.badlogic.gdx.graphics.g2d.SpriteBatch batcher,
com.badlogic.gdx.graphics.OrthographicCamera worldCamera)
Accepts the player GameObject to render, the world whose methods are called on animation events, the SpriteBatch used to draw the player, and the world
camera where the player is drawn.
|
Modifier and Type | Method and Description |
---|---|
void |
render(float deltaTime)
Draws the player using his Spine skeleton, which stores his animations, sprites, and everything needed to draw the player.
|
public PlayerRenderer(Player player, com.jonathan.survivor.World world, com.badlogic.gdx.graphics.g2d.SpriteBatch batcher, com.badlogic.gdx.graphics.OrthographicCamera worldCamera)