Ejemplo n.º 1
0
        public bool IsCollided(Player player, Obstacle obstacle)
        {
            var intersectionDeter = new IntersectionDeterminant();

            if (intersectionDeter.IsIntersected(player.Form, obstacle.Form))
            {
                return true;
            }
            return false;
        }
Ejemplo n.º 2
0
        public void Draw(Room room, Obstacle obstacle)
        {
            GL.BindTexture(TextureTarget.Texture2D, _textures[obstacle.Texture]);

            new RectangleDrawer().Draw(obstacle.Form);
        }
Ejemplo n.º 3
0
        public void Draw(Room room, Obstacle obstacle)
        {
            GL.BindTexture(TextureTarget.Texture2D, _textures[obstacle.Texture]);

            new RectangleDrawer().Draw(obstacle.Form);
        }