Пример #1
0
 public Player(GameWorld game)
     : base(game)
 {
     image = new Bitmap("Graphics\\Hrac.bmp");
     this.Y = MAX_Y - image.Height;
     this.X = (MAX_X - image.Width) / 2;
 }
Пример #2
0
 public Enemy(GameWorld game, string path)
     : base(game)
 {
     Bitmap b = new Bitmap(path);
     b.MakeTransparent(Color.Black);
     image = b;
 }
Пример #3
0
 public Projectile(GameWorld game)
     : base(game)
 {
     image = new Bitmap("Graphics\\Strela.bmp");
 }
Пример #4
0
 private void StartGame()
 {
     this.BackColor = Color.Black;
     GameWorld game = new GameWorld(this);
 }
Пример #5
0
 public GameObject(GameWorld game)
 {
     gameWorldInstance = game;
 }