Exemplo n.º 1
0
        public static Entity Particle(Entity entity, World world, Vector2 position)
        {
            //SpriteComponent sprite = new SpriteComponent("particle");
            PositionComponent pos = new PositionComponent(position);
            //ParticleComponent particle = new ParticleComponent(pos, world, sprite);
            //sprite.Tint = Color.Yellow;
            //particle.Size = 5;

            entity.Add(pos);
            return entity;
        }
Exemplo n.º 2
0
 public static Entity Title(Entity entity, World world, Vector2 position)
 {
     entity.Add(new GUIRenderableComponent("title"),
         new PositionComponent(position));
     return entity;
 }
Exemplo n.º 3
0
 public static Entity NepetaSprite(Entity entity, World world, Vector2 position)
 {
     entity.Add(new PositionComponent(position), new SpriteComponent("l"));
     return entity;
 }