public SpriteInfoFromPOV(SpriteInfo s) { Sprite = s; }
public PortalInfo() { this.View = new ViewEngineBase(Texture64.SizeConstant, Texture64.SizeConstant); this.Frame = new Bitmap(new BitmapData(Texture64.SizeConstant, Texture64.SizeConstant, true, 0x0)); this.Sprite = new SpriteInfo { Frames = new[] { this.Frame }, Range = 0.3 }; Color = 0xff; }
public SpriteInfo CreateWalkingDummy(Texture64[] Stand, params Texture64[][] Walk) { var s = new SpriteInfo { Position = new Point { x = EgoView.ViewPositionX, y = EgoView.ViewPositionY }, Frames = Stand, Direction = EgoView.ViewDirection }.AddTo(EgoView.Sprites); if (Walk.Length > 0) (200).AtInterval( t => { s.Frames = Walk[t.currentCount % Walk.Length]; } ); return s; }