Ejemplo n.º 1
0
        public override void render(Screen screen)
        {
            screen.clear(0);

            int h = 2;
            int w = 13;
            int titleColor = ColorHelper.get(0, 010, 131, 551);
            int xo = (screen.w - w * 8) / 2;
            int yo = 24;
            for (int y = 0; y < h; y++)
            {
                for (int x = 0; x < w; x++)
                {
                    screen.render(xo + x * 8, yo + y * 8, x + (y + 6) * 32, titleColor, 0);
                }
            }

            for (int i = 0; i < 3; i++)
            {
                string msg = options[i];
                int col = ColorHelper.get(0, 222, 222, 222);
                if (i == selected)
                {
                    msg = "> " + msg + " <";
                    col = ColorHelper.get(0, 555, 555, 555);
                }
                Font.draw(msg, screen, (screen.w - msg.Length * 8) / 2, (8 + i) * 8, col);
            }

            Font.draw("(Arrow keys,X and C)", screen, 0, screen.h - 8, ColorHelper.get(0, 111, 111, 111));
        }
Ejemplo n.º 2
0
        public override void render(Screen screen)
        {
            screen.clear(0);

            Font.draw("About Minicraft", screen, 2 * 8 + 4, 1 * 8, ColorHelper.get(0, 555, 555, 555));
            Font.draw("Minicraft was made", screen, 0 * 8 + 4, 3 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("by Markus Persson", screen, 0 * 8 + 4, 4 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("For the 22'nd ludum", screen, 0 * 8 + 4, 5 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("dare competition in", screen, 0 * 8 + 4, 6 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("december 2011.", screen, 0 * 8 + 4, 7 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("it is dedicated to", screen, 0 * 8 + 4, 9 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("my father. <3", screen, 0 * 8 + 4, 10 * 8, ColorHelper.get(0, 333, 333, 333));
        }
Ejemplo n.º 3
0
        public override void render(Screen screen)
        {
            screen.clear(0);

            Font.draw("HOW TO PLAY", screen, 4 * 8 + 4, 1 * 8, ColorHelper.get(0, 555, 555, 555));
            Font.draw("Move your character", screen, 0 * 8 + 4, 3 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("with the arrow keys", screen, 0 * 8 + 4, 4 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("press C to attack", screen, 0 * 8 + 4, 5 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("and X to open the", screen, 0 * 8 + 4, 6 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("inventory and to", screen, 0 * 8 + 4, 7 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("use items.", screen, 0 * 8 + 4, 8 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("Select an item in", screen, 0 * 8 + 4, 9 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("the inventory to", screen, 0 * 8 + 4, 10 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("equip it.", screen, 0 * 8 + 4, 11 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("Kill the air wizard", screen, 0 * 8 + 4, 12 * 8, ColorHelper.get(0, 333, 333, 333));
            Font.draw("to win the game!", screen, 0 * 8 + 4, 13 * 8, ColorHelper.get(0, 333, 333, 333));
        }