Ejemplo n.º 1
0
 public Logic(Rhetris main)
 {
     _parent = main;
     Blocks = new uint[main.Width, main.Height];
     Start = new Point(_parent.Width/2, 2);
     CreateFigures();
 }
Ejemplo n.º 2
0
 public Drawer(Rhetris main, uint[,] gamefield)
 {
     _parent = main;
     _gamefield = gamefield;
     _graphicsManager = new GraphicsDeviceManager(_parent)
     {
         PreferredBackBufferWidth = Blockwidth*(_parent.Width + 6),
         PreferredBackBufferHeight = Blockheight*(_parent.Height - 2),
     };
 }
Ejemplo n.º 3
0
 static void Main()
 {
     using (var game = new Rhetris())
         game.Run();
 }
Ejemplo n.º 4
0
 public Audio(Rhetris parent)
 {
     Parent = parent;
 }