public Sprite_Scene_Test() { sprite = new SpriteAnimation( "Application/Assets/images/unified_texture.png", "Application/Assets/images/unified_texture.xml"); AddChild(sprite); sprite.PlayAnimation(); }
public PlayerNode() { warmSprite = new SpriteAnimation ( "Application/Assets/images/unified_texture.png", "Application/Assets/images/unified_texture.xml"); warmSprite.sprite.Center = new Sce.PlayStation.Core.Vector2 (0.5f, 1.0f); this.position = 272; warmSprite.Position = new Vector2 (300, this.position); warmSprite.SetRotation (90); warmSprite.type = SpriteAnimation.AnimationType.Serial; warmSprite.PlayAnimation (); AddChild (warmSprite); pupaSprite = new SpriteAnimation ( "Application/Assets/images/unified_sanagi.png", "Application/Assets/images/unified_sanagi.xml"); warmSprite.SetRotation (90); Scheduler.Instance.ScheduleUpdateForTarget (this, 2, false); }
private void generateSprite(float position, int index) { sprite = new SpriteAnimation ("/Application/Assets/images/unified_fireB.png", "Application/Assets/images/unified_fireB.xml"); sprite.sprite.Center = new Sce.PlayStation.Core.Vector2(0.5f, 0.5f); sprite.Position = new Vector2(position, 272); sprite.SetRotation(90); sprite.type = SpriteAnimation.AnimationType.Pingpong; sprite.PlayAnimation(); }