Exemplo n.º 1
0
		static void Main()
		{
			using (var game = new REALGame())
			{
				game.Run();
			}
		}
Exemplo n.º 2
0
		static void Main()
		{
			var testEntity = new Entity();
			testEntity.AttachComponent(new Transform());
			testEntity.AttachComponent(new SpriteRenderer("box"));
			var scene = new EntityWorld();
			var cameraEntity = new CameraP();
			scene.AddEntity(testEntity);
			scene.AddEntity(cameraEntity);
			scene.MainCamera = cameraEntity.GetComponent<Camera>();
			using (var game = new REALGame(800,480,false,scene))
			{
				game.Run();
			}
		}
Exemplo n.º 3
0
		private void RunGame()
		{
			var realGame = new REALGame(800,480,false);
			var gameThread = new Thread(() => realGame.Run());
			gameThread.Start();
		}