Example #1
0
        // Start is called before the first frame update
        void Start()
        {
            world = new WorldBuilder(new Vector2(5, 5));

            mapper      = new TextureAtlasMapper();
            currentGame = this;
            setUpDebug();
            setUpCamera();
            world.startPosition = new Vector3(10, 0, 10);
            world.Generate();
            world.startPosition.y         += 20;
            Camera.main.transform.position = world.startPosition;
            Camera.main.gameObject.AddComponent <FirstPersonCamera>();
        }