Ejemplo n.º 1
0
        public GameWindow()
        {
            InitializeComponent();

            SetStyle(ControlStyles.OptimizedDoubleBuffer |
                     ControlStyles.AllPaintingInWmPaint |
                     ControlStyles.UserPaint, true);
            UpdateStyles();
            logger = new LoggerClass();
        }
Ejemplo n.º 2
0
 public Player(LoggerClass logger, int x, int y)
 {
     this.logger = logger;
     IsGameOver  = false;
     Score       = 0;
     X           = x;
     Y           = y;
     texture     = Resources.gamerTexture;
     Width       = texture.Width;
     Height      = texture.Height;
 }