revorkAnimator3
This commit is contained in:
parent
9eb6ae7113
commit
27757bdfc2
2 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ namespace DangerousD.GameCore
|
|||
Pos = pos;
|
||||
Width = 500;
|
||||
Height = 100;
|
||||
Animator = new GraphicsComponent(new() { "playerIdle" });
|
||||
//Animator = new GraphicsComponent(new() { "playerIdle" });
|
||||
GameManager.Register(this);
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ namespace DangerousD.GameCore
|
|||
|
||||
public virtual void Draw(SpriteBatch spriteBatch)
|
||||
{
|
||||
Animator.DrawAnimation(Rectangle, "playerIdle", spriteBatch);
|
||||
//Animator.DrawAnimation(Rectangle, "playerIdle", spriteBatch);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Text;
|
|||
|
||||
namespace DangerousD.GameCore.Graphics
|
||||
{
|
||||
class GraphicsComponent
|
||||
public class GraphicsComponent
|
||||
{
|
||||
private List<AnimationContainer> animations;
|
||||
private List<Texture2D> textures;
|
||||
|
|
Loading…
Add table
Reference in a new issue