Exemplo n.º 1
0
        internal void LoadContent(ContentManager Content)
        {
            Texture2D spin = Content.Load <Texture2D>("coin");

            spinning           = new CelAnimationSequence(spin, 21, 1 / 8f);
            celAnimationPlayer = new CelAnimationPlayer();
        }
Exemplo n.º 2
0
        internal void LoadContent(ContentManager Content)
        {
            _texture = Content.Load <Texture2D>(_textureName);
            Texture2D brokenTexture = Content.Load <Texture2D>("Poof");

            brokenAnimationSequence = new CelAnimationSequence(brokenTexture, 16, 1 / 16f);
            celAnimationPlayer      = new CelAnimationPlayer();
        }
Exemplo n.º 3
0
 internal void Initialize(Vector2 position, Rectangle gameBoundingBox)
 {
     this.position        = position;
     this.gameBoundingBox = gameBoundingBox;
     dimensions           = new Vector2(32, 28);
     state           = State.Idle;
     animationPlayer = new CelAnimationPlayer();
 }