diff --git a/TODO b/TODO index 11d6885..c1c7839 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,10 @@ +- colisiós entre entidades - muros - comprobación perímetro cercado (ovella dentro?) - puntuación e tempo en completar + + +Ahora mesmo comprobo si dúas caixas se solapan, así teño colisiós. +Vai ser mellor formar o cercado coas pezas individuais, así comprobaría a colisión +con cada unha das pezas e será máis fácil deixar a abertura. + diff --git a/entidades/cercado.lua b/entidades/cercado.lua index 96f6eb5..1210141 100644 --- a/entidades/cercado.lua +++ b/entidades/cercado.lua @@ -7,10 +7,12 @@ function Cercado:new(x, y) self.x = x-self.width/2 self.y = y-self.height/2 self.speed = 2 + self.proba = love.graphics.newImage("img/valla-frente.png") return self end function Cercado:draw() love.graphics.draw(self.sprite, self.x, self.y) + love.graphics.draw(self.proba, self.x, self.y) end diff --git a/img/valla-fondo.png b/img/valla-fondo.png new file mode 100644 index 0000000..ce51e29 Binary files /dev/null and b/img/valla-fondo.png differ diff --git a/img/valla-frente.png b/img/valla-frente.png new file mode 100644 index 0000000..4de21a1 Binary files /dev/null and b/img/valla-frente.png differ diff --git a/img/valla-inf-dta.png b/img/valla-inf-dta.png new file mode 100644 index 0000000..5b8835c Binary files /dev/null and b/img/valla-inf-dta.png differ diff --git a/img/valla-inf-ida.png b/img/valla-inf-ida.png new file mode 100644 index 0000000..7c59c7f Binary files /dev/null and b/img/valla-inf-ida.png differ diff --git a/img/valla-lat-dta.png b/img/valla-lat-dta.png new file mode 100644 index 0000000..08523fd Binary files /dev/null and b/img/valla-lat-dta.png differ diff --git a/img/valla-lat-ida.png b/img/valla-lat-ida.png new file mode 100644 index 0000000..42af809 Binary files /dev/null and b/img/valla-lat-ida.png differ diff --git a/img/valla-rota-1.png b/img/valla-rota-1.png new file mode 100644 index 0000000..b9d5705 Binary files /dev/null and b/img/valla-rota-1.png differ diff --git a/img/valla-rota-2.png b/img/valla-rota-2.png new file mode 100644 index 0000000..d1dbfd0 Binary files /dev/null and b/img/valla-rota-2.png differ diff --git a/img/valla-sup-dta.png b/img/valla-sup-dta.png new file mode 100644 index 0000000..e0368e6 Binary files /dev/null and b/img/valla-sup-dta.png differ diff --git a/img/valla-sup-ida.png b/img/valla-sup-ida.png new file mode 100644 index 0000000..f2cc6da Binary files /dev/null and b/img/valla-sup-ida.png differ