示例#1
0
    public void Draw()
    {
        _screen.ColumnOrderSprite();
        //_screen.RowOrderSprite();

        // air supply
        for (int x = 0; x < 10; x++)
        {
            _screen.SetAttribute(x, 17, 7, 2);
        }

        for (int x = 10; x < 32; x++)
        {
            _screen.SetAttribute(x, 17, 7, 4);
        }


        byte[] airBlock = { 0, 0, 255, 255, 255, 255, 0, 0 };

        var airSupplyLength = _data.AirSupply.Length;
        var airHead         = _data.AirSupply.Tip;

        for (int x = 0; x < airSupplyLength; x++)
        {
            _screen.DrawSprite(x + 4, 17, 1, 1, airBlock);
        }

        byte[] airTipBlock = new byte[] { 0, 0, (byte)airHead, (byte)airHead, (byte)airHead, (byte)airHead, 0, 0 };
        _screen.DrawSprite(4 + airSupplyLength, 17, 1, 1, airTipBlock);

        _screen.PrintMessage(0, 17, "AIR");
    }
    public void Draw()
    {
        // room title
        for (int x = 0; x < 32; x++)
        {
            _screen.SetAttribute(x, 16, 0, 6);
        }

        _screen.PrintMessage(0, 16, _data.RoomName);
    }
    public void Draw()
    {
        _screen.ColumnOrderSprite();
        //_screen.RowOrderSprite();

        // Score
        for (int x = 0; x < 32; x++)
        {
            _screen.SetAttribute(x, 19, 6, 0);
        }

        //screen.PrintMessage(0, 19, string.Format(ScoreFormat, hiScore, score));
        string playerScore = string.Format(ScoreFormat, _data.HiScore, _data.Score);

        _screen.PrintMessage(0, 19, playerScore);
        // /Score
    }