コード例 #1
0
        private static unsafe void RenderPkmn(uint *bmpAddress, int bmpWidth, int bmpHeight, PkmnPosition pos, bool ally)
        {
            SpritedBattlePokemon sPkmn = pos.SPkmn;
            AnimatedImage        img   = sPkmn.AnimImage;
            int width  = img.Width;
            int height = img.Height;

            if (ally)
            {
                width  *= 2;
                height *= 2;
            }
            img.DrawSizedOn(bmpAddress, bmpWidth, bmpHeight,
                            RenderUtils.GetCoordinatesForCentering(bmpWidth, width, pos.MonX), RenderUtils.GetCoordinatesForEndAlign(bmpHeight, height, pos.MonY), width, height);
        }