Esempio n. 1
0
        public override void Init()
        {
            statsConsole = new RLConsole(statsConsoleRect.Size.X, statsConsoleRect.Size.Y);
            worldConsole = new RLConsole(worldConsoleRect.Size.X, worldConsoleRect.Size.Y);

            curPlayer = new Player((char)2, Vector.One * 10, RLColor.White);/*new RLColor(0.4f, 0.4f, 0.4f));*/
            //var enemy = new TestEnemy((char)1, Vector.One * 15, RLColor.White);

            mainHud = new Hud(curPlayer);

            mainWorld = new World();

            testServer = new Server();
            testServer.Init();
        }
Esempio n. 2
0
        public override void Init()
        {
            statsConsole = new RLConsole(statsConsoleRect.Size.X, statsConsoleRect.Size.Y);
            worldConsole = new RLConsole(worldConsoleRect.Size.X, worldConsoleRect.Size.Y);

            //var player = new Player((char)2, Vector.One * 10, RLColor.White);/*new RLColor(0.4f, 0.4f, 0.4f));*/
            //var enemy = new TestEnemy((char)1, Vector.One * 15, RLColor.White);

            mainHud = new Hud(null);

            mainWorld = new World();

            client = new Client();
            client.Init();

            Program.isServer = false;
        }