public SpaceChickens() { InitializeComponent(); dbmp = new DirectBitmap(pbxGame.Width, pbxGame.Height); graphics = Graphics.FromImage(dbmp.Bitmap); gsm = new GameScreenManager(graphics, pbxGame.Width, pbxGame.Height); pbxGame.Image = dbmp.Bitmap; graphics.TranslateTransform(pbxGame.Width >> 1, pbxGame.Height >> 1); }
public GameScreen(GameScreenManager _gsm) { gsm = _gsm; gsCount++; }
public StartMenu(GameScreenManager _gsm) : base(_gsm) { background = new Bitmap(@"Media\Sprites\background01.png"); }