示例#1
0
        // Fields

        // Methods
        public override void game_start()
        {
            Mouse.Mode    = eModePointer;
            Mouse.Visible = false;
            DynamicSprite font = DynamicSprite.CreateFromExistingSprite(13);

            AzureItalicFont.CreateFromSprite(font, 13, 13, 0, 126, null, null);
            font.Delete();
            font = DynamicSprite.CreateFromExistingSprite(22);
            PurpleItalicFont.CreateFromSprite(font, 13, 13, 0, 126, null, null);
            font.Delete();
            font = DynamicSprite.CreateFromExistingSprite(14);
            int last  = 126;
            int total = last + 1;

            int[] offs   = new int[total];
            int[] widths = new int[total];
            int   i      = 0;

            for (i = 0; i < total; i += 1)
            {
                offs[i] = 0;
            }
            for (i = 0; i < total; i += 1)
            {
                widths[i] = 28;
            }
            offs['t']    = 3;
            offs['!']    = 9;
            offs['`']    = 9;
            offs['.']    = 9;
            offs[',']    = 9;
            offs['I']    = 9;
            offs['i']    = 9;
            offs['j']    = 0;
            offs['l']    = 9;
            offs[':']    = 9;
            offs[';']    = 9;
            offs['|']    = 9;
            widths['t'] -= (3 + 7) - 4;
            widths['!'] -= 18 - 4;
            widths['`'] -= 18 - 4;
            widths['.'] -= 18 - 4;
            widths[','] -= 18 - 4;
            widths['I'] -= 18 - 4;
            widths['i'] -= 18 - 4;
            widths['j'] -= 9 - 4;
            widths['l'] -= 18 - 4;
            widths[':'] -= 18 - 4;
            widths[';'] -= 18 - 4;
            widths['|'] -= 18 - 4;
            SilverFont.CreateFromSprite(font, 32, 34, 0, last, offs, widths);
            font.Delete();
            SetDefaultOptions();
            LoadOptions();
        }