public void Draw()
    {
        _screen.RowOrderSprite();

        foreach (var g in _mobs)
        {
            if (g.Attribute == 0)
            {
                continue;
            }

            byte[] graphic = _data.GuardianGraphics[g.Frame];

            _screen.FillAttribute(g.X, g.Y, 2, 2, g.Attribute.GetInk(), g.Attribute.GetPaper());
            _screen.DrawSprite(g.X, g.Y, 2, 2, graphic);
        }
    }
示例#2
0
    public void Draw()
    {
        _screen.ColumnOrderSprite();
        //_screen.RowOrderSprite();

        for (int py = 0; py < 2; py++)
        {
            for (int px = 0; px < 2; px++)
            {
                _screen.SetAttribute(_data.Portal.X + px, _data.Portal.Y + py, _data.Portal.Attr);
            }
        }

        _screen.RowOrderSprite();
        _screen.DrawSprite(_data.Portal.X, _data.Portal.Y, 2, 2, _data.Portal.Shape);

        _screen.ColumnOrderSprite();
    }
示例#3
0
    public void Draw()
    {
        //throw new NotImplementedException();

        _screen.RowOrderSprite();

        byte[] graphic = _player.Frames[_player.Frame];

        int attr = _data.Attributes[_player.Y * 32 + _player.X];

        attr &= 0xF8; // 11111000
        //attr |= _player.Attribute.GetInk();
        attr |= 7;    // always white

        //screen.SetAttribute(key.Position.X, key.Position.Y, key.Attr, 0, true, false);
        Com.SloanKelly.ZXSpectrum.ZXAttribute attribute = new Com.SloanKelly.ZXSpectrum.ZXAttribute((byte)attr);

        _screen.FillAttribute(_player.X, _player.Y, 2, 2, attribute);
        _screen.DrawSprite(_player.X, _player.Y, 2, 2, graphic);
    }