You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
734 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Otter;
using _1869_Remake;
namespace _1869_Remake.Entities
{
public class AnimatingEntity : Entity
{
enum Animation
{
BackGround
}
Spritemap<Animation> spritemap = new Spritemap<Animation>(Assets.SPRITESHEET_MEER, 640, 480);
public AnimatingEntity(float x, float y) : base(x, y)
{
spritemap.Add(Animation.BackGround, "0,1,2,3,4,5,6,7,8,9,10,11", 8);
spritemap.Play(Animation.BackGround);
AddGraphic(spritemap);
}
}
}