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()
    {
        //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);
    }
示例#3
0
 public void FloodFill(int paperColour)
 {
     screen.FillAttribute(0, 0, 32, 16, 7, paperColour);
 }