示例#1
0
        static void Run2D()
        {
            // Draw some debug output
            FontSet.Standard.DrawColoredText("^0(Debug)Position: " + ThePlayer.Position.ToString() + "\n" + gFPS, new Location(0, 0, 0));
            // Draw the quickbar
            int center = Window.Width / 2;

            Renderer.RenderItem(GetItemForSlot(QuickBarPos - 2), new Location(center - (32 + 32 + 32 + 3), Window.Height - (32 + 16), 0), 32);
            Renderer.RenderItem(GetItemForSlot(QuickBarPos - 1), new Location(center - (32 + 32 + 2), Window.Height - (32 + 16), 0), 32);
            Renderer.RenderItem(GetItemForSlot(QuickBarPos + 1), new Location(center + (32 + 1), Window.Height - (32 + 16), 0), 32);
            Renderer.RenderItem(GetItemForSlot(QuickBarPos + 2), new Location(center + (32 + 32 + 2), Window.Height - (32 + 16), 0), 32);
            Renderer.RenderItem(GetItemForSlot(QuickBarPos), new Location(center - (32 + 1), Window.Height - 64, 0), 64);
            // Draw the console
            UIConsole.Draw();
        }