Beispiel #1
0
        public void Initialize(Texture2D playerTexture, Texture2D barsTexture, Package package, Vector2 position)
        {
            BarsTexture = barsTexture;
            PlayerTexture = playerTexture;

            Health = 100;
            Mana = 100;
            Speed = 4f;
            Name = "Firebolt";
            Inventory = new Inventory();

            // Animation
            Animation = new Animations(package.LocalString("C:\\blueprint\\player.xml", false));
            Movement = new Movement(position, 32, 44);
        }
Beispiel #2
0
 public NpcRace(string name, Texture2D sprite, string xml_animation)
 {
     Name = name;
     Texture = sprite;
     Animation = new Animations(xml_animation);
 }