Fish fillets remake https://glitchapp.codeberg.page/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
fish-fillets-remake/game/logic/drawassets.lua

1717 lines
159 KiB

function drawassetsmap(block,x,y,tileSize)
-- map tile
-- beware of -1
if palette==1 then love.graphics.setColor(cs1tile1)
elseif palette==2 then love.graphics.setColor(cs2tile1)
elseif palette==3 then love.graphics.setColor(cs3tile1)
elseif palette==4 then love.graphics.setColor(cs4tile1)
elseif palette==5 then love.graphics.setColor(cs5tile1)
elseif palette==6 then love.graphics.setColor(cs6tile1)
end
if palette==7 then love.graphics.setColor(cs7tile1)
love.graphics.rectangle ('line', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize)
else
if not(palette==1) then
love.graphics.rectangle ('fill', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize)
--love.graphics.rectangle ('line', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize)
end
end
--love.graphics.setColor(0.6, 0.58, 0.2)
if palette==1 then love.graphics.setColor(cs1tile2)
elseif palette==2 then love.graphics.setColor(cs2tile2)
elseif palette==3 then love.graphics.setColor(cs3tile2)
elseif palette==4 then love.graphics.setColor(cs4tile2)
elseif palette==5 then love.graphics.setColor(cs5tile2)
elseif palette==6 then love.graphics.setColor(cs6tile2)
end
if palette==7 then love.graphics.setColor(cs7tile1)
love.graphics.rectangle ('line', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize-15)
else
--if assets==1 or nLevel>1 then
if not(palette==1) then
love.graphics.rectangle ('fill', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize-15)
--love.graphics.rectangle ('line', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize-15)
end
end
--love.graphics.setColor(0,0,0)
if debugmode=="yes" and palette==1 then
love.graphics.setColor(0,0,0)
--love.graphics.print("#",(x-1)*tileSize, (y-1)*tileSize) end
love.graphics.print ((x)..' '..(y), (x-1)*tileSize, (y-1)*tileSize) end
end
function drawexitmap()
if not(palette==1) then
love.graphics.rectangle ('line', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize-15)
end
end
function drawbordermap(block,x,y,tileSize)
--dream:draw(cube1, 10 , 10, 10,1,1) -- not working
-- map tile
if palette==1 then love.graphics.setColor(cs1border1)
elseif palette==2 then love.graphics.setColor(cs2border1)
elseif palette==3 then love.graphics.setColor(cs3border1)
elseif palette==4 then love.graphics.setColor(cs4border1)
elseif palette==5 then love.graphics.setColor(cs5border1)
elseif palette==6 then love.graphics.setColor(cs6border1)
end
if palette==7 then love.graphics.setColor(cs6border1)
love.graphics.rectangle ('line', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize)
else
if not(palette==1) then
love.graphics.rectangle ('fill', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize)
--love.graphics.rectangle ('line', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize)
end
--dream:draw(cube1, (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize)
end
if threeD==true then
--dream:draw(cube1, 1, 1,-60, 10,10,10)
end
if palette==1 then love.graphics.setColor(cs1border2)
elseif palette==2 then love.graphics.setColor(cs2border2)
elseif palette==3 then love.graphics.setColor(cs3border2)
elseif palette==4 then love.graphics.setColor(cs4border2)
elseif palette==5 then love.graphics.setColor(cs5border2)
elseif palette==6 then love.graphics.setColor(cs6border2)
end
if palette==7 then love.graphics.setColor(cs6border1)
love.graphics.rectangle ('line', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize-15)
else
if not(palette==1) then
love.graphics.rectangle ('fill', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize-15)
--love.graphics.rectangle ('line', (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize-15)
--elseif assets==2 and nLevel==1 then
--love.graphics.draw (level1style1, (x-1)*tileSize, (y-1)*tileSize, tileSize, tileSize-15)
end
end
end
function drawgridmap()
if extradebug==true and debugmode=="yes" then
love.graphics.setFont(love.graphics.newFont(20))
love.graphics.setColor(1,1,1)
love.graphics.print("Tilesize :" .. tileSize ,50,100)
love.graphics.print("Gridsize :" .. self.gridWidth .. "x " .. self.gridHeight,50,150)
end
--[[print("Tilesize :" .. tileSize)
print("Gridsize :" .. self.gridWidth .. "x " .. self.gridHeight)
print("=========================================================")--]]
end
function drawobjectsassets(block,x,y,dx,dy,tileSize,i,gridSize,dividx,dividy)
if objectscells=="yes" then
-- beware of -1
if palette==1 then love.graphics.setColor(cs1block)
elseif palette==2 then love.graphics.setColor(cs2block)
elseif palette==3 then love.graphics.setColor(cs3block)
elseif palette==4 then love.graphics.setColor(cs4block)
elseif palette==2 then love.graphics.setColor(1,1,1)
elseif palette==3 then love.graphics.setColor(1,1,1)
elseif palette==4 then love.graphics.setColor(1,1,1)
elseif palette==5 then love.graphics.setColor(cs5block)
elseif palette==6 then love.graphics.setColor(cs6block)
end
if palette==7 then love.graphics.setColor(cs7tile1)
love.graphics.rectangle ('line', (x+dx-1)*tileSize, (y+dy-1)*tileSize, tileSize, tileSize)
else
if not (palette==1) then
if block.heavy then
love.graphics.setColor(0,1,1)
love.graphics.rectangle ('line', (x+dx-1)*tileSize, (y+dy-1)*tileSize, tileSize, tileSize)
else
love.graphics.setColor(0,1,0)
love.graphics.rectangle ('line', (x+dx-1)*tileSize, (y+dy-1)*tileSize, tileSize, tileSize)
end
love.graphics.rectangle ('fill', (x+dx-1)*tileSize+2.5, (y+dy-1)*tileSize+2.5, tileSize-5, tileSize-5)
--elseif not (palette==1) and not (nLevel==60) then love.graphics.rectangle ('fill', (x+dx-1)*tileSize, (y+dy-1)*tileSize, tileSize, tileSize)
end
--if nLevel>1 then
--love.graphics.rectangle ('fill', (x+dx-1)*tileSize, (y+dy-1)*tileSize, tileSize, tileSize)
if nLevel==1 and palette==1 then
--[[if block.name=="chair1" then
love.graphics.rectangle ('fill', (x+dx-1)*tileSize, (y+dy-1)*tileSize, tileSize, tileSize)
end--]]
if i==1 then
if block.name=="chair1" then
if palette==1 then love.graphics.draw (chair1, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, dividx,dividy)
elseif palette==2 then love.graphics.draw (c64chair1, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, 6,5.4)
elseif palette==3 then love.graphics.draw (neschair1, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, 6,5.4)
elseif palette==4 then love.graphics.draw (z80chair1, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, 6,5.4)
--if threeD==true then dream:draw(woodenchair3d, x+dx- threeDcellx+1, -((y+dy)- threeDcelly), threeDcellz,threeDcellwidth-0.5,threeDcellheight-0.5,threeDcelldepth-0.5) end
end
elseif block.name=="chair2" then
if palette==1 then love.graphics.draw (chair2, ((x+dx-1)-3)*tileSize, (y+dy-1)*tileSize,0, dividx,dividy)
elseif palette==2 then love.graphics.draw (c64chair2, ((x+dx-1)-3)*tileSize, (y+dy-1)*tileSize,0, 6,5.4)
elseif palette==3 then love.graphics.draw (neschair2, ((x+dx-1)-3)*tileSize, (y+dy-1)*tileSize,0, 6,5.4)
elseif palette==4 then love.graphics.draw (z80chair2, ((x+dx-1)-3)*tileSize, (y+dy-1)*tileSize,0, 6,5.4)
end
elseif block.name=="steel-pipe-1x81" then
love.graphics.setColor(cs1block)
if palette==1 then love.graphics.draw (pipe1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0, dividx,dividy)
elseif palette==2 then love.graphics.draw (c64pipe1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0, 6,6)
elseif palette==3 then love.graphics.draw (nespipe1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0, 6,6)
elseif palette==4 then love.graphics.draw (z80pipe1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0, 6,6)
end
elseif block.name=="cushion1" then
if palette==1 then love.graphics.draw (cushion1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif palette==2 then love.graphics.draw (c64cushion1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,6,5.4)
elseif palette==3 then love.graphics.draw (nescushion1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,6,5.4)
elseif palette==4 then love.graphics.draw (z80cushion1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,6,5.4)
end
elseif block.name=="table1" then
if palette==1 then love.graphics.draw (table1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif palette==2 then love.graphics.draw (c64table1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,6,5.4)
elseif palette==3 then love.graphics.draw (nestable1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,6,5.4)
elseif palette==4 then love.graphics.draw (z80table1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,6,5.4)
end
end
end
--level 2
elseif nLevel==2 then
if i==1 then
if block.name=="trunk" and palette==1 then
if briefcaseclosed==true and block.name=="trunk" then
love.graphics.draw (briefcase, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif briefcaseclosed==false and block.name=="trunk" then
love.graphics.draw (briefcaseopen, ((x+dx-1))*tileSize, (y-4.2+dy-1)*tileSize,0,dividx/2,dividy/2)
end
end
if block.name=="warning" then if palette==1 then love.graphics.draw (warning, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy) end
elseif block.name=="bottle" then if palette==1 then love.graphics.draw (bottle, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="L" then if palette==1 then love.graphics.draw (L, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="nut" then if palette==1 then love.graphics.draw (hexagonalnut, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="hammer" then if palette==1 then love.graphics.draw (hammer, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="pliers" then if palette==1 then love.graphics.draw (pliers, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="pipehorizontal" then if palette==1 then love.graphics.draw (pipehorizontal, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
end
end
--level 3
elseif nLevel==3 then
if i==1 then
if block.name=="shortpipe1" then if palette==1 then love.graphics.draw (shortpipe1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="shortpipe2" then if palette==1 then love.graphics.draw (shortpipe1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="minipipe" then if palette==1 then love.graphics.draw (minipipe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="pipelonghorizontal" then if palette==1 then love.graphics.draw (pipelonghorizontal, ((x-3+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="booklvl3" then if palette==1 then love.graphics.draw (booklv3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="longpipehorizontal" then if palette==1 then love.graphics.draw (longpipehorizontal, ((x+dx-4))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="apricosemarmelade" then if palette==1 then love.graphics.draw (apricosemarmelade, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="honey" then if palette==1 then love.graphics.draw (honey, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="strawberrymarmelade" then if palette==1 then love.graphics.draw (strawberrymarmelade, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="oillamp" then if palette==1 then love.graphics.draw (oillamp, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="snail" then if palette==1 then love.graphics.draw (snail, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="shell" then if palette==1 then love.graphics.draw (shell, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="coffee" then if palette==1 then love.graphics.draw (coffee, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="plate" then if palette==1 then love.graphics.draw (plate, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
elseif block.name=="axe" then if palette==1 then love.graphics.draw (axe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
--elseif block.name=="" then if palette==1 then love.graphics.draw (, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
--elseif block.name=="" then if palette==1 then love.graphics.draw (, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2) end
end
end
-- level 4
elseif nLevel==4 then
if i==1 then
if block.name=="strangecreature" then
if strangecreatureframe>0 and strangecreatureframe<1 then love.graphics.draw (ostnatec_00, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif strangecreatureframe>1 and strangecreatureframe<2 then love.graphics.draw (ostnatec_01, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif strangecreatureframe>2 and strangecreatureframe<3 then love.graphics.draw (ostnatec_02, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
elseif block.name=="cpipe" then love.graphics.draw (cpipe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="book1" then love.graphics.draw (book1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="book2" then love.graphics.draw (book2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="book3" then love.graphics.draw (book3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="book4" then love.graphics.draw (book4, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="book5" then love.graphics.draw (book5, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="book6" then love.graphics.draw (book6, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="book7" then love.graphics.draw (book7, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="book8" then love.graphics.draw (book8, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="book9" then love.graphics.draw (book9, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="map1" then love.graphics.draw (book9, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="bookbig1" then love.graphics.draw (bookbig1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="booksmall1" then love.graphics.draw (booksmall1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="booksmall2" then love.graphics.draw (booksmall2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="booksmall3" then love.graphics.draw (booksmall3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="bookhoriz1" then love.graphics.draw (bookhoriz1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="bookhoriz2" then love.graphics.draw (bookhoriz2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
end
--level 5
elseif nLevel==5 then
if i==1 then
if block.name=="chair1upside" then love.graphics.draw (chair1upside, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="chair2upside" then love.graphics.draw (chair2upside, ((x+dx-1)-3)*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="table1" then love.graphics.draw (table1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="plant" then love.graphics.draw (plant, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="obj1" then
if crabframe>0 and crabframe<0.25 then love.graphics.draw (plz00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>0.25 and crabframe<0.5 then love.graphics.draw (plz01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>0.5 and crabframe<0.75 then love.graphics.draw (plz02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>0.75 and crabframe<1 then love.graphics.draw (plz03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>1 and crabframe<1.25 then love.graphics.draw (plz04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>1.25 and crabframe<1.5 then love.graphics.draw (plz05, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>1.5 and crabframe<2 then love.graphics.draw (plz06, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
elseif block.name=="snak" then
if snailframe>0 and snailframe<0.5 then love.graphics.draw (snail00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif snailframe>0.5 and snailframe<1 then love.graphics.draw (snail01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif snailframe>1 and snailframe<1.5 then love.graphics.draw (snail02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif snailframe>1.5 and snailframe<2 then love.graphics.draw (snail03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
end
end
--level 6
elseif nLevel==6 then
if i==1 then
--if block.name=="broom" then love.graphics.draw (koste_00, (x-1+dx-1)*tileSize, (y+dy-1)*tileSize,0, dividx/2,dividy/2)
if block.name=="broom" and broommoving==false then love.graphics.setColor(1,1,1,0.85) love.graphics.draw (koste_00, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="broom" and broommoving==true then
if broomframe>0 and broomframe<0.25 then love.graphics.draw (koste_00, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>0.25 and broomframe<0.5 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>0.5 and broomframe<0.75 then love.graphics.draw (koste_02, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>0.75 and broomframe<1 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>1 and broomframe<1.25 then love.graphics.draw (koste_00, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>1.25 and broomframe<1.5 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>1.5 and broomframe<1.75 then love.graphics.draw (koste_02, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>1.75 and broomframe<2 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>2 and broomframe<2.25 then love.graphics.draw (koste_00, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>2.25 and broomframe<2.5 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>2.5 and broomframe<2.75 then love.graphics.draw (koste_02, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>2.75 and broomframe<3 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>3 and broomframe<3.25 then love.graphics.draw (koste_00, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>3.25 and broomframe<3.5 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>3.5 and broomframe<3.75 then love.graphics.draw (koste_02, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>3.75 and broomframe<4 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>4 and broomframe<4.25 then love.graphics.draw (koste_00, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>4.25 and broomframe<4.5 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>4.5 and broomframe<4.75 then love.graphics.draw (koste_02, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>4.75 and broomframe<5 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>5 and broomframe<5.25 then love.graphics.draw (koste_00, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>5.25 and broomframe<5.5 then love.graphics.draw (koste_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif broomframe>5.5 and broomframe<6 then love.graphics.draw (koste_02, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="rock" then love.graphics.draw (rock, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, dividx/2,dividy/2)
elseif block.name=="rock2" then love.graphics.draw (rock2, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, dividx/2,dividy/2)
elseif block.name=="rock3" then love.graphics.draw (rock3, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, dividx/2,dividy/2)
elseif block.name=="rock4" then love.graphics.draw (rock4, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, dividx/2,dividy/2)
elseif block.name=="coal" then love.graphics.draw (coal, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, dividx/2,dividy/2)
elseif block.name=="longpipe" then love.graphics.draw (longpipe, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, dividx/2,dividy/2)
elseif block.name=="wood" then love.graphics.draw (wood, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, dividx/2,dividy/2)
elseif block.name=="wood2" then love.graphics.draw (wood2, (x+dx-1)*tileSize, (y+dy-1)*tileSize,0, dividx/2,dividy/2)
end
end
--level 7
elseif nLevel==7 then
if i==1 then
if block.name=="snak" then
if snailframe>0 and snailframe<0.5 then love.graphics.draw (snail00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif snailframe>0.5 and snailframe<1 then love.graphics.draw (snail01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif snailframe>1 and snailframe<1.5 then love.graphics.draw (snail02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif snailframe>1.5 and snailframe<2 then love.graphics.draw (snail03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
elseif block.name=="matrace" then love.graphics.draw (matrace, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="musla" then love.graphics.draw (musla, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="ocel" then love.graphics.draw (ocel, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="plz_01" then
if crabframe>0 and crabframe<0.25 then love.graphics.draw (plz00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>0.25 and crabframe<0.5 then love.graphics.draw (plz01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>0.5 and crabframe<0.75 then love.graphics.draw (plz02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>0.75 and crabframe<1 then love.graphics.draw (plz03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>1 and crabframe<1.25 then love.graphics.draw (plz04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>1.25 and crabframe<1.5 then love.graphics.draw (plz05, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif crabframe>1.5 and crabframe<2 then love.graphics.draw (plz06, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
end
end
--level 8
elseif nLevel==8 then
if i==1 then
if block.name=="paper" then love.graphics.draw (paper, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="wc" then love.graphics.draw (wc, ((x-5+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe" then love.graphics.draw (pipe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe2" then love.graphics.draw (pipe2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
end
--level 9
elseif nLevel==9 then
if i==1 then
if block.name=="mirror" then love.graphics.draw (mirror, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="kriz" then love.graphics.draw (kriz, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="lahev" then love.graphics.draw (lahev, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="matka_a" then love.graphics.draw (matka_a, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="mirror" then love.graphics.draw (mirror, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="naboj" then love.graphics.draw (naboj, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="peri" then
if periframe>0 and periframe<0.25 then love.graphics.draw (peri00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>0.25 and periframe<0.5 then love.graphics.draw (peri01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>0.5 and periframe<0.75 then love.graphics.draw (peri02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>0.75 and periframe<1 then love.graphics.draw (peri03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>1 and periframe<1.25 then love.graphics.draw (peri04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>1.25 and periframe<1.5 then love.graphics.draw (peri05, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>1.5 and periframe<1.75 then love.graphics.draw (peri06, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>1.75 and periframe<3 then love.graphics.draw (peri07, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>3 and periframe<3.25 then love.graphics.draw (peri06, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>3.25 and periframe<3.5 then love.graphics.draw (peri05, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>3.5 and periframe<3.75 then love.graphics.draw (peri04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>3.75 and periframe<4 then love.graphics.draw (peri03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>4 and periframe<4.25 then love.graphics.draw (peri02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>4.25 and periframe<4.5 then love.graphics.draw (peri01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif periframe>4.5 and periframe<6 then love.graphics.draw (peri00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
mirrorpositionx=x+dx-1
end
end
--level 10
elseif nLevel==10 or nLevel==18 then
if i==1 then
--love.graphics.setColor(1,1,1,0.45)
if block.name=="pipe" then love.graphics.draw (pipe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="cruiseship" then
--left window
if boatwindowframe>0 and boatwindowframe<0.25 then love.graphics.draw (dama00, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>0.25 and boatwindowframe<0.5 then love.graphics.draw (dama01, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>0.5 and boatwindowframe<0.75 then love.graphics.draw (dama02, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>0.75 and boatwindowframe<1 then love.graphics.draw (dama03, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>1 and boatwindowframe<1.25 then love.graphics.draw (dama04, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>1.25 and boatwindowframe<1.5 then love.graphics.draw (dama05, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>1.5 and boatwindowframe<1.75 then love.graphics.draw (dama06, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>1.75 and boatwindowframe<3 then love.graphics.draw (dama07, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>3 and boatwindowframe<3.25 then love.graphics.draw (dama08, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>3.25 and boatwindowframe<3.5 then love.graphics.draw (dama09, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>3.5 and boatwindowframe<3.75 then love.graphics.draw (dama10, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>3.75 and boatwindowframe<4 then love.graphics.draw (dama11, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>4 and boatwindowframe<4.25 then love.graphics.draw (dama12, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>4.25 and boatwindowframe<4.5 then love.graphics.draw (dama13, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>4.5 and boatwindowframe<5 then love.graphics.draw (dama14, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>5 and boatwindowframe<5.25 then love.graphics.draw (frkavec00, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>5.25 and boatwindowframe<5.5 then love.graphics.draw (frkavec01, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>5.5 and boatwindowframe<5.75 then love.graphics.draw (frkavec02, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>5.75 and boatwindowframe<6 then love.graphics.draw (frkavec03, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>6 and boatwindowframe<6.25 then love.graphics.draw (frkavec04, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>6.25 and boatwindowframe<6.5 then love.graphics.draw (frkavec05, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>6.5 and boatwindowframe<7 then love.graphics.draw (frkavec06, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>7 and boatwindowframe<7.25 then love.graphics.draw (kap00, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>7.25 and boatwindowframe<7.5 then love.graphics.draw (kap01, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>7.5 and boatwindowframe<7.75 then love.graphics.draw (kap02, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>7.75 and boatwindowframe<8 then love.graphics.draw (kap03, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>8 and boatwindowframe<8.25 then love.graphics.draw (kap04, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>8.25 and boatwindowframe<8.5 then love.graphics.draw (kap05, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>8.5 and boatwindowframe<8.75 then love.graphics.draw (kap06, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>8.75 and boatwindowframe<9 then love.graphics.draw (kap07, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>9 and boatwindowframe<9.25 then love.graphics.draw (kap08, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>9.25 and boatwindowframe<9.5 then love.graphics.draw (kap09, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>9.5 and boatwindowframe<9.75 then love.graphics.draw (kap10, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>9.75 and boatwindowframe<10 then love.graphics.draw (kap11, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>10 and boatwindowframe<10.25 then love.graphics.draw (kap12, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>10.25 and boatwindowframe<10.5 then love.graphics.draw (kap13, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>10.5 and boatwindowframe<10.75 then love.graphics.draw (kap14, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>10.75 and boatwindowframe<11 then love.graphics.draw (kap15, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>11 and boatwindowframe<11.25 then love.graphics.draw (kap16, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>11.25 and boatwindowframe<11.5 then love.graphics.draw (kap17, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>11.5 and boatwindowframe<12 then love.graphics.draw (kap18, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>12 and boatwindowframe<12.25 then love.graphics.draw (lodnik00, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>12.25 and boatwindowframe<12.5 then love.graphics.draw (lodnik01, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>12.5 and boatwindowframe<12.75 then love.graphics.draw (lodnik02, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>12.75 and boatwindowframe<13 then love.graphics.draw (lodnik03, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>13 and boatwindowframe<13.25 then love.graphics.draw (lodnik04, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>13.25 and boatwindowframe<13.5 then love.graphics.draw (lodnik05, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>13.5 and boatwindowframe<13.75 then love.graphics.draw (lodnik06, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>13.75 and boatwindowframe<14 then love.graphics.draw (lodnik07, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>14 and boatwindowframe<14.25 then love.graphics.draw (lodnik08, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>14.25 and boatwindowframe<14.5 then love.graphics.draw (lodnik09, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>14.5 and boatwindowframe<14.75 then love.graphics.draw (lodnik10, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>14.75 and boatwindowframe<15 then love.graphics.draw (lodnik11, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>15 and boatwindowframe<15.25 then love.graphics.draw (lodnik12, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>15.25 and boatwindowframe<15.5 then love.graphics.draw (lodnik13, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>15.5 and boatwindowframe<15.75 then love.graphics.draw (lodnik14, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>15.75 and boatwindowframe<16 then love.graphics.draw (lodnik15, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>16 and boatwindowframe<16.25 then love.graphics.draw (lodnik16, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>16.25 and boatwindowframe<16.5 then love.graphics.draw (lodnik17, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>16.5 and boatwindowframe<16.75 then love.graphics.draw (lodnik18, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>16.75 and boatwindowframe<17 then love.graphics.draw (lodnik19, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>17 and boatwindowframe<17.25 then love.graphics.draw (lodnik20, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>17.25 and boatwindowframe<17.5 then love.graphics.draw (lodnik21, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>17.5 and boatwindowframe<18 then love.graphics.draw (lodnik22, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
end
--right window
if boatwindowframe>0 and boatwindowframe<0.25 then love.graphics.draw (lodnik00, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>0.25 and boatwindowframe<0.5 then love.graphics.draw (lodnik01, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>0.5 and boatwindowframe<0.75 then love.graphics.draw (lodnik02, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>0.75 and boatwindowframe<1 then love.graphics.draw (lodnik03, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>1 and boatwindowframe<1.25 then love.graphics.draw (lodnik04, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>1.25 and boatwindowframe<1.5 then love.graphics.draw (lodnik05, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>1.5 and boatwindowframe<1.75 then love.graphics.draw (lodnik06, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>1.75 and boatwindowframe<2 then love.graphics.draw (lodnik07, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>2 and boatwindowframe<2.25 then love.graphics.draw (lodnik08, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>2.25 and boatwindowframe<2.5 then love.graphics.draw (lodnik09, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>2.5 and boatwindowframe<2.75 then love.graphics.draw (lodnik10, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>2.75 and boatwindowframe<3 then love.graphics.draw (lodnik11, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>3 and boatwindowframe<3.25 then love.graphics.draw (lodnik12, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>3.25 and boatwindowframe<3.5 then love.graphics.draw (lodnik13, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>3.5 and boatwindowframe<3.75 then love.graphics.draw (lodnik14, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>3.75 and boatwindowframe<4 then love.graphics.draw (lodnik15, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>4 and boatwindowframe<4.25 then love.graphics.draw (lodnik16, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>4.25 and boatwindowframe<4.5 then love.graphics.draw (lodnik17, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>4.5 and boatwindowframe<4.75 then love.graphics.draw (lodnik18, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>4.75 and boatwindowframe<5 then love.graphics.draw (lodnik19, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>5 and boatwindowframe<5.25 then love.graphics.draw (lodnik20, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>5.25 and boatwindowframe<5.5 then love.graphics.draw (lodnik21, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>5.5 and boatwindowframe<6 then love.graphics.draw (lodnik22, ((x+0.8+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>6 and boatwindowframe<6.25 then love.graphics.draw (dama00, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>6.25 and boatwindowframe<6.5 then love.graphics.draw (dama01, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>6.5 and boatwindowframe<6.75 then love.graphics.draw (dama02, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>6.75 and boatwindowframe<7 then love.graphics.draw (dama03, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>7 and boatwindowframe<7.25 then love.graphics.draw (dama04, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>7.25 and boatwindowframe<7.5 then love.graphics.draw (dama05, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>7.5 and boatwindowframe<7.75 then love.graphics.draw (dama06, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>7.75 and boatwindowframe<8 then love.graphics.draw (dama07, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>8 and boatwindowframe<8.25 then love.graphics.draw (dama08, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>8.25 and boatwindowframe<8.5 then love.graphics.draw (dama09, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>8.5 and boatwindowframe<8.75 then love.graphics.draw (dama10, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>8.75 and boatwindowframe<9 then love.graphics.draw (dama11, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>8 and boatwindowframe<9.25 then love.graphics.draw (dama12, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>9.25 and boatwindowframe<9.5 then love.graphics.draw (dama13, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>9.5 and boatwindowframe<10 then love.graphics.draw (dama14, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>10 and boatwindowframe<10.25 then love.graphics.draw (kap00, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>10.25 and boatwindowframe<10.5 then love.graphics.draw (kap01, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>10.5 and boatwindowframe<10.75 then love.graphics.draw (kap02, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>10.75 and boatwindowframe<11 then love.graphics.draw (kap03, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>11 and boatwindowframe<11.25 then love.graphics.draw (kap04, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>11.25 and boatwindowframe<11.5 then love.graphics.draw (kap05, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>11.5 and boatwindowframe<11.75 then love.graphics.draw (kap06, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>11.75 and boatwindowframe<12 then love.graphics.draw (kap07, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>12 and boatwindowframe<12.25 then love.graphics.draw (kap08, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>12.25 and boatwindowframe<12.5 then love.graphics.draw (kap09, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>12.5 and boatwindowframe<12.75 then love.graphics.draw (kap10, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>12.75 and boatwindowframe<13 then love.graphics.draw (kap11, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>13 and boatwindowframe<13.25 then love.graphics.draw (kap12, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>13.25 and boatwindowframe<13.5 then love.graphics.draw (kap13, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>13.5 and boatwindowframe<13.75 then love.graphics.draw (kap14, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>13.75 and boatwindowframe<14 then love.graphics.draw (kap15, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>14 and boatwindowframe<14.25 then love.graphics.draw (kap16, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>14.25 and boatwindowframe<14.5 then love.graphics.draw (kap17, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>14.5 and boatwindowframe<15 then love.graphics.draw (kap18, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>15 and boatwindowframe<15.25 then love.graphics.draw (frkavec00, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>15.25 and boatwindowframe<15.5 then love.graphics.draw (frkavec01, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>15.5 and boatwindowframe<15.75 then love.graphics.draw (frkavec02, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>15.75 and boatwindowframe<16 then love.graphics.draw (frkavec03, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>16 and boatwindowframe<16.25 then love.graphics.draw (frkavec04, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>16.25 and boatwindowframe<16.5 then love.graphics.draw (frkavec05, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatwindowframe>16.5 and boatwindowframe<18 then love.graphics.draw (frkavec06, ((x+7+dx-1))*tileSize, (y+0.8+dy-1)*tileSize,0,dividx/2,dividy/2)
end
love.graphics.draw (cruiseship, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="glass" and glassmoving==false then love.graphics.setColor(1,1,1,0.85) love.graphics.draw (glass, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="glass" and glassmoving==true then
if boatglassframe>0 and boatglassframe<0.25 then love.graphics.draw (glass, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>0.25 and boatglassframe<0.5 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>0.5 and boatglassframe<0.75 then love.graphics.draw (glass3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>0.75 and boatglassframe<1 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>1 and boatglassframe<1.25 then love.graphics.draw (glass, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>1.25 and boatglassframe<1.5 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>1.5 and boatglassframe<1.75 then love.graphics.draw (glass3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>1.75 and boatglassframe<2 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>2 and boatglassframe<2.25 then love.graphics.draw (glass, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>2.25 and boatglassframe<2.5 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>2.5 and boatglassframe<2.75 then love.graphics.draw (glass3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>2.75 and boatglassframe<3 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>3 and boatglassframe<3.25 then love.graphics.draw (glass, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>3.25 and boatglassframe<3.5 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>3.5 and boatglassframe<3.75 then love.graphics.draw (glass3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>3.75 and boatglassframe<4 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>4 and boatglassframe<4.25 then love.graphics.draw (glass, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>4.25 and boatglassframe<4.5 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>4.5 and boatglassframe<4.75 then love.graphics.draw (glass3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>4.75 and boatglassframe<5 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>5 and boatglassframe<5.25 then love.graphics.draw (glass, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>5.25 and boatglassframe<5.5 then love.graphics.draw (glass2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>5.5 and boatglassframe<6 then love.graphics.draw (glass3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="glassstand" and glassstandmoving==false then love.graphics.setColor(1,1,1,0.85) love.graphics.draw (glassstand, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="glassstand" and glassstandmoving==true then
if boatglassframe>0 and boatglassframe<0.25 then love.graphics.draw (glassstand, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>0.25 and boatglassframe<0.5 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>0.5 and boatglassframe<0.75 then love.graphics.draw (glassstand3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>0.75 and boatglassframe<1 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>1 and boatglassframe<1.25 then love.graphics.draw (glassstand, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>1.25 and boatglassframe<1.5 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>1.5 and boatglassframe<1.75 then love.graphics.draw (glassstand3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>1.75 and boatglassframe<2 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>2 and boatglassframe<2.25 then love.graphics.draw (glassstand, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>2.25 and boatglassframe<2.5 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>2.5 and boatglassframe<2.75 then love.graphics.draw (glassstand3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>2.75 and boatglassframe<3 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>3 and boatglassframe<3.25 then love.graphics.draw (glassstand, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>3.25 and boatglassframe<3.5 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>3.5 and boatglassframe<3.75 then love.graphics.draw (glassstand3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>3.75 and boatglassframe<4 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>4 and boatglassframe<4.25 then love.graphics.draw (glassstand, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>4.25 and boatglassframe<4.5 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>4.5 and boatglassframe<4.75 then love.graphics.draw (glassstand3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>4.75 and boatglassframe<5 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>5 and boatglassframe<5.25 then love.graphics.draw (glassstand, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>5.25 and boatglassframe<5.5 then love.graphics.draw (glassstand2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif boatglassframe>5.5 and boatglassframe<6 then love.graphics.draw (glassstand3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
end
--love.graphics.setColor(1,1,1,1)
end
--level 11
elseif nLevel==11 then
if i==1 then
if block.name=="pipe11" then love.graphics.draw (pipe11, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="pipe4_11" then love.graphics.draw (pipe4_11, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="snail11" then
if snailframe>0 and snailframe<0.5 then love.graphics.draw (maly_snek_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif snailframe>0.5 and snailframe<1 then love.graphics.draw (maly_snek_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif snailframe>1 and snailframe<1.5 then love.graphics.draw (maly_snek_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif snailframe>1.5 and snailframe<2 then love.graphics.draw (maly_snek_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
elseif block.name=="bullet11" then love.graphics.draw (bullet11, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="bullet112" then love.graphics.draw (bullet11, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="elk" then
if elkframe>0 and elkframe<0.5 then love.graphics.draw (los_00, ((x+-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif elkframe>0.5 and elkframe<1 then love.graphics.draw (los_01, ((x+-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif elkframe>1 and elkframe<1.5 then love.graphics.draw (los_02, ((x+-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif elkframe>1.5 and elkframe<2 then love.graphics.draw (los_03, ((x+-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
elseif block.name=="parrot" then
if deadparrotframe>0 and deadparrotframe<1 then love.graphics.draw (papoucha_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif deadparrotframe>1 and deadparrotframe<2 then love.graphics.draw (papoucha_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
end
end
elseif nLevel==12 then
if i==1 then
if block.name=="cepicka" then love.graphics.draw (cepicka, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="rybicka" then
if rybickaframe>0 and rybickaframe<0.5 then love.graphics.draw (rybicka_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif rybickaframe>0.5 and rybickaframe<1 then love.graphics.draw (rybicka_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif rybickaframe>1 and rybickaframe<1.5 then love.graphics.draw (rybicka_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif rybickaframe>1.5 and rybickaframe<2 then love.graphics.draw (rybicka_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
elseif block.name=="hat" then love.graphics.draw (hat, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="medusa" then
if medusaframe>0 and medusaframe<0.5 then love.graphics.draw (medusa_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif medusaframe>0.5 and medusaframe<1 then love.graphics.draw (medusa_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif medusaframe>1 and medusaframe<1.5 then love.graphics.draw (medusa_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
elseif block.name=="muslicka" then love.graphics.draw (muslicka, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="pipe" then love.graphics.draw (pipe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
elseif block.name=="pipe2" then love.graphics.draw (pipe2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx,dividy)
end
end
--level 13
elseif nLevel==13 then
if i==1 then
if block.name=="vik1" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik1_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik1_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik1_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik1_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik1_04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="vik2" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik2_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik2_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik2_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik2_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik2_04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="vik3" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik3_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik3_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik3_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik3_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik3_04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="vik4" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik5_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik5_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik5_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik5_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik5_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="vik5" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik5_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik5_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik5_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik5_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik5_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="vik6" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik6_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik6_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik6_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik6_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik6_04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="axe1" then love.graphics.draw (axe1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="axe2" then love.graphics.draw (axe2, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="shield1" then love.graphics.draw (shield1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="shield2" then love.graphics.draw (shield2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="snail" then
if snailframe>0 and snailframe<0.5 then love.graphics.draw (snail00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif snailframe>0.5 and snailframe<1 then love.graphics.draw (snail01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif snailframe>1 and snailframe<1.5 then love.graphics.draw (snail02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif snailframe>1.5 and snailframe<2 then love.graphics.draw (snail03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="skull" then love.graphics.draw (skull, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
end
--level 14
elseif nLevel==14 then
if i==1 then
if block.name=="eye" then
if eyeframe>0 and eyeframe<0.5 then love.graphics.draw (oko_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif eyeframe>0.5 and eyeframe<1 then love.graphics.draw (oko_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif eyeframe>1 and eyeframe<1.5 then love.graphics.draw (oko_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif eyeframe>1.5 and eyeframe<2 then love.graphics.draw (oko_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif eyeframe>2 and eyeframe<2.5 then love.graphics.draw (oko_04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="chairleft" then love.graphics.draw (chairleft, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="chairright" then love.graphics.draw (chairright, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="chairup" then love.graphics.draw (chairup, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="chairdown" then love.graphics.draw (chairdown, ((x-3+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe1" then love.graphics.draw (pipe1, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe2" then love.graphics.draw (pipe2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe3" then love.graphics.draw (pipe3, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
end
--level 15
elseif nLevel==15 then
if i==1 then
if block.name=="pipe" then love.graphics.draw (pipe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="mikroskop" then
if mikroskopframe>0 and mikroskopframe<0.5 then love.graphics.draw (mikroskop_00, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif mikroskopframe>0.5 and mikroskopframe<1 then love.graphics.draw (mikroskop_01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif mikroskopframe>1 and mikroskopframe<1.5 then love.graphics.draw (mikroskop_02, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="phone" then love.graphics.draw (phone, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="phone2" and phoneringing==false then love.graphics.draw (phone, ((x+dx-1))*tileSize, (y-1+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="phone2" and timer2>2.3 then love.graphics.draw (phone, ((x+dx-1))*tileSize, (y-1+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="phone2" and phoneringing==true and timer2<2.3 then love.graphics.draw (phone, math.random(0,2)+((x+dx-1))*tileSize, math.random(0,2)+((y-1+dy-1))*tileSize,0,dividx/2,dividy/2)
--elseif block.name=="phone2" and phoneringing==true and timer2<2.3 then love.graphics.draw (phone, ((x+dx-1))*tileSize, (y-1+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="phone3" and phoneringing==false then love.graphics.draw (phone, ((x+dx-1))*tileSize, (y-1+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="phone3" and timer2>2.3 then love.graphics.draw (phone, ((x+dx-1))*tileSize, (y-1+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="phone3" and phoneringing==true and timer2<2.3 then love.graphics.draw (phone, math.random(0,2)+((x+dx-1))*tileSize, math.random(0,2)+((y-1+dy-1))*tileSize,0,dividx/2,dividy/2)
--elseif block.name=="phone3" and phoneringing==true and timer2<2.3 then love.graphics.draw (phone, ((x+dx-1))*tileSize, (y-1+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="basephone" then love.graphics.draw (basephone, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="snail" then
if snailframe>0 and snailframe<1 then love.graphics.draw (snek_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif snailframe>1 and snailframe<2 then love.graphics.draw (snek_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="alarmclock" then
if budikframe>0 and budikframe<1 then love.graphics.draw (budik_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif budikframe>1 and budikframe<2 then love.graphics.draw (budik_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="binoculars" then
if dalekohledframe>0 and dalekohledframe<1 then love.graphics.draw (dalekohled_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif dalekohledframe>1 and dalekohledframe<2 then love.graphics.draw (dalekohled_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
--elseif block.name=="" then love.graphics.draw (, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
if timer2>6 then timer2=0 end -- restart counter for the ringing phone animation
end
--level 16
elseif nLevel==16 then
if i==1 then
if block.name=="bullet" then love.graphics.draw (bullet, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="bulletleft" then love.graphics.draw (bulletleft, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="bulletright" then love.graphics.draw (bulletright, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe" then love.graphics.draw (pipe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe2" then love.graphics.draw (pipe2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe3" then love.graphics.draw (pipe3, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe4" then love.graphics.draw (pipe4, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe5" then love.graphics.draw (pipe5, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="robothand" then love.graphics.draw (robothand, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="snail" then
if snailframe>0 and snailframe<0.5 then love.graphics.draw (snail00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif snailframe>0.5 and snailframe<1 then love.graphics.draw (snail01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif snailframe>1 and snailframe<1.5 then love.graphics.draw (snail02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif snailframe>1.5 and snailframe<2 then love.graphics.draw (snail03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="stairs" then love.graphics.draw (stairs, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
end
--level 17
elseif nLevel==17 then
if i==1 then
if block.name=="viking1" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik1_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik1_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik1_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik1_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik1_04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="viking2" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik2_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik2_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik2_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik2_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik2_04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="viking3" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik3_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik3_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik3_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik3_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik3_04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="viking4" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik5_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik5_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik5_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik5_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik5_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="viking5" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik5_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik5_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik5_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik5_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik5_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="viking6" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik6_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik6_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik6_01, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik6_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik6_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="viking7" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (vik7_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (vik7_00, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<1.5 then love.graphics.draw (vik7_02, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1.5 and vikingframe<2 then love.graphics.draw (vik7_03, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>2 and vikingframe<2.5 then love.graphics.draw (vik7_04, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="dog" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (pesos_00, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (pesos_01, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<2.5 then love.graphics.draw (pesos_02, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="drakar" then
if vikingframe>0 and vikingframe<0.5 then love.graphics.draw (drakar00, ((x-2+dx-1))*tileSize, (y-1+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>0.5 and vikingframe<1 then love.graphics.draw (drakar01, ((x-2+dx-1))*tileSize, (y-1+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif vikingframe>1 and vikingframe<2.5 then love.graphics.draw (drakar02, ((x-2+dx-1))*tileSize, (y-1+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="shield" then love.graphics.draw (shield, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="korunka" then love.graphics.draw (korunka, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe" then love.graphics.draw (pipe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe2" then love.graphics.draw (pipe2, ((x-3+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
end
--[[--level 18
elseif nLevel==18 then
if i==1 then
love.graphics.setColor(1,1,1,0.45)
if block.name=="pipe" then love.graphics.draw (pipe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="cruiseship" then love.graphics.draw (cruiseship, ((x+13+dx-1))*tileSize, (y+dy-1)*tileSize,0,-dividx/2,dividy/2)
elseif block.name=="chimney" then love.graphics.draw (chimney, ((x+1+dx-1))*tileSize, (y+dy-1)*tileSize,0,-dividx/2,dividy/2)
elseif block.name=="glass" then love.graphics.setColor(1,1,1,0.85) love.graphics.draw (glass, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="glassstand" then love.graphics.setColor(1,1,1,0.85) love.graphics.draw (glassstand, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
end
--]]
--level 19
elseif nLevel==19 then
if i==1 then
if block.name=="bota" then love.graphics.draw (bota, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="domino" then love.graphics.draw (domino, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="hul" then love.graphics.draw (hul, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="kuzelka" then love.graphics.draw (kuzelka, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="palka" then love.graphics.draw (palka, ((x-1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="ping" then love.graphics.draw (ping, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe" then love.graphics.draw (pipe, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe2" then love.graphics.draw (pipe2, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="pipe3" then love.graphics.draw (pipe3, ((x-2+1+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif block.name=="poseidon" then
if poseidonframe>0 and poseidonframe<0.25 then love.graphics.draw (poseidon00, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>0.25 and poseidonframe<0.5 then love.graphics.draw (poseidon01, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>0.5 and poseidonframe<0.75 then love.graphics.draw (poseidon02, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>0.75 and poseidonframe<1 then love.graphics.draw (poseidon03, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>1 and poseidonframe<1.25 then love.graphics.draw (poseidon04, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>1.25 and poseidonframe<1.5 then love.graphics.draw (poseidon05, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>1.5 and poseidonframe<1.75 then love.graphics.draw (poseidon06, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>1.75 and poseidonframe<2 then love.graphics.draw (poseidon07, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>2 and poseidonframe<2.25 then love.graphics.draw (poseidon08, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>2.25 and poseidonframe<2.5 then love.graphics.draw (poseidon09, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>2.5 and poseidonframe<2.75 then love.graphics.draw (poseidon10, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>2.75 and poseidonframe<3 then love.graphics.draw (poseidon11, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>3 and poseidonframe<3.25 then love.graphics.draw (poseidon12, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>3.25 and poseidonframe<3.5 then love.graphics.draw (poseidon13, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>3.5 and poseidonframe<3.75 then love.graphics.draw (poseidon14, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>3.75 and poseidonframe<4 then love.graphics.draw (poseidon15, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>4 and poseidonframe<4.25 then love.graphics.draw (poseidon16, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>4.25 and poseidonframe<4.5 then love.graphics.draw (poseidon17, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>4.5 and poseidonframe<4.75 then love.graphics.draw (poseidon18, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>4.75 and poseidonframe<5 then love.graphics.draw (poseidon19, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>5 and poseidonframe<5.25 then love.graphics.draw (poseidon20, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>5.25 and poseidonframe<5.5 then love.graphics.draw (poseidon21, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>5.5 and poseidonframe<5.75 then love.graphics.draw (poseidon22, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>5.75 and poseidonframe<6 then love.graphics.draw (poseidon23, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>6 and poseidonframe<6.25 then love.graphics.draw (poseidon24, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>6.25 and poseidonframe<6.5 then love.graphics.draw (poseidon25, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>6.5 and poseidonframe<6.75 then love.graphics.draw (poseidon26, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>6.75 and poseidonframe<7 then love.graphics.draw (poseidon27, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>7 and poseidonframe<7.25 then love.graphics.draw (poseidon28, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>7.25 and poseidonframe<7.5 then love.graphics.draw (poseidon29, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>7.5 and poseidonframe<7.75 then love.graphics.draw (poseidon30, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>7.75 and poseidonframe<8 then love.graphics.draw (poseidon31, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>8 and poseidonframe<8.25 then love.graphics.draw (poseidon32, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>8.25 and poseidonframe<8.5 then love.graphics.draw (poseidon33, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>8.5 and poseidonframe<8.75 then love.graphics.draw (poseidon34, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>8.75 and poseidonframe<9 then love.graphics.draw (poseidon35, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>9 and poseidonframe<9.25 then love.graphics.draw (poseidon36, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>9.25 and poseidonframe<9.5 then love.graphics.draw (poseidon37, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>9.5 and poseidonframe<9.75 then love.graphics.draw (poseidon38, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>9.75 and poseidonframe<10 then love.graphics.draw (poseidon39, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>10 and poseidonframe<10.25 then love.graphics.draw (poseidon40, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>10.25 and poseidonframe<10.5 then love.graphics.draw (poseidon41, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>10.5 and poseidonframe<10.75 then love.graphics.draw (poseidon42, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>10.75 and poseidonframe<11 then love.graphics.draw (poseidon43, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>11 and poseidonframe<11.25 then love.graphics.draw (poseidon44, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>11.25 and poseidonframe<11.5 then love.graphics.draw (poseidon45, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>11.5 and poseidonframe<11.75 then love.graphics.draw (poseidon46, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>11.75 and poseidonframe<12 then love.graphics.draw (poseidon47, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif poseidonframe>12 and poseidonframe<12.25 then love.graphics.draw (poseidon48, ((x+dx-2))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="neptun" then
if neptunframe>0 and neptunframe<0.25 then love.graphics.draw (neptun00, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>0.25 and neptunframe<0.5 then love.graphics.draw (neptun01, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>0.5 and neptunframe<0.75 then love.graphics.draw (neptun02, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>0.75 and neptunframe<1 then love.graphics.draw (neptun03, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>1 and neptunframe<1.25 then love.graphics.draw (neptun04, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>1.25 and neptunframe<1.5 then love.graphics.draw (neptun05, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>1.5 and neptunframe<1.75 then love.graphics.draw (neptun06, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>1.75 and neptunframe<2 then love.graphics.draw (neptun07, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>2 and neptunframe<2.25 then love.graphics.draw (neptun08, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>2.25 and neptunframe<2.5 then love.graphics.draw (neptun09, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>2.5 and neptunframe<2.75 then love.graphics.draw (neptun10, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>2.75 and neptunframe<3 then love.graphics.draw (neptun11, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>3 and neptunframe<3.25 then love.graphics.draw (neptun12, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>3.25 and neptunframe<3.5 then love.graphics.draw (neptun13, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>3.5 and neptunframe<3.75 then love.graphics.draw (neptun14, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>3.75 and neptunframe<4 then love.graphics.draw (neptun15, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>4 and neptunframe<4.25 then love.graphics.draw (neptun16, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>4.25 and neptunframe<4.5 then love.graphics.draw (neptun17, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>4.5 and neptunframe<4.75 then love.graphics.draw (neptun18, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>4.75 and neptunframe<5 then love.graphics.draw (neptun19, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>5 and neptunframe<5.25 then love.graphics.draw (neptun20, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>5.25 and neptunframe<5.5 then love.graphics.draw (neptun21, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>5.5 and neptunframe<5.75 then love.graphics.draw (neptun22, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>5.75 and neptunframe<6 then love.graphics.draw (neptun23, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>6 and neptunframe<6.25 then love.graphics.draw (neptun24, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>6.25 and neptunframe<6.5 then love.graphics.draw (neptun25, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>6.5 and neptunframe<6.75 then love.graphics.draw (neptun26, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>6.75 and neptunframe<7 then love.graphics.draw (neptun27, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>7 and neptunframe<7.25 then love.graphics.draw (neptun28, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>7.25 and neptunframe<7.5 then love.graphics.draw (neptun29, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>7.5 and neptunframe<7.75 then love.graphics.draw (neptun30, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>7.75 and neptunframe<8 then love.graphics.draw (neptun31, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>8 and neptunframe<8.25 then love.graphics.draw (neptun32, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>8.25 and neptunframe<8.5 then love.graphics.draw (neptun33, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>8.5 and neptunframe<8.75 then love.graphics.draw (neptun34, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>8.75 and neptunframe<9 then love.graphics.draw (neptun35, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>9 and neptunframe<9.25 then love.graphics.draw (neptun36, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>9.25 and neptunframe<9.5 then love.graphics.draw (neptun37, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>9.5 and neptunframe<9.75 then love.graphics.draw (neptun38, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>9.75 and neptunframe<10 then love.graphics.draw (neptun39, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>10 and neptunframe<10.25 then love.graphics.draw (neptun40, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>10.25 and neptunframe<10.5 then love.graphics.draw (neptun41, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>10.5 and neptunframe<10.75 then love.graphics.draw (neptun42, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>10.75 and neptunframe<11 then love.graphics.draw (neptun43, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>11 and neptunframe<11.25 then love.graphics.draw (neptun44, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif neptunframe>11.25 and neptunframe<11.5 then love.graphics.draw (neptun45, ((x-2+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
elseif block.name=="tenisak" then love.graphics.draw (tenisak, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
end
end
--level 20
elseif nLevel==20 then
if i==1 then
if block.name=="skull" then love.graphics.draw (skull, ((x+dx-1))*tileSize, (y+dy-1)*tileSize,0,dividx/2,dividy/2)
elseif