Beispiel #1
0
        public static void Load(string MapName)
        {
            MapTex = ResMgr.LoadTexture(MapName);

            Width  = MapTex.width;
            Height = MapTex.height;

            X = -(Width / 2);
            Y = -(Height / 2);
        }
Beispiel #2
0
 public GameUnit(string UnitName, Vector2 Position)
 {
     this.Position      = Position;
     CanLinkEnergy      = false;
     UpdateInterval     = 1;
     UnitTex            = ResMgr.LoadTexture(UnitName);
     Name               = UnitName;
     Destroyed          = false;
     DrawColor          = Color.WHITE;
     Pickable           = true;
     Health             = 100;
     LightningOnDestroy = false;
 }