GetY() public method

public GetY ( int offset, int w, int multi ) : int
offset int
w int
multi int
return int
Ejemplo n.º 1
0
        private Xy GetXy(int offset, int desl, int multi = 1)
        {
            offset -= 0x8010;
            var ppu = new Ppu(TvFormat.Ntsc, new PaletteFormat(), null);

            var w = 128*multi;

            return new Xy
                       {
                           X = ppu.GetX(offset, desl, multi),
                           Y = ppu.GetY(offset, w, multi)
                       };
        }