public Submarine(int setWeapns) { NumOfWeapons = setWeapns; Image = SwinGame.LoadBitmap(Directory.GetCurrentDirectory() + @"\Resources\images\Submarine.png"); PositionX = 20; PositionY = new System.Random().Next(0, 370) + 200; //Generate Random Speed _speed = new System.Random().Next(1, 5); //Generate Timer for Torpedo _timer = new Timer(); _timer.Start(); if (new System.Random().Next(1, 100) < 50) { _headLeft = true; PositionX = (short)(SwinGame.WindowWidth("GameMain") * 0.9); Image = SwinGame.LoadBitmap(Directory.GetCurrentDirectory() + @"\Resources\images\Submarine2.png"); } SwinGame.ColorTransparent(); }