public SpriteTestState() { var resources = TestGame.Resources; _instructions = new AeText("press space to go to spritetest", resources.FontGame); _instructions.Transform.X = 50; _instructions.Transform.Y = 50; AddEntity(_instructions); _sprite = new AeSprite(); _sprite2 = new AeSprite(); _sprite.Animator.Add("idle", new AeAnimation("player_ship_ethervoyager", _sprite.Animator, new AeAnimationFrame[] { new AeAnimationFrame(0, 0, 64, 64, 100) })); _sprite.Transform.X = 50; _sprite.Transform.Y = 50; _sprite.SizeX = 64; _sprite.SizeY = 64; _sprite.Transform.SetupDebugVizualization(); _sprite.SetupDebugVizualization(); _sprite2.Animator.Add("idle", new AeAnimation("player_ship_ethervoyager", _sprite2.Animator, new AeAnimationFrame[] { new AeAnimationFrame(0, 0, 64, 64, 100) })); _sprite2.Transform.X = 150; _sprite2.Transform.Y = 150; _sprite2.SizeX = 64; _sprite2.SizeY = 64; _sprite2.Transform.RotationCenter = new Vector2(0.5f, 0.5f); _sprite2.Transform.SetupDebugVizualization(); _sprite2.SetupDebugVizualization(); AddEntity(_sprite); AddEntity(_sprite2); }
public EntryState() { var resources = TestGame.Resources; _instructions = new AeText("press space to go to spritetest", resources.FontGame); _instructions.Transform.X = 50; _instructions.Transform.Y = 50; AddEntity(_instructions); }
public AeSpriteDebugVizualizer(AeSprite sprite) { _sprite = sprite; DebugColor = new AeColor(Color.Red); // we need to make some kind of resource injection interface to pass into the engine :( _debugTransformText = new AeText("debugTransform", Engine.DebugResources.DebugFont); }
public AeButton() { BoundingBox.X = 0; BoundingBox.Y = 0; BoundingBox.Width = 64; BoundingBox.Height = 24; _drawTexture = Engine.TextureManager.GetFillTexture(); _buttonTextControl = new AeText("test", Engine.DebugResources.DebugFont); AddChild(_buttonTextControl); }