示例#1
0
        public GameEngine(int w, int h)
        {
            player = new Player();
            weapon = new Weapon(52, 54, -52, 54);
            weapon.standing_dt = 0.25f;

            player.bound.Height = 50;
            player.bound.Width = 50;

            projectiles = new List<Projectile>();
            zombies = new List<Zombie>();

            width = w;
            height = h;

            tm = new TextureManager();
        }
示例#2
0
 public void switchWeapons(Weapon w)
 {
     currentWeapon = w;
 }