示例#1
0
 // Initialize the various game screens and create the player with the inputed name
 public string init(string name)
 {
     Player = new Player(this, 0, 0, name, sprEntities[EntitySpriteId.Warrior]);
     newMainRoom();
     Player.moveTo(new Vector2(0, (TileMap.Height - 2)  * TileMap.SPRITE_SIZE));
     return name;
 }
示例#2
0
 public void Action(Player p)
 {
     if (Item != null && p != null) {
         Item.UseFunc(p, Item);
     }
 }