public override void Initialize() { note = new GameSprite(fileName); note.Origin = new Vector2(25, 25); note.Translate(position); note.CreateBoundingRect(50, 50, true); note.CanDraw = false; AddChild(note); base.Initialize(); }
public override void Initialize() { block = new GameSprite("level1\\block"); block.Origin = new Vector2(0, 25); block.CreateBoundingRect(50, 50, new Vector2(0, -25), false); block.Scale(scale); block.Translate(position); block.CanDraw = false; AddChild(block); noteIn = new Note(position, "level1\\note"); AddChild(noteIn); noteOut = new Note(position + scale * new Vector2(50, 0), "level1\\noteend"); AddChild(noteOut); base.Initialize(); }