예제 #1
0
파일: NPC.cs 프로젝트: AM5R56/snailempire
 public NPC(GraphicsDevice theDevice, ContentManager theLoader,string npc_sheet,string [,] temp,double pace)
 {
     directions = temp;
     speed = pace;
     current_instruction = 0;
     final_instruction = directions.GetUpperBound(0);
     mNPCTexture = theLoader.Load<Texture2D>(npc_sheet) as Texture2D;
     mNPC = new Sprite.Sprite(new Rectangle(20, 500, 50, 100), new Rectangle(0, 0, 90, 220));
     mNPC.Visible = true;
 }
예제 #2
0
 public Player(GraphicsDevice theDevice, ContentManager theLoader)
 {
     this.mWizardTexture = theLoader.Load<Texture2D>("./graphics/WizardSheet") as Texture2D;
     this.mWizard = new Sprite.Sprite(new Rectangle(this.coords[0], this.coords[1], 33, 82), new Rectangle(0, 0, 50, 119));
     this.mWizard.Visible = true;
 }