losetas cercado

This commit is contained in:
serxoz 2022-05-30 21:27:09 +02:00
parent c1c1eece39
commit bf94860af3
12 changed files with 9 additions and 0 deletions

7
TODO
View File

@ -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.

View File

@ -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

BIN
img/valla-fondo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 902 B

BIN
img/valla-frente.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

BIN
img/valla-inf-dta.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
img/valla-inf-ida.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
img/valla-lat-dta.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

BIN
img/valla-lat-ida.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

BIN
img/valla-rota-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
img/valla-rota-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
img/valla-sup-dta.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
img/valla-sup-ida.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B