Example #1
0
        private void Fire(MyShip ship)
        {
            MyBullet b = new MyBullet();

            b.pos = ship.pos;

            bulletList.AddLast(b);
        }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ship       = new MyShip();
            ship.pos.X = 100;
            ship.pos.Y = 300;

            MyEnemy enemy = new MyEnemy();

            enemy.pos.X = 200;
            enemy.pos.Y = 10;
            enemyList.AddLast(enemy);

            timer1.Start();
        }