コード例 #1
0
        private void drawPlayer(GameGraphic g, MapPoint p, int sx, int sy)
        {
            var map = gameWorld.gameData.character.map.Values;

            if (map.Any(o => o.location == p))
            {
                g.drawRectangle(new SpriteRectangle()
                {
                    position = new Point(sx, sy),
                    color    = Color.Red,
                    isFill   = true,
                    size     = new Size()
                    {
                        Width  = tileWidth,
                        Height = tileHeight
                    }
                });
            }
        }
コード例 #2
0
        private void drawCursor(GameGraphic g, int sx, int sy)
        {
            selector.position = new Point(sx, sy);

            g.drawRectangle(selector);
        }