Ejemplo n.º 1
0
        public Map(World world, int width, int height)
        {
            this.Width = width;
            this.Height = height;

            for (int i = 0; i < 4; i++)
            {
                this.drawObjects.Add(new List<IDraw>());
            }

            Vertices mapBounds = new Vertices()
                            {
                                Vector2.Zero,
                                new Vector2(0, this.Height),
                                new Vector2(this.Width, this.Height),
                                new Vector2(this.Width, 0)
                            };

            BodyFactory.CreateLoopShape(world, mapBounds.ToSimUnits()).Friction = 1f;
        }