--Autor: Shaplayer
--Design: ToXXiN
--Genre: Kampf
--Name: Naruto Ultimate Ninja Battle 
-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
function delete()
moverr = nil
movercr = nil
golper = nil
golpecr = nil
rafagaor = nil
rafagaocr = nil
rafagar = nil
rafagacr = nil
imgr = nil

mover = nil
moverc = nil
golpe = nil
golpec = nil
rafagaoa = nil
rafagaoc = nil
rafaga = nil
rafagac = nil
poder = nil
poderc = nil
salto = nil
img = nil

fondos1 = nil
fondos2 = nil
fondos3 = nil
fondos4 = nil
fondos5 = nil
fondos6 = nil
fondos7 = nil
fondos8 = nil
fondos9 = nil
sangres = nil
sangree = nil


p = nil
p2 = nil
p3 = nil
Okey = nil

cancions = Mp3me.stop()
end


function GAME()
function naruto()
mover = Image.load("Pictures/Naruto/mover.png")
moverc = Image.load("Pictures/Naruto/moverc.png")
golpe = Image.load("Pictures/Naruto/golpe.png")
golpec = Image.load("Pictures/Naruto/golpec.png")
rafagaoa = Image.load("Pictures/Naruto/rafagao.png")
rafagaoc = Image.load("Pictures/Naruto/rafagaoc.png")
rafaga = Image.load("Pictures/Naruto/rafaga.png")
rafagac = Image.load("Pictures/Naruto/rafagac.png")
poder = Image.load("Pictures/Naruto/poder.png")
poderc = Image.load("Pictures/Naruto/poderc.png")
salto = Image.load("Pictures/Naruto/salto.png")
img = Image.load("Pictures/Naruto/img.png")
end
function narutor()
moverr = Image.load("Pictures/Naruto/mover.png")
movercr = Image.load("Pictures/Naruto/moverc.png")
golper = Image.load("Pictures/Naruto/golpe.png")
golpecr = Image.load("Pictures/Naruto/golpec.png")
rafagaor = Image.load("Pictures/Naruto/rafagao.png")
rafagaocr = Image.load("Pictures/Naruto/rafagaoc.png")
rafagar = Image.load("Pictures/Naruto/rafaga.png")
rafagacr = Image.load("Pictures/Naruto/rafagac.png")
imgr = Image.load("Pictures/Naruto/img.png")
end
function sasuke()
mover = Image.load("Pictures/Sasuke/mover.png")
moverc = Image.load("Pictures/Sasuke/moverc.png")
golpe = Image.load("Pictures/Sasuke/golpe.png")
golpec = Image.load("Pictures/Sasuke/golpec.png")
rafagaoa = Image.load("Pictures/Sasuke/rafagao.png")
rafagaoc = Image.load("Pictures/Sasuke/rafagaoc.png")
rafaga = Image.load("Pictures/Sasuke/rafaga.png")
rafagac = Image.load("Pictures/Sasuke/rafagac.png")
poder = Image.load("Pictures/Sasuke/poder.png")
poderc = Image.load("Pictures/Sasuke/poderc.png")
salto = Image.load("Pictures/Sasuke/salto.png")
img = Image.load("Pictures/Sasuke/img.png")
end

function sasuker()
moverr = Image.load("Pictures/Sasuke/mover.png")
movercr = Image.load("Pictures/Sasuke/moverc.png")
golper = Image.load("Pictures/Sasuke/golpe.png")
golpecr = Image.load("Pictures/Sasuke/golpec.png")
rafagaor = Image.load("Pictures/Sasuke/rafagao.png")
rafagaocr = Image.load("Pictures/Sasuke/rafagaoc.png")
rafagar = Image.load("Pictures/Sasuke/rafaga.png")
rafagacr = Image.load("Pictures/Sasuke/rafagac.png")
imgr = Image.load("Pictures/Sasuke/img.png")
end
function sakura()
mover = Image.load("Pictures/Sakura/mover.png")
moverc = Image.load("Pictures/Sakura/moverc.png")
golpe = Image.load("Pictures/Sakura/golpe.png")
golpec = Image.load("Pictures/Sakura/golpec.png")
rafagaoa = Image.load("Pictures/Sakura/rafagao.png")
rafagaoc = Image.load("Pictures/Sakura/rafagaoc.png")
rafaga = Image.load("Pictures/Sakura/rafaga.png")
rafagac = Image.load("Pictures/Sakura/rafagac.png")
poder = Image.load("Pictures/Sakura/poder.png")
poderc = Image.load("Pictures/Sakura/poderc.png")
salto = Image.load("Pictures/Sakura/salto.png")
img = Image.load("Pictures/Sakura/img.png")
end
function sakurar()
moverr = Image.load("Pictures/Sakura/mover.png")
movercr = Image.load("Pictures/Sakura/moverc.png")
golper = Image.load("Pictures/Sakura/golpe.png")
golpecr = Image.load("Pictures/Sakura/golpec.png")
rafagaor = Image.load("Pictures/Sakura/rafagao.png")
rafagaocr = Image.load("Pictures/Sakura/rafagaoc.png")
rafagar = Image.load("Pictures/Sakura/rafaga.png")
rafagacr = Image.load("Pictures/Sakura/rafagac.png")
imgr = Image.load("Pictures/Sakura/img.png")
end
function kakashi()
mover = Image.load("Pictures/Kakashi/mover.png")
moverc = Image.load("Pictures/Kakashi/moverc.png")
golpe = Image.load("Pictures/Kakashi/golpe.png")
golpec = Image.load("Pictures/Kakashi/golpec.png")
rafagaoa = Image.load("Pictures/Kakashi/rafagao.png")
rafagaoc = Image.load("Pictures/Kakashi/rafagaoc.png")
rafaga = Image.load("Pictures/Kakashi/rafaga.png")
rafagac = Image.load("Pictures/Kakashi/rafagac.png")
poder = Image.load("Pictures/Kakashi/poder.png")
poderc = Image.load("Pictures/Kakashi/poderc.png")
salto = Image.load("Pictures/Kakashi/salto.png")
img = Image.load("Pictures/Kakashi/img.png")
end
function kakashir()
moverr = Image.load("Pictures/Kakashi/mover.png")
movercr = Image.load("Pictures/Kakashi/moverc.png")
golper = Image.load("Pictures/Kakashi/golpe.png")
golpecr = Image.load("Pictures/Kakashi/golpec.png")
rafagaor = Image.load("Pictures/Kakashi/rafagao.png")
rafagaocr = Image.load("Pictures/Kakashi/rafagaoc.png")
rafagar = Image.load("Pictures/Kakashi/rafaga.png")
rafagacr = Image.load("Pictures/Kakashi/rafagac.png")
imgr = Image.load("Pictures/Kakashi/img.png")
end
function temari()
mover = Image.load("Pictures/Temari/mover.png")
moverc = Image.load("Pictures/Temari/moverc.png")
golpe = Image.load("Pictures/Temari/golpe.png")
golpec = Image.load("Pictures/Temari/golpec.png")
rafagaoa = Image.load("Pictures/Temari/rafagao.png")
rafagaoc = Image.load("Pictures/Temari/rafagaoc.png")
rafaga = Image.load("Pictures/Temari/rafaga.png")
rafagac = Image.load("Pictures/Temari/rafagac.png")
poder = Image.load("Pictures/Temari/poder.png")
poderc = Image.load("Pictures/Temari/poderc.png")
salto = Image.load("Pictures/Temari/salto.png")
img = Image.load("Pictures/Temari/img.png")
end
function temarir()
moverr = Image.load("Pictures/Temari/mover.png")
movercr = Image.load("Pictures/Temari/moverc.png")
golper = Image.load("Pictures/Temari/golpe.png")
golpecr = Image.load("Pictures/Temari/golpec.png")
rafagaor = Image.load("Pictures/Temari/rafagao.png")
rafagaocr = Image.load("Pictures/Temari/rafagaoc.png")
rafagar = Image.load("Pictures/Temari/rafaga.png")
rafagacr = Image.load("Pictures/Temari/rafagac.png")
imgr = Image.load("Pictures/Temari/img.png")
end
function gaara()
mover = Image.load("Pictures/Gaara/mover.png")
moverc = Image.load("Pictures/Gaara/moverc.png")
golpe = Image.load("Pictures/Gaara/golpe.png")
golpec = Image.load("Pictures/Gaara/golpec.png")
rafagaoa = Image.load("Pictures/Gaara/rafagao.png")
rafagaoc = Image.load("Pictures/Gaara/rafagaoc.png")
rafaga = Image.load("Pictures/Gaara/rafaga.png")
rafagac = Image.load("Pictures/Gaara/rafagac.png")
poder = Image.load("Pictures/Gaara/poder.png")
poderc = Image.load("Pictures/Gaara/poderc.png")
salto = Image.load("Pictures/Gaara/salto.png")
img = Image.load("Pictures/Gaara/img.png")
end
function gaarar()
moverr = Image.load("Pictures/Gaara/mover.png")
movercr = Image.load("Pictures/Gaara/moverc.png")
golper = Image.load("Pictures/Gaara/golpe.png")
golpecr = Image.load("Pictures/Gaara/golpec.png")
rafagaor = Image.load("Pictures/Gaara/rafagao.png")
rafagaocr = Image.load("Pictures/Gaara/rafagaoc.png")
rafagar = Image.load("Pictures/Gaara/rafaga.png")
rafagacr = Image.load("Pictures/Gaara/rafagac.png")
imgr = Image.load("Pictures/Gaara/img.png")
end
function kankuro()
mover = Image.load("Pictures/Kankuro/mover.png")
moverc = Image.load("Pictures/Kankuro/moverc.png")
golpe = Image.load("Pictures/Kankuro/golpe.png")
golpec = Image.load("Pictures/Kankuro/golpec.png")
rafagaoa = Image.load("Pictures/Kankuro/rafagao.png")
rafagaoc = Image.load("Pictures/Kankuro/rafagaoc.png")
rafaga = Image.load("Pictures/Kankuro/rafaga.png")
rafagac = Image.load("Pictures/Kankuro/rafagac.png")
poder = Image.load("Pictures/Kankuro/poder.png")
poderc = Image.load("Pictures/Kankuro/poderc.png")
salto = Image.load("Pictures/Kankuro/salto.png")
img = Image.load("Pictures/Kankuro/img.png")
end
function kankuror()
moverr = Image.load("Pictures/Kankuro/mover.png")
movercr = Image.load("Pictures/Kankuro/moverc.png")
golper = Image.load("Pictures/Kankuro/golpe.png")
golpecr = Image.load("Pictures/Kankuro/golpec.png")
rafagaor = Image.load("Pictures/Kankuro/rafagao.png")
rafagaocr = Image.load("Pictures/Kankuro/rafagaoc.png")
rafagar = Image.load("Pictures/Kankuro/rafaga.png")
rafagacr = Image.load("Pictures/Kankuro/rafagac.png")
imgr = Image.load("Pictures/Kankuro/img.png")
end
function deidara()
mover = Image.load("Pictures/Deidara/mover.png")
moverc = Image.load("Pictures/Deidara/moverc.png")
golpe = Image.load("Pictures/Deidara/golpe.png")
golpec = Image.load("Pictures/Deidara/golpec.png")
rafagaoa = Image.load("Pictures/Deidara/rafagao.png")
rafagaoc = Image.load("Pictures/Deidara/rafagaoc.png")
rafaga = Image.load("Pictures/Deidara/rafaga.png")
rafagac = Image.load("Pictures/Deidara/rafagac.png")
poder = Image.load("Pictures/Deidara/poder.png")
poderc = Image.load("Pictures/Deidara/poderc.png")
salto = Image.load("Pictures/Deidara/salto.png")
img = Image.load("Pictures/Deidara/img.png")
end
function deidarar()
moverr = Image.load("Pictures/Deidara/mover.png")
movercr = Image.load("Pictures/Deidara/moverc.png")
golper = Image.load("Pictures/Deidara/golpe.png")
golpecr = Image.load("Pictures/Deidara/golpec.png")
rafagaor = Image.load("Pictures/Deidara/rafagao.png")
rafagaocr = Image.load("Pictures/Deidara/rafagaoc.png")
rafagar = Image.load("Pictures/Deidara/rafaga.png")
rafagacr = Image.load("Pictures/Deidara/rafagac.png")
imgr = Image.load("Pictures/Deidara/img.png")
end
function madara()
mover = Image.load("Pictures/Madara/mover.png")
moverc = Image.load("Pictures/Madara/moverc.png")
golpe = Image.load("Pictures/Madara/golpe.png")
golpec = Image.load("Pictures/Madara/golpec.png")
rafagaoa = Image.load("Pictures/Madara/rafagao.png")
rafagaoc = Image.load("Pictures/Madara/rafagaoc.png")
rafaga = Image.load("Pictures/Madara/rafaga.png")
rafagac = Image.load("Pictures/Madara/rafagac.png")
poder = Image.load("Pictures/Madara/poder.png")
poderc = Image.load("Pictures/Madara/poderc.png")
salto = Image.load("Pictures/Madara/salto.png")
img = Image.load("Pictures/Madara/img.png")
end
function madarar()
moverr = Image.load("Pictures/Madara/mover.png")
movercr = Image.load("Pictures/Madara/moverc.png")
golper = Image.load("Pictures/Madara/golpe.png")
golpecr = Image.load("Pictures/Madara/golpec.png")
rafagaor = Image.load("Pictures/Madara/rafagao.png")
rafagaocr = Image.load("Pictures/Madara/rafagaoc.png")
rafagar = Image.load("Pictures/Madara/rafaga.png")
rafagacr = Image.load("Pictures/Madara/rafagac.png")
imgr = Image.load("Pictures/Madara/img.png")
end
function itachi()
mover = Image.load("Pictures/Itachi/mover.png")
moverc = Image.load("Pictures/Itachi/moverc.png")
golpe = Image.load("Pictures/Itachi/golpe.png")
golpec = Image.load("Pictures/Itachi/golpec.png")
rafagaoa = Image.load("Pictures/Itachi/rafagao.png")
rafagaoc = Image.load("Pictures/Itachi/rafagaoc.png")
rafaga = Image.load("Pictures/Itachi/rafaga.png")
rafagac = Image.load("Pictures/Itachi/rafagac.png")
poder = Image.load("Pictures/Itachi/poder.png")
poderc = Image.load("Pictures/Itachi/poderc.png")
salto = Image.load("Pictures/Itachi/salto.png")
img = Image.load("Pictures/Itachi/img.png")
end
function itachir()
moverr = Image.load("Pictures/Itachi/mover.png")
movercr = Image.load("Pictures/Itachi/moverc.png")
golper = Image.load("Pictures/Itachi/golpe.png")
golpecr = Image.load("Pictures/Itachi/golpec.png")
rafagaor = Image.load("Pictures/Itachi/rafagao.png")
rafagaocr = Image.load("Pictures/Itachi/rafagaoc.png")
rafagar = Image.load("Pictures/Itachi/rafaga.png")
rafagacr = Image.load("Pictures/Itachi/rafagac.png")
imgr = Image.load("Pictures/Itachi/img.png")
end
function Gai()
mover = Image.load("Pictures/Gai/mover.png")
moverc = Image.load("Pictures/Gai/moverc.png")
golpe = Image.load("Pictures/Gai/golpe.png")
golpec = Image.load("Pictures/Gai/golpec.png")
rafagaoa = Image.load("Pictures/Gai/rafagao.png")
rafagaoc = Image.load("Pictures/Gai/rafagaoc.png")
rafaga = Image.load("Pictures/Gai/rafaga.png")
rafagac = Image.load("Pictures/Gai/rafagac.png")
poder = Image.load("Pictures/Gai/poder.png")
poderc = Image.load("Pictures/Gai/poderc.png")
salto = Image.load("Pictures/Gai/salto.png")
img = Image.load("Pictures/Gai/img.png")
end
function Gair()
moverr = Image.load("Pictures/Gai/mover.png")
movercr = Image.load("Pictures/Gai/moverc.png")
golper = Image.load("Pictures/Gai/golpe.png")
golpecr = Image.load("Pictures/Gai/golpec.png")
rafagaor = Image.load("Pictures/Gai/rafagao.png")
rafagaocr = Image.load("Pictures/Gai/rafagaoc.png")
rafagar = Image.load("Pictures/Gai/rafaga.png")
rafagacr = Image.load("Pictures/Gai/rafagac.png")
imgr = Image.load("Pictures/Gai/img.png")
end
function danzou()
mover = Image.load("Pictures/Danzou/mover.png")
moverc = Image.load("Pictures/Danzou/moverc.png")
golpe = Image.load("Pictures/Danzou/golpe.png")
golpec = Image.load("Pictures/Danzou/golpec.png")
rafagaoa = Image.load("Pictures/Danzou/rafagao.png")
rafagaoc = Image.load("Pictures/Danzou/rafagaoc.png")
rafaga = Image.load("Pictures/Danzou/rafaga.png")
rafagac = Image.load("Pictures/Danzou/rafagac.png")
poder = Image.load("Pictures/Danzou/poder.png")
poderc = Image.load("Pictures/Danzou/poderc.png")
salto = Image.load("Pictures/Danzou/salto.png")
img = Image.load("Pictures/Danzou/img.png")
end
function danzour()
moverr = Image.load("Pictures/Danzou/mover.png")
movercr = Image.load("Pictures/Danzou/moverc.png")
golper = Image.load("Pictures/Danzou/golpe.png")
golpecr = Image.load("Pictures/Danzou/golpec.png")
rafagaor = Image.load("Pictures/Danzou/rafagao.png")
rafagaocr = Image.load("Pictures/Danzou/rafagaoc.png")
rafagar = Image.load("Pictures/Danzou/rafaga.png")
rafagacr = Image.load("Pictures/Danzou/rafagac.png")
imgr = Image.load("Pictures/Danzou/img.png")
end
function kabuto()
mover = Image.load("Pictures/Kabuto/mover.png")
moverc = Image.load("Pictures/Kabuto/moverc.png")
golpe = Image.load("Pictures/Kabuto/golpe.png")
golpec = Image.load("Pictures/Kabuto/golpec.png")
rafagaoa = Image.load("Pictures/Kabuto/rafagao.png")
rafagaoc = Image.load("Pictures/Kabuto/rafagaoc.png")
rafaga = Image.load("Pictures/Kabuto/rafaga.png")
rafagac = Image.load("Pictures/Kabuto/rafagac.png")
poder = Image.load("Pictures/Kabuto/poder.png")
poderc = Image.load("Pictures/Kabuto/poderc.png")
salto = Image.load("Pictures/Kabuto/salto.png")
img = Image.load("Pictures/Kabuto/img.png")
end
function kabutor()
moverr = Image.load("Pictures/Kabuto/mover.png")
movercr = Image.load("Pictures/Kabuto/moverc.png")
golper = Image.load("Pictures/Kabuto/golpe.png")
golpecr = Image.load("Pictures/Kabuto/golpec.png")
rafagaor = Image.load("Pictures/Kabuto/rafagao.png")
rafagaocr = Image.load("Pictures/Kabuto/rafagaoc.png")
rafagar = Image.load("Pictures/Kabuto/rafaga.png")
rafagacr = Image.load("Pictures/Kabuto/rafagac.png")
imgr = Image.load("Pictures/Kabuto/img.png")
end
function kisame()
mover = Image.load("Pictures/Kisame/mover.png")
moverc = Image.load("Pictures/Kisame/moverc.png")
golpe = Image.load("Pictures/Kisame/golpe.png")
golpec = Image.load("Pictures/Kisame/golpec.png")
rafagaoa = Image.load("Pictures/Kisame/rafagao.png")
rafagaoc = Image.load("Pictures/Kisame/rafagaoc.png")
rafaga = Image.load("Pictures/Kisame/rafaga.png")
rafagac = Image.load("Pictures/Kisame/rafagac.png")
poder = Image.load("Pictures/Kisame/poder.png")
poderc = Image.load("Pictures/Kisame/poderc.png")
salto = Image.load("Pictures/Kisame/salto.png")
img = Image.load("Pictures/Kisame/img.png")
end

function kisamer()
moverr = Image.load("Pictures/Kisame/mover.png")
movercr = Image.load("Pictures/Kisame/moverc.png")
golper = Image.load("Pictures/Kisame/golpe.png")
golpecr = Image.load("Pictures/Kisame/golpec.png")
rafagaor = Image.load("Pictures/Kisame/rafagao.png")
rafagaocr = Image.load("Pictures/Kisame/rafagaoc.png")
rafagar = Image.load("Pictures/Kisame/rafaga.png")
rafagacr = Image.load("Pictures/Kisame/rafagac.png")
imgr = Image.load("Pictures/Kisame/img.png")
end

function shino()
mover = Image.load("Pictures/Shino/mover.png")
moverc = Image.load("Pictures/Shino/moverc.png")
golpe = Image.load("Pictures/Shino/golpe.png")
golpec = Image.load("Pictures/Shino/golpec.png")
rafagaoa = Image.load("Pictures/Shino/rafagao.png")
rafagaoc = Image.load("Pictures/Shino/rafagaoc.png")
rafaga = Image.load("Pictures/Shino/rafaga.png")
rafagac = Image.load("Pictures/Shino/rafagac.png")
poder = Image.load("Pictures/Shino/poder.png")
poderc = Image.load("Pictures/Shino/poderc.png")
salto = Image.load("Pictures/Shino/salto.png")
img = Image.load("Pictures/Shino/img.png")
end
function shinor()
moverr = Image.load("Pictures/Shino/mover.png")
movercr = Image.load("Pictures/Shino/moverc.png")
golper = Image.load("Pictures/Shino/golpe.png")
golpecr = Image.load("Pictures/Shino/golpec.png")
rafagaor = Image.load("Pictures/Shino/rafagao.png")
rafagaocr = Image.load("Pictures/Shino/rafagaoc.png")
rafagar = Image.load("Pictures/Shino/rafaga.png")
rafagacr = Image.load("Pictures/Shino/rafagac.png")
imgr = Image.load("Pictures/Shino/img.png")
end
function kiba()
mover = Image.load("Pictures/Kiba/mover.png")
moverc = Image.load("Pictures/Kiba/moverc.png")
golpe = Image.load("Pictures/Kiba/golpe.png")
golpec = Image.load("Pictures/Kiba/golpec.png")
rafagaoa = Image.load("Pictures/Kiba/rafagao.png")
rafagaoc = Image.load("Pictures/Kiba/rafagaoc.png")
rafaga = Image.load("Pictures/Kiba/rafaga.png")
rafagac = Image.load("Pictures/Kiba/rafagac.png")
poder = Image.load("Pictures/Kiba/poder.png")
poderc = Image.load("Pictures/Kiba/poderc.png")
salto = Image.load("Pictures/Kiba/salto.png")
img = Image.load("Pictures/Kiba/img.png")
end
function kibar()
moverr = Image.load("Pictures/Kiba/mover.png")
movercr = Image.load("Pictures/Kiba/moverc.png")
golper = Image.load("Pictures/Kiba/golpe.png")
golpecr = Image.load("Pictures/Kiba/golpec.png")
rafagaor = Image.load("Pictures/Kiba/rafagao.png")
rafagaocr = Image.load("Pictures/Kiba/rafagaoc.png")
rafagar = Image.load("Pictures/Kiba/rafaga.png")
rafagacr = Image.load("Pictures/Kiba/rafagac.png")
imgr = Image.load("Pictures/Kiba/img.png")
end
function hinata()
mover = Image.load("Pictures/Hinata/mover.png")
moverc = Image.load("Pictures/Hinata/moverc.png")
golpe = Image.load("Pictures/Hinata/golpe.png")
golpec = Image.load("Pictures/Hinata/golpec.png")
rafagaoa = Image.load("Pictures/Hinata/rafagao.png")
rafagaoc = Image.load("Pictures/Hinata/rafagaoc.png")
rafaga = Image.load("Pictures/Hinata/rafaga.png")
rafagac = Image.load("Pictures/Hinata/rafagac.png")
poder = Image.load("Pictures/Hinata/poder.png")
poderc = Image.load("Pictures/Hinata/poderc.png")
salto = Image.load("Pictures/Hinata/salto.png")
img = Image.load("Pictures/Hinata/img.png")
end
function hinatar()
moverr = Image.load("Pictures/Hinata/mover.png")
movercr = Image.load("Pictures/Hinata/moverc.png")
golper = Image.load("Pictures/Hinata/golpe.png")
golpecr = Image.load("Pictures/Hinata/golpec.png")
rafagaor = Image.load("Pictures/Hinata/rafagao.png")
rafagaocr = Image.load("Pictures/Hinata/rafagaoc.png")
rafagar = Image.load("Pictures/Hinata/rafaga.png")
rafagacr = Image.load("Pictures/Hinata/rafagac.png")
imgr = Image.load("Pictures/Hinata/img.png")
end


function jiraiya()
mover = Image.load("Pictures/Jiraiya/mover.png")
moverc = Image.load("Pictures/Jiraiya/moverc.png")
golpe = Image.load("Pictures/Jiraiya/golpe.png")
golpec = Image.load("Pictures/Jiraiya/golpec.png")
rafagaoa = Image.load("Pictures/Jiraiya/rafagao.png")
rafagaoc = Image.load("Pictures/Jiraiya/rafagaoc.png")
rafaga = Image.load("Pictures/Jiraiya/rafaga.png")
rafagac = Image.load("Pictures/Jiraiya/rafagac.png")
poder = Image.load("Pictures/Jiraiya/poder.png")
poderc = Image.load("Pictures/Jiraiya/poderc.png")
salto = Image.load("Pictures/Jiraiya/salto.png")
img = Image.load("Pictures/Jiraiya/img.png")
end
function jiraiyar()
moverr = Image.load("Pictures/Jiraiya/mover.png")
movercr = Image.load("Pictures/Jiraiya/moverc.png")
golper = Image.load("Pictures/Jiraiya/golpe.png")
golpecr = Image.load("Pictures/Jiraiya/golpec.png")
rafagaor = Image.load("Pictures/Jiraiya/rafagao.png")
rafagaocr = Image.load("Pictures/Jiraiya/rafagaoc.png")
rafagar = Image.load("Pictures/Jiraiya/rafaga.png")
rafagacr = Image.load("Pictures/Jiraiya/rafagac.png")
imgr = Image.load("Pictures/Jiraiya/img.png")
end
function tsunade()
mover = Image.load("Pictures/Tsunade/mover.png")
moverc = Image.load("Pictures/Tsunade/moverc.png")
golpe = Image.load("Pictures/Tsunade/golpe.png")
golpec = Image.load("Pictures/Tsunade/golpec.png")
rafagaoa = Image.load("Pictures/Tsunade/rafagao.png")
rafagaoc = Image.load("Pictures/Tsunade/rafagaoc.png")
rafaga = Image.load("Pictures/Tsunade/rafaga.png")
rafagac = Image.load("Pictures/Tsunade/rafagac.png")
poder = Image.load("Pictures/Tsunade/poder.png")
poderc = Image.load("Pictures/Tsunade/poderc.png")
salto = Image.load("Pictures/Tsunade/salto.png")
img = Image.load("Pictures/Tsunade/img.png")
end
function tsunader()
moverr = Image.load("Pictures/Tsunade/mover.png")
movercr = Image.load("Pictures/Tsunade/moverc.png")
golper = Image.load("Pictures/Tsunade/golpe.png")
golpecr = Image.load("Pictures/Tsunade/golpec.png")
rafagaor = Image.load("Pictures/Tsunade/rafagao.png")
rafagaocr = Image.load("Pictures/Tsunade/rafagaoc.png")
rafagar = Image.load("Pictures/Tsunade/rafaga.png")
rafagacr = Image.load("Pictures/Tsunade/rafagac.png")
imgr = Image.load("Pictures/Tsunade/img.png")
end


function tobi()
mover = Image.load("Pictures/Tobi/mover.png")
moverc = Image.load("Pictures/Tobi/moverc.png")
golpe = Image.load("Pictures/Tobi/golpe.png")
golpec = Image.load("Pictures/Tobi/golpec.png")
rafagaoa = Image.load("Pictures/Tobi/rafagao.png")
rafagaoc = Image.load("Pictures/Tobi/rafagaoc.png")
rafaga = Image.load("Pictures/Tobi/rafaga.png")
rafagac = Image.load("Pictures/Tobi/rafagac.png")
poder = Image.load("Pictures/Tobi/poder.png")
poderc = Image.load("Pictures/Tobi/poderc.png")
salto = Image.load("Pictures/Tobi/salto.png")
img = Image.load("Pictures/Tobi/img.png")
end
function tobir()
moverr = Image.load("Pictures/Tobi/mover.png")
movercr = Image.load("Pictures/Tobi/moverc.png")
golper = Image.load("Pictures/Tobi/golpe.png")
golpecr = Image.load("Pictures/Tobi/golpec.png")
rafagaor = Image.load("Pictures/Tobi/rafagao.png")
rafagaocr = Image.load("Pictures/Tobi/rafagaoc.png")
rafagar = Image.load("Pictures/Tobi/rafaga.png")
rafagacr = Image.load("Pictures/Tobi/rafagac.png")
imgr = Image.load("Pictures/Tobi/img.png")
end
function pain()
mover = Image.load("Pictures/Pain/mover.png")
moverc = Image.load("Pictures/Pain/moverc.png")
golpe = Image.load("Pictures/Pain/golpe.png")
golpec = Image.load("Pictures/Pain/golpec.png")
rafagaoa = Image.load("Pictures/Pain/rafagao.png")
rafagaoc = Image.load("Pictures/Pain/rafagaoc.png")
rafaga = Image.load("Pictures/Pain/rafaga.png")
rafagac = Image.load("Pictures/Pain/rafagac.png")
poder = Image.load("Pictures/Pain/poder.png")
poderc = Image.load("Pictures/Pain/poderc.png")
salto = Image.load("Pictures/Pain/salto.png")
img = Image.load("Pictures/Pain/img.png")
end
function painr()
moverr = Image.load("Pictures/Pain/mover.png")
movercr = Image.load("Pictures/Pain/moverc.png")
golper = Image.load("Pictures/Pain/golpe.png")
golpecr = Image.load("Pictures/Pain/golpec.png")
rafagaor = Image.load("Pictures/Pain/rafagao.png")
rafagaocr = Image.load("Pictures/Pain/rafagaoc.png")
rafagar = Image.load("Pictures/Pain/rafaga.png")
rafagacr = Image.load("Pictures/Pain/rafagac.png")
imgr = Image.load("Pictures/Pain/img.png")
end


function killerbee()
mover = Image.load("Pictures/Killerbee/mover.png")
moverc = Image.load("Pictures/Killerbee/moverc.png")
golpe = Image.load("Pictures/Killerbee/golpe.png")
golpec = Image.load("Pictures/Killerbee/golpec.png")
rafagaoa = Image.load("Pictures/Killerbee/rafagao.png")
rafagaoc = Image.load("Pictures/Killerbee/rafagaoc.png")
rafaga = Image.load("Pictures/Killerbee/rafaga.png")
rafagac = Image.load("Pictures/Killerbee/rafagac.png")
poder = Image.load("Pictures/Killerbee/poder.png")
poderc = Image.load("Pictures/Killerbee/poderc.png")
salto = Image.load("Pictures/Killerbee/salto.png")
img = Image.load("Pictures/Killerbee/img.png")
end
function killerbeer()
moverr = Image.load("Pictures/Killerbee/mover.png")
movercr = Image.load("Pictures/Killerbee/moverc.png")
golper = Image.load("Pictures/Killerbee/golpe.png")
golpecr = Image.load("Pictures/Killerbee/golpec.png")
rafagaor = Image.load("Pictures/Killerbee/rafagao.png")
rafagaocr = Image.load("Pictures/Killerbee/rafagaoc.png")
rafagar = Image.load("Pictures/Killerbee/rafaga.png")
rafagacr = Image.load("Pictures/Killerbee/rafagac.png")
imgr = Image.load("Pictures/Killerbee/img.png")
end
function orochimaru()
mover = Image.load("Pictures/Orochimaru/mover.png")
moverc = Image.load("Pictures/Orochimaru/moverc.png")
golpe = Image.load("Pictures/Orochimaru/golpe.png")
golpec = Image.load("Pictures/Orochimaru/golpec.png")
rafagaoa = Image.load("Pictures/Orochimaru/rafagao.png")
rafagaoc = Image.load("Pictures/Orochimaru/rafagaoc.png")
rafaga = Image.load("Pictures/Orochimaru/rafaga.png")
rafagac = Image.load("Pictures/Orochimaru/rafagac.png")
poder = Image.load("Pictures/Orochimaru/poder.png")
poderc = Image.load("Pictures/Orochimaru/poderc.png")
salto = Image.load("Pictures/Orochimaru/salto.png")
img = Image.load("Pictures/Orochimaru/img.png")
end
function orochimarur()
moverr = Image.load("Pictures/Orochimaru/mover.png")
movercr = Image.load("Pictures/Orochimaru/moverc.png")
golper = Image.load("Pictures/Orochimaru/golpe.png")
golpecr = Image.load("Pictures/Orochimaru/golpec.png")
rafagaor = Image.load("Pictures/Orochimaru/rafagao.png")
rafagaocr = Image.load("Pictures/Orochimaru/rafagaoc.png")
rafagar = Image.load("Pictures/Orochimaru/rafaga.png")
rafagacr = Image.load("Pictures/Orochimaru/rafagac.png")
imgr = Image.load("Pictures/Orochimaru/img.png")
end
function neji()
mover = Image.load("Pictures/Neji/mover.png")
moverc = Image.load("Pictures/Neji/moverc.png")
golpe = Image.load("Pictures/Neji/golpe.png")
golpec = Image.load("Pictures/Neji/golpec.png")
rafagaoa = Image.load("Pictures/Neji/rafagao.png")
rafagaoc = Image.load("Pictures/Neji/rafagaoc.png")
rafaga = Image.load("Pictures/Neji/rafaga.png")
rafagac = Image.load("Pictures/Neji/rafagac.png")
poder = Image.load("Pictures/Neji/poder.png")
poderc = Image.load("Pictures/Neji/poderc.png")
salto = Image.load("Pictures/Neji/salto.png")
img = Image.load("Pictures/Neji/img.png")
end
function nejir()
moverr = Image.load("Pictures/Neji/mover.png")
movercr = Image.load("Pictures/Neji/moverc.png")
golper = Image.load("Pictures/Neji/golpe.png")
golpecr = Image.load("Pictures/Neji/golpec.png")
rafagaor = Image.load("Pictures/Neji/rafagao.png")
rafagaocr = Image.load("Pictures/Neji/rafagaoc.png")
rafagar = Image.load("Pictures/Neji/rafaga.png")
rafagacr = Image.load("Pictures/Neji/rafagac.png")
imgr = Image.load("Pictures/Neji/img.png")
end
function konan()
mover = Image.load("Pictures/Konan/mover.png")
moverc = Image.load("Pictures/Konan/moverc.png")
golpe = Image.load("Pictures/Konan/golpe.png")
golpec = Image.load("Pictures/Konan/golpec.png")
rafagaoa = Image.load("Pictures/Konan/rafagao.png")
rafagaoc = Image.load("Pictures/Konan/rafagaoc.png")
rafaga = Image.load("Pictures/Konan/rafaga.png")
rafagac = Image.load("Pictures/Konan/rafagac.png")
poder = Image.load("Pictures/Konan/poder.png")
poderc = Image.load("Pictures/Konan/poderc.png")
salto = Image.load("Pictures/Konan/salto.png")
img = Image.load("Pictures/Konan/img.png")
end
function konanr()
moverr = Image.load("Pictures/Konan/mover.png")
movercr = Image.load("Pictures/Konan/moverc.png")
golper = Image.load("Pictures/Konan/golpe.png")
golpecr = Image.load("Pictures/Konan/golpec.png")
rafagaor = Image.load("Pictures/Konan/rafagao.png")
rafagaocr = Image.load("Pictures/Konan/rafagaoc.png")
rafagar = Image.load("Pictures/Konan/rafaga.png")
rafagacr = Image.load("Pictures/Konan/rafagac.png")
imgr = Image.load("Pictures/Konan/img.png")
end
function mizukage()
mover = Image.load("Pictures/Mizukage/mover.png")
moverc = Image.load("Pictures/Mizukage/moverc.png")
golpe = Image.load("Pictures/Mizukage/golpe.png")
golpec = Image.load("Pictures/Mizukage/golpec.png")
rafagaoa = Image.load("Pictures/Mizukage/rafagao.png")
rafagaoc = Image.load("Pictures/Mizukage/rafagaoc.png")
rafaga = Image.load("Pictures/Mizukage/rafaga.png")
rafagac = Image.load("Pictures/Mizukage/rafagac.png")
poder = Image.load("Pictures/Mizukage/poder.png")
poderc = Image.load("Pictures/Mizukage/poderc.png")
salto = Image.load("Pictures/Mizukage/salto.png")
img = Image.load("Pictures/Mizukage/img.png")
end
function mizukager()
moverr = Image.load("Pictures/Mizukage/mover.png")
movercr = Image.load("Pictures/Mizukage/moverc.png")
golper = Image.load("Pictures/Mizukage/golpe.png")
golpecr = Image.load("Pictures/Mizukage/golpec.png")
rafagaor = Image.load("Pictures/Mizukage/rafagao.png")
rafagaocr = Image.load("Pictures/Mizukage/rafagaoc.png")
rafagar = Image.load("Pictures/Mizukage/rafaga.png")
rafagacr = Image.load("Pictures/Mizukage/rafagac.png")
imgr = Image.load("Pictures/Mizukage/img.png")
end


function hashirama()
mover = Image.load("Pictures/Hashirama/mover.png")
moverc = Image.load("Pictures/Hashirama/moverc.png")
golpe = Image.load("Pictures/Hashirama/golpe.png")
golpec = Image.load("Pictures/Hashirama/golpec.png")
rafagaoa = Image.load("Pictures/Hashirama/rafagao.png")
rafagaoc = Image.load("Pictures/Hashirama/rafagaoc.png")
rafaga = Image.load("Pictures/Hashirama/rafaga.png")
rafagac = Image.load("Pictures/Hashirama/rafagac.png")
poder = Image.load("Pictures/Hashirama/poder.png")
poderc = Image.load("Pictures/Hashirama/poderc.png")
salto = Image.load("Pictures/Hashirama/salto.png")
img = Image.load("Pictures/Hashirama/img.png")
end
function hashiramar()
moverr = Image.load("Pictures/Hashirama/mover.png")
movercr = Image.load("Pictures/Hashirama/moverc.png")
golper = Image.load("Pictures/Hashirama/golpe.png")
golpecr = Image.load("Pictures/Hashirama/golpec.png")
rafagaor = Image.load("Pictures/Hashirama/rafagao.png")
rafagaocr = Image.load("Pictures/Hashirama/rafagaoc.png")
rafagar = Image.load("Pictures/Hashirama/rafaga.png")
rafagacr = Image.load("Pictures/Hashirama/rafagac.png")
imgr = Image.load("Pictures/Hashirama/img.png")
end


function yamato()
mover = Image.load("Pictures/Yamato/mover.png")
moverc = Image.load("Pictures/Yamato/moverc.png")
golpe = Image.load("Pictures/Yamato/golpe.png")
golpec = Image.load("Pictures/Yamato/golpec.png")
rafagaoa = Image.load("Pictures/Yamato/rafagao.png")
rafagaoc = Image.load("Pictures/Yamato/rafagaoc.png")
rafaga = Image.load("Pictures/Yamato/rafaga.png")
rafagac = Image.load("Pictures/Yamato/rafagac.png")
poder = Image.load("Pictures/Yamato/poder.png")
poderc = Image.load("Pictures/Yamato/poderc.png")
salto = Image.load("Pictures/Yamato/salto.png")
img = Image.load("Pictures/Yamato/img.png")
end
function yamator()
moverr = Image.load("Pictures/Yamato/mover.png")
movercr = Image.load("Pictures/Yamato/moverc.png")
golper = Image.load("Pictures/Yamato/golpe.png")
golpecr = Image.load("Pictures/Yamato/golpec.png")
rafagaor = Image.load("Pictures/Yamato/rafagao.png")
rafagaocr = Image.load("Pictures/Yamato/rafagaoc.png")
rafagar = Image.load("Pictures/Yamato/rafaga.png")
rafagacr = Image.load("Pictures/Yamato/rafagac.png")
imgr = Image.load("Pictures/Yamato/img.png")
end


function shikamaru()
mover = Image.load("Pictures/Shikamaru/mover.png")
moverc = Image.load("Pictures/Shikamaru/moverc.png")
golpe = Image.load("Pictures/Shikamaru/golpe.png")
golpec = Image.load("Pictures/Shikamaru/golpec.png")
rafagaoa = Image.load("Pictures/Shikamaru/rafagao.png")
rafagaoc = Image.load("Pictures/Shikamaru/rafagaoc.png")
rafaga = Image.load("Pictures/Shikamaru/rafaga.png")
rafagac = Image.load("Pictures/Shikamaru/rafagac.png")
poder = Image.load("Pictures/Shikamaru/poder.png")
poderc = Image.load("Pictures/Shikamaru/poderc.png")
salto = Image.load("Pictures/Shikamaru/salto.png")
img = Image.load("Pictures/Shikamaru/img.png")
end
function shikamarur()
moverr = Image.load("Pictures/Shikamaru/mover.png")
movercr = Image.load("Pictures/Shikamaru/moverc.png")
golper = Image.load("Pictures/Shikamaru/golpe.png")
golpecr = Image.load("Pictures/Shikamaru/golpec.png")
rafagaor = Image.load("Pictures/Shikamaru/rafagao.png")
rafagaocr = Image.load("Pictures/Shikamaru/rafagaoc.png")
rafagar = Image.load("Pictures/Shikamaru/rafaga.png")
rafagacr = Image.load("Pictures/Shikamaru/rafagac.png")
imgr = Image.load("Pictures/Shikamaru/img.png")
end

function suigetsu()
mover = Image.load("Pictures/Suigetsu/mover.png")
moverc = Image.load("Pictures/Suigetsu/moverc.png")
golpe = Image.load("Pictures/Suigetsu/golpe.png")
golpec = Image.load("Pictures/Suigetsu/golpec.png")
rafagaoa = Image.load("Pictures/Suigetsu/rafagao.png")
rafagaoc = Image.load("Pictures/Suigetsu/rafagaoc.png")
rafaga = Image.load("Pictures/Suigetsu/rafaga.png")
rafagac = Image.load("Pictures/Suigetsu/rafagac.png")
poder = Image.load("Pictures/Suigetsu/poder.png")
poderc = Image.load("Pictures/Suigetsu/poderc.png")
salto = Image.load("Pictures/Suigetsu/salto.png")
img = Image.load("Pictures/Suigetsu/img.png")
end
function suigetsur()
moverr = Image.load("Pictures/Suigetsu/mover.png")
movercr = Image.load("Pictures/Suigetsu/moverc.png")
golper = Image.load("Pictures/Suigetsu/golpe.png")
golpecr = Image.load("Pictures/Suigetsu/golpec.png")
rafagaor = Image.load("Pictures/Suigetsu/rafagao.png")
rafagaocr = Image.load("Pictures/Suigetsu/rafagaoc.png")
rafagar = Image.load("Pictures/Suigetsu/rafaga.png")
rafagacr = Image.load("Pictures/Suigetsu/rafagac.png")
imgr = Image.load("Pictures/Suigetsu/img.png")
end

function hiruzen()
mover = Image.load("Pictures/Hiruzen/mover.png")
moverc = Image.load("Pictures/Hiruzen/moverc.png")
golpe = Image.load("Pictures/Hiruzen/golpe.png")
golpec = Image.load("Pictures/Hiruzen/golpec.png")
rafagaoa = Image.load("Pictures/Hiruzen/rafagao.png")
rafagaoc = Image.load("Pictures/Hiruzen/rafagaoc.png")
rafaga = Image.load("Pictures/Hiruzen/rafaga.png")
rafagac = Image.load("Pictures/Hiruzen/rafagac.png")
poder = Image.load("Pictures/Hiruzen/poder.png")
poderc = Image.load("Pictures/Hiruzen/poderc.png")
salto = Image.load("Pictures/Hiruzen/salto.png")
img = Image.load("Pictures/Hiruzen/img.png")
end
function hiruzenr()
moverr = Image.load("Pictures/Hiruzen/mover.png")
movercr = Image.load("Pictures/Hiruzen/moverc.png")
golper = Image.load("Pictures/Hiruzen/golpe.png")
golpecr = Image.load("Pictures/Hiruzen/golpec.png")
rafagaor = Image.load("Pictures/Hiruzen/rafagao.png")
rafagaocr = Image.load("Pictures/Hiruzen/rafagaoc.png")
rafagar = Image.load("Pictures/Hiruzen/rafaga.png")
rafagacr = Image.load("Pictures/Hiruzen/rafagac.png")
imgr = Image.load("Pictures/Hiruzen/img.png")
end

function tobirama()
mover = Image.load("Pictures/Tobirama/mover.png")
moverc = Image.load("Pictures/Tobirama/moverc.png")
golpe = Image.load("Pictures/Tobirama/golpe.png")
golpec = Image.load("Pictures/Tobirama/golpec.png")
rafagaoa = Image.load("Pictures/Tobirama/rafagao.png")
rafagaoc = Image.load("Pictures/Tobirama/rafagaoc.png")
rafaga = Image.load("Pictures/Tobirama/rafaga.png")
rafagac = Image.load("Pictures/Tobirama/rafagac.png")
poder = Image.load("Pictures/Tobirama/poder.png")
poderc = Image.load("Pictures/Tobirama/poderc.png")
salto = Image.load("Pictures/Tobirama/salto.png")
img = Image.load("Pictures/Tobirama/img.png")
end
function tobiramar()
moverr = Image.load("Pictures/Tobirama/mover.png")
movercr = Image.load("Pictures/Tobirama/moverc.png")
golper = Image.load("Pictures/Tobirama/golpe.png")
golpecr = Image.load("Pictures/Tobirama/golpec.png")
rafagaor = Image.load("Pictures/Tobirama/rafagao.png")
rafagaocr = Image.load("Pictures/Tobirama/rafagaoc.png")
rafagar = Image.load("Pictures/Tobirama/rafaga.png")
rafagacr = Image.load("Pictures/Tobirama/rafagac.png")
imgr = Image.load("Pictures/Tobirama/img.png")
end

function sai()
mover = Image.load("Pictures/Sai/mover.png")
moverc = Image.load("Pictures/Sai/moverc.png")
golpe = Image.load("Pictures/Sai/golpe.png")
golpec = Image.load("Pictures/Sai/golpec.png")
rafagaoa = Image.load("Pictures/Sai/rafagao.png")
rafagaoc = Image.load("Pictures/Sai/rafagaoc.png")
rafaga = Image.load("Pictures/Sai/rafaga.png")
rafagac = Image.load("Pictures/Sai/rafagac.png")
poder = Image.load("Pictures/Sai/poder.png")
poderc = Image.load("Pictures/Sai/poderc.png")
salto = Image.load("Pictures/Sai/salto.png")
img = Image.load("Pictures/Sai/img.png")
end
function sair()
moverr = Image.load("Pictures/Sai/mover.png")
movercr = Image.load("Pictures/Sai/moverc.png")
golper = Image.load("Pictures/Sai/golpe.png")
golpecr = Image.load("Pictures/Sai/golpec.png")
rafagaor = Image.load("Pictures/Sai/rafagao.png")
rafagaocr = Image.load("Pictures/Sai/rafagaoc.png")
rafagar = Image.load("Pictures/Sai/rafaga.png")
rafagacr = Image.load("Pictures/Sai/rafagac.png")
imgr = Image.load("Pictures/Sai/img.png")
end

function asuma()
mover = Image.load("Pictures/Asuma/mover.png")
moverc = Image.load("Pictures/Asuma/moverc.png")
golpe = Image.load("Pictures/Asuma/golpe.png")
golpec = Image.load("Pictures/Asuma/golpec.png")
rafagaoa = Image.load("Pictures/Asuma/rafagao.png")
rafagaoc = Image.load("Pictures/Asuma/rafagaoc.png")
rafaga = Image.load("Pictures/Asuma/rafaga.png")
rafagac = Image.load("Pictures/Asuma/rafagac.png")
poder = Image.load("Pictures/Asuma/poder.png")
poderc = Image.load("Pictures/Asuma/poderc.png")
salto = Image.load("Pictures/Asuma/salto.png")
img = Image.load("Pictures/Asuma/img.png")
end
function asumar()
moverr = Image.load("Pictures/Asuma/mover.png")
movercr = Image.load("Pictures/Asuma/moverc.png")
golper = Image.load("Pictures/Asuma/golpe.png")
golpecr = Image.load("Pictures/Asuma/golpec.png")
rafagaor = Image.load("Pictures/Asuma/rafagao.png")
rafagaocr = Image.load("Pictures/Asuma/rafagaoc.png")
rafagar = Image.load("Pictures/Asuma/rafaga.png")
rafagacr = Image.load("Pictures/Asuma/rafagac.png")
imgr = Image.load("Pictures/Asuma/img.png")
end

function juugo()
mover = Image.load("Pictures/Juugo/mover.png")
moverc = Image.load("Pictures/Juugo/moverc.png")
golpe = Image.load("Pictures/Juugo/golpe.png")
golpec = Image.load("Pictures/Juugo/golpec.png")
rafagaoa = Image.load("Pictures/Juugo/rafagao.png")
rafagaoc = Image.load("Pictures/Juugo/rafagaoc.png")
rafaga = Image.load("Pictures/Juugo/rafaga.png")
rafagac = Image.load("Pictures/Juugo/rafagac.png")
poder = Image.load("Pictures/Juugo/poder.png")
poderc = Image.load("Pictures/Juugo/poderc.png")
salto = Image.load("Pictures/Juugo/salto.png")
img = Image.load("Pictures/Juugo/img.png")
end
function juugor()
moverr = Image.load("Pictures/Juugo/mover.png")
movercr = Image.load("Pictures/Juugo/moverc.png")
golper = Image.load("Pictures/Juugo/golpe.png")
golpecr = Image.load("Pictures/Juugo/golpec.png")
rafagaor = Image.load("Pictures/Juugo/rafagao.png")
rafagaocr = Image.load("Pictures/Juugo/rafagaoc.png")
rafagar = Image.load("Pictures/Juugo/rafaga.png")
rafagacr = Image.load("Pictures/Juugo/rafagac.png")
imgr = Image.load("Pictures/Juugo/img.png")
end

function minato()
mover = Image.load("Pictures/Minato/mover.png")
moverc = Image.load("Pictures/Minato/moverc.png")
golpe = Image.load("Pictures/Minato/golpe.png")
golpec = Image.load("Pictures/Minato/golpec.png")
rafagaoa = Image.load("Pictures/Minato/rafagao.png")
rafagaoc = Image.load("Pictures/Minato/rafagaoc.png")
rafaga = Image.load("Pictures/Minato/rafaga.png")
rafagac = Image.load("Pictures/Minato/rafagac.png")
poder = Image.load("Pictures/Minato/poder.png")
poderc = Image.load("Pictures/Minato/poderc.png")
salto = Image.load("Pictures/Minato/salto.png")
img = Image.load("Pictures/Minato/img.png")
end
function minator()
moverr = Image.load("Pictures/Minato/mover.png")
movercr = Image.load("Pictures/Minato/moverc.png")
golper = Image.load("Pictures/Minato/golpe.png")
golpecr = Image.load("Pictures/Minato/golpec.png")
rafagaor = Image.load("Pictures/Minato/rafagao.png")
rafagaocr = Image.load("Pictures/Minato/rafagaoc.png")
rafagar = Image.load("Pictures/Minato/rafaga.png")
rafagacr = Image.load("Pictures/Minato/rafagac.png")
imgr = Image.load("Pictures/Minato/img.png")
end

function Fondos1()
fondos1 = Image.load("Pictures/Arena/1.png")
end
function Fondos2()
fondos2 = Image.load("Pictures/Arena/2.png")
end
function Fondos3()
fondos3 = Image.load("Pictures/Arena/3.png")
end
function Fondos4()
fondos4 = Image.load("Pictures/Arena/4.png")
end
function Fondos5()
fondos5 = Image.load("Pictures/Arena/5.png")
end
function Fondos6()
fondos6 = Image.load("Pictures/Arena/6.png")
end
function Fondos7()
fondos7 = Image.load("Pictures/Arena/7.png")
end
function Fondos8()
fondos8 = Image.load("Pictures/Arena/8.png")
end
function Fondos9()
fondos9 = Image.load("Pictures/Arena/9.png")
end



Rot = Color.new(255,0,0)
Gruen = Color.new(0,255,0)

sangres = Image.load("Pictures/Rest/HP.png")
sangree = Image.load("Pictures/Rest/GegnerHP.png")

Player = {x=0,y=40,salud=125,ancho=60,alto=50,chakra=62,imgx = 12,imgy = 4}
Gegner = {x=430,y=40,salud=125,ancho=60,alto=50,chakra=62,imgx = 294,imgy = 0}
kunais = {x = 0,y = 140,alto = 50, ancho = 60}

barraSalud = {}
barraSalud.y = 10

mover1 = {x = 0, y = 0, pasos = 0}
mover2 = {x = 0, y = 65, pasos = 0}
mover3 = {x = 0, y = 130, pasos = 0}
mover4 = {x = 0, y = 195, pasos = 0}
mover5 = {x = 0, y = 260, pasos = 0}
mover6 = {x = 0, y = 325, pasos = 0}

mover11 = {x = 0, y = 0, pasos1 = 0}
mover22 = {x = 0, y = 65, pasos1 = 0}
mover33 = {x = 0, y = 130, pasos1 = 0}
mover44 = {x = 0, y = 195, pasos1 = 0}
mover55 = {x = 0, y = 260, pasos1= 0}
mover66 = {x = 0, y = 325, pasos1 = 0}

mover111 = {x = 0, y = 0, pasos5 = 0}
mover222 = {x = 0, y = 65, pasos5 = 0}
mover333 = {x = 0, y = 130, pasos5 = 0}
mover444 = {x = 0, y = 195, pasos5 = 0}
mover555 = {x = 0, y = 260, pasos5 = 0}
mover666 = {x = 0, y = 325, pasos5 = 0}

mover1111 = {x = 0, y = 0,pasos6 = 0}
mover2222 = {x = 0, y = 65,pasos6= 0}
mover3333 = {x = 0, y = 130, pasos6 = 0}
mover4444 = {x = 0, y = 195,pasos6= 0}
mover5555 = {x = 0, y = 260, pasos6= 0}
mover6666 = {x = 0, y = 325, pasos6 = 0}

golpe1 = {x = 0, y = 0 }
golpe2 = {x = 0, y = 65 }
golpe3 = {x = 0, y = 130 }
golpe4 = {x = 0, y = 195}
golpe5 = {x = 0, y = 260}
golpe6 = {x = 0, y = 325}

golpe11 = {x = 0, y = 0 }
golpe22 = {x = 0, y = 65 }
golpe33 = {x = 0, y = 130 }
golpe44 = {x = 0, y = 195}
golpe55 = {x = 0, y = 260}
golpe66 = {x = 0, y = 325}


rafagao1 = {x = 0, y = 0 }
rafagao2 = {x = 0, y= 80 }
rafagao3 = {x = 0, y = 160 }
rafagao4 = {x = 0, y = 240}

rafagao11 = {x = 0, y = 0 }
rafagao22 = {x = 0, y = 80 }
rafagao33 = {x = 0, y = 160 }
rafagao44 = {x = 0, y = 240}


rafaga1 = {x = 0, y = 0 }
rafaga2 = {x = 0, y = 96 }
rafaga3 = {x = 0, y = 192}
rafaga4 = {x = 0, y = 288}
rafaga5 = {x = 0, y= 384}


rafaga11 = {x = 0, y = 0 }
rafaga22 = {x = 0, y = 96 }
rafaga33 = {x = 0, y = 192 }
rafaga44 = {x = 0, y = 288}
rafaga55 = {x = 0, y = 384}

especial1 = {x = 0, y = 0 }
especial2 = {x = 0, y = 120 }
especial3 = {x = 0, y = 240}
especial4 = {x = 0, y = 360}

especial11 = {x = 0, y = 0 }
especial22 = {x = 0, y = 120 }
especial33 = {x = 0, y = 240}
especial44 = {x = 0, y = 360}

salto1 = {x = 0, y = 0 }
salto2 = {x = 0, y = 64 }
salto3 = {x = 0, y = 128 }
salto4 = {x = 0, y = 192 }
salto5 = {x = 0, y = 256 }
salto6 = {x = 0, y = 320 }


dirmov = mover11
dire = especial1
dire1 = especial11
rezpaldosalto = salto1
rezpaldom = mover1
rezpaldom1 = mover11
rezpaldom2 = mover111
rezpaldom3 = mover1111
rezpaldog = golpe1
rezpaldog1 = golpe11
rezpaldoa = rafagao1
rezpaldoa1 = rafagao11
rezpaldob = rafaga1
rezpaldob1 = rafaga11
rezpaldosaltos = salto1
posicion = "derecha"
posicion1 = "izquierda"



Dinero = 0
guardar = 0



inicio = 0
relog = 0
tiempos = 0

inicio2 = 0
tiempos2 = 0
relog2 = 0

inicio3 = 0
tiempos3 = 0
relog3 = 0

inicio4 = 0
tiempos4 = 0
relog4 = 0

inicio5 = 0
tiempos5 = 0
relog5 = 0

tiempos6 = 0
relog6 = 0
inicio6 = 0

tiempos7 = 0
relog7 = 60
inicio7 = 0

Golpes = 0
rafagaO = 0
especial = 0
Rafaga = 0

Golpes1 = 0
rafagaO1 = 0
especiales = 0
Rafaga1 = 0

arribas1 = 0
varia = 0
varias = 0
glpe = 0
glpe1 = 0
gan = 0
per = 0
salt = 0
bb = 0
distancia = 0
sep = 0
arribas = 0
gg = 0
ss = 0
dano = 0
danos = 0
inicio8 = 0
letras = Font.load("Fonts/Geek a byte 2.ttf")
letras:setPixelSizes(0,15)
sombra = 1
letras2 = Font.load("Fonts/Geek a byte 2.ttf")
letras2:setPixelSizes(0,35)
letras7 = Font.load("Fonts/animeace.ttf")
letras7:setPixelSizes(0,15)
Hilfe = 0
kuna = 0
iz = 0
de = 0

if Arena == 1 then
Fondos1()
end
if Arena == 2 then
Fondos2()
end
if Arena == 3 then
Fondos3()
end
if Arena == 4 then
Fondos4()
end
if Arena == 5 then
Fondos5()
end
if Arena == 6 then
Fondos6()
end
if Arena == 7 then
Fondos7()
end
if Arena == 8 then
Fondos8()
end
if Arena == 9 then
Fondos9()
end



------------------------------------------------------------------------------------------------
----------------------------------------Story--madara----------------------------------------
------------------------------------------------------------------------------------------------
if story == 1 and Spieler == 9 then
madarar()
end
if story == 2 and Spieler == 9  then
deidarar()
end
if story == 3 and Spieler == 9  then
danzour()
end
if story == 4 and Spieler == 9  then
kibar()
end
if story == 5 and Spieler == 9  then
hinatar()
end
if story == 6 and Spieler == 9 then
painr()
end
if story == 7 and Spieler == 9  then
tobir()
end
if story == 8 and Spieler == 9  then
Gair()
end
if story == 9 and Spieler == 9  then
kisamer()
end
if story == 10 and Spieler == 9  then
hashiramar()
end
------------------------------------------------------------------------------------------------
----------------------------------------Story--kisame----------------------------------------
------------------------------------------------------------------------------------------------
if story == 1 and Spieler == 14 then
Feind = 12
danzour()
end
if story == 2 and Spieler == 14 then
Feind = 13
kabutor()
end
if story == 3 and Spieler == 14 then
Feind = 15
shinor()
end
if story == 4 and Spieler == 14 then
Feind = 6
gaarar()
end
if story == 5 and Spieler == 14 then
Feind = 5
temarir()
end
if story == 6 and Spieler == 14 then
Feind = 18
jiraiyar()
end
if story == 7 and Spieler == 14 then
Feind = 4
kakashir()
end
if story == 8 and Spieler == 14 then
Feind = 3
sakurar()
end
if story == 9 and Spieler == 14 then
Feind = 10
itachir()
end
if story == 10 and Spieler == 14 then
Feind = 25
suigetsur()
end
------------------------------------------------------------------------------------------------
----------------------------------------Story--kakashi---------------------------------------
------------------------------------------------------------------------------------------------
if story == 1 and Spieler == 4 then
Feind = 
hinatar()
end
if story == 2 and Spieler == 4 then
Feind = 
shinor()
end
if story == 3 and Spieler == 4 then
Feind = 
narutor()
end
if story == 4 and Spieler == 4 then
Feind = 
deidarar()
end
if story == 5 and Spieler == 4 then
Feind = 
tsunader()
end
if story == 6 and Spieler == 4 then
Feind = 
sasuker()
end
if story == 7 and Spieler == 4  then
Feind = 
kakashir()
end
if story == 8 and Spieler == 4  then
Feind = 
kankuror()
end
if story == 9 and Spieler == 4  then
Feind = 
kisamer()
end
if story == 10 and Spieler == 4  then
Feind = 
yamator()
end
------------------------------------------------------------------------------------------------
-------------------------------------Story--danzou-------------------------------------------
------------------------------------------------------------------------------------------------
if story == 1 and Spieler == 12 then
Feind = 
kabutor()
end
if story == 2 and Spieler == 12  then
Feind = 
kisamer()
end
if story == 3  and Spieler == 12 then
Feind = 
gaarar()
end
if story == 4 and Spieler == 12  then
Feind = 
narutor()
end
if story == 5  and Spieler == 12 then
Feind = 
temarir()
end
if story == 6 and Spieler == 12  then
Feind = 
painr()
end
if story == 7 and Spieler == 12  then
Feind = 
Gair()
end
if story == 8 and Spieler == 12  then
Feind = 
shinor()
end
if story == 9 and Spieler == 12  then
Feind = 
madarar()
end
if story == 10 and Spieler == 12  then
Feind = 
hiruzenr()
end
------------------------------------------------------------------------------------------------
-------------------------------------Story--temari-------------------------------------------
------------------------------------------------------------------------------------------------
if story == 1 and Spieler == 5 then
Feind = 
deidarar()
end
if story == 2 and Spieler == 5  then
Feind = 10
itachir()
end
if story == 3 and Spieler == 5  then
Feind = 
danzour()
end
if story == 4  and Spieler == 5 then
Feind = 
jiraiyar()
end
if story == 5  and Spieler == 5 then
Feind = 
sakurar()
end
if story == 6 and Spieler == 5  then
Feind = 
kibar()
end
if story == 7 and Spieler == 5  then
Feind = 
madarar()
end
if story == 8 and Spieler == 5  then
Feind = 
sasuker()
end
if story == 9 and Spieler == 5  then
Feind = 
Gair()
end
if story == 10 and Spieler == 5  then
Feind = 
shikamarur()
end
------------------------------------------------------------------------------------------------
-------------------------------------------Story---------------------------------------------
------------------------------------------------------------------------------------------------
if story == 1 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
kabutor()
end
if story == 2 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
danzour()
end
if story == 3 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
madarar()
end
if story == 4 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
itachir()
end
if story == 5 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
kakashir()
end
if story == 6 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
tobir()
end
if story == 7 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
painr()
end
if story == 8 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
gaarar()
end
if story == 9 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
sasuker()
end
if story == 10 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
narutor()
end

if Spieler == 1 then
sasuke()
end
if Spieler == 2 then
naruto()
end
if Spieler == 3 then
sakura()
end
if Spieler == 4 then
kakashi()
end
if Spieler == 5 then
temari()
end
if Spieler == 6 then
gaara()
end
if Spieler == 7 then
kankuro()
end
if Spieler == 8 then
deidara()
end
if Spieler == 9 then
madara()
end
if Spieler == 10 then
itachi()
end
if Spieler == 11 then
Gai()
end
if Spieler == 12 then
danzou()
end
if Spieler == 13 then
kabuto()
end
if Spieler == 14 then
kisame()
end
if Spieler == 15 then
shino()
end
if Spieler == 16 then
hinata()
end
if Spieler == 17 then
kiba()
end
if Spieler == 18 then
jiraiya()
end
if Spieler == 19 then
tsunade()
end
if Spieler == 20 then
tobi()
end
if Spieler == 21 then
pain()
end
if Spieler == 22 then
hashirama()
end
if Spieler == 23 then
yamato()
end
if Spieler == 24 then
shikamaru()
end
if Spieler == 25 then
suigetsu()
end
if Spieler == 26 then
hiruzen()
end



if story == 0 then 
if Feind == 1 then
sasuker()
end
if Feind == 1 then
poderr = Image.load("Pictures/Sasuke/poder.png")
end
if Feind == 2 then
narutor()
end
if Feind == 2  then
poderr = Image.load("Pictures/Naruto/poder.png")
end
if Feind == 3 then
sakurar()
end
if Feind == 3 then
poderr = Image.load("Pictures/Sakura/poder.png")
end
if Feind == 4 then
kakashir()
end
if Feind == 4 then
poderr = Image.load("Pictures/Kakashi/poder.png")
end
if Feind == 5 then
temarir()
end
if Feind == 5 then
poderr = Image.load("Pictures/Temari/poder.png")
end
if Feind == 6 then
gaarar()
end
if Feind == 6 then
poderr = Image.load("Pictures/Gaara/poder.png")
end
if Feind == 7 then
kankuror()
end
if Feind == 7 then
poderr = Image.load("Pictures/Kankuro/poder.png")
end
if Feind == 8 then
deidarar()
end
if Feind == 8 then
poderr = Image.load("Pictures/Deidara/poder.png")
end
if Feind == 9 then
madarar()
end
if Feind == 9 then
poderr = Image.load("Pictures/Madara/poder.png")
end
if Feind == 10 then
itachir()
end
if Feind == 10 then
poderr = Image.load("Pictures/Itachi/poder.png")
end
if Feind == 11 then
Gair()
end
if Feind == 11 and pod == 0 then
poderr = Image.load("Pictures/Gai/poder.png")
end
if Feind == 12 then
danzour()
end
if Feind == 12 and pod == 0 then
poderr = Image.load("Pictures/Danzou/poder.png")
end
if Feind == 13 then
kabutor()
end
if Feind == 13 and pod == 0 then
poderr = Image.load("Pictures/Kabuto/poder.png")
end
if Feind == 14 then
kisamer()
end
if Feind == 14 and pod == 0 and story == 1 then
poderr = Image.load("Pictures/Kisame/poder.png")
end
if Feind == 15 then
shinor()
end
if Feind == 15 and pod == 0 then
poderr = Image.load("Pictures/Shino/poder.png")
end
if Feind == 16 then
hinatar()
end
if Feind == 16 and pod == 0 then
poderr = Image.load("Pictures/Hinata/poder.png")
end
if Feind == 17 then
kibar()
end
if Feind == 17 and pod == 0 then
poderr = Image.load("Pictures/Kiba/poder.png")
end




if Feind == 18 then
jiraiyar()
end
if Feind == 18 and pod == 0 then
poderr = Image.load("Pictures/Jiraiya/poder.png")
end

if Feind == 19 then
tsunader()
end
if Feind == 19 and pod == 0 then
poderr = Image.load("Pictures/Tsunade/poder.png")
end


if Feind == 20 then
tobir()
end
if Feind == 20 and pod == 0 then
poderr = Image.load("Pictures/Tobi/poder.png")
end


if Feind == 21 then
painr()
end
if Feind == 21 and pod == 0 then
poderr = Image.load("Pictures/Pain/poder.png")
end


if Feind == 22 then
hashiramar()
end
if Feind == 22 and pod == 0 then
poderr = Image.load("Pictures/Hashirama/poder.png")
end




if Feind == 23 then
yamator()
end
if Feind == 23 and pod == 0 then
poderr = Image.load("Pictures/Yamato/poder.png")
end





if Feind == 24 then
shikamarur()
end
if Feind == 24 and pod == 0 then
poderr = Image.load("Pictures/Shikamaru/poder.png")
end




if Feind == 25 then
suigetsur()
end
if Feind == 25 and pod == 0 then
poderr = Image.load("Pictures/Suigetsu/poder.png")
end



if Feind == 26 then
hiruzenr()
end
if Feind == 26 and pod == 0 then
poderr = Image.load("Pictures/Hiruzen/poder.png")
end
end



------------------------------------------------------------------------------------------------
------------------------------------------SPRITES-----------------------------------------------
------------------------------------------------------------------------------------------------
function pasos3()
if rezpaldom.pasos >= 5 and rezpaldom.pasos < 10  then
rezpaldom.x = mover1.y
end
 
if rezpaldom.pasos >= 10 and rezpaldom.pasos < 15  then
rezpaldom.x = mover2.y
end
 
if rezpaldom.pasos >= 15 and rezpaldom.pasos < 20   then
rezpaldom.x = mover3.y
end
 
if rezpaldom.pasos >= 20 and rezpaldom.pasos < 25  then
rezpaldom.x = mover4.y
end
	
if rezpaldom.pasos >= 25 and rezpaldom.pasos < 30  then
rezpaldom.x = mover5.y
end
if rezpaldom.pasos >= 30 and rezpaldom.pasos < 35  then
rezpaldom.x = mover6.y
end
	
if rezpaldom.pasos > 35 then
rezpaldom.pasos = 0
end
	

	
	
if rezpaldom1.pasos1 >= 5 and rezpaldom1.pasos1 < 10 then
rezpaldom1.x = mover11.y
end

if rezpaldom1.pasos1 >= 10 and rezpaldom1.pasos1 < 15 then
rezpaldom1.x = mover22.y
end
 
if rezpaldom1.pasos1 >= 15 and rezpaldom1.pasos1 < 20 then
rezpaldom1.x = mover33.y
end
 
if rezpaldom1.pasos1 >= 20 and rezpaldom1.pasos1 < 25 then
rezpaldom1.x = mover44.y
end
	
if rezpaldom1.pasos1 >= 25 and rezpaldom1.pasos1 < 30 then
rezpaldom1.x = mover55.y
end
if rezpaldom1.pasos1 >= 30 and rezpaldom1.pasos1 < 35 then
rezpaldom1.x = mover66.y
end
	
if rezpaldom1.pasos1 > 35 then
rezpaldom1.pasos1 = 0
end
	
	

if rezpaldom2.pasos5 >= 5 and rezpaldom2.pasos5 < 10  then
rezpaldom2.x = mover111.y
end
 
if rezpaldom2.pasos5 >= 10 and rezpaldom2.pasos5 < 15  then
rezpaldom2.x = mover222.y
end
 
if rezpaldom2.pasos5 >= 15 and rezpaldom2.pasos5 < 20   then
rezpaldom2.x = mover333.y
end
 
if rezpaldom2.pasos5 >= 20 and rezpaldom2.pasos5 < 25  then
rezpaldom2.x = mover444.y
end
	
 if rezpaldom2.pasos5 >= 25 and rezpaldom2.pasos5 < 30  then
rezpaldom.x = mover555.y
end
if rezpaldom2.pasos5 >= 30 and rezpaldom2.pasos5 < 35  then
rezpaldom2.x = mover666.y
end
if rezpaldom2.pasos5 > 35 then
rezpaldom2.pasos5 = 0
end

if rezpaldom3.pasos6 >= 5 and rezpaldom3.pasos6 < 10 then
rezpaldom3.x = mover1111.y
end
 
if rezpaldom3.pasos6 >= 10 and rezpaldom3.pasos6 < 15 then
rezpaldom3.x = mover2222.y
end
 
if rezpaldom3.pasos6 >= 15 and rezpaldom3.pasos6 < 20 then
rezpaldom3.x = mover3333.y
end
 
if rezpaldom3.pasos6 >= 20 and rezpaldom3.pasos6 < 25 then
rezpaldom3.x = mover4444.y
end
	
if rezpaldom3.pasos6 >= 25 and rezpaldom3.pasos6 < 30 then
rezpaldom3.x = mover5555.y
end
 if rezpaldom3.pasos6 >= 30 and rezpaldom3.pasos6 < 35 then
rezpaldom3.x = mover6666.y
end
	
if rezpaldom3.pasos6 > 35 then
rezpaldom3.pasos6 = 0
end	
	
------------------------------------------------------------------------------------------------
------------------------------------------GOLPES------------------------------------------------
------------------------------------------------------------------------------------------------
 if pad:square() and oldpad:square() ~= pad:square() and glpe1 == 0 and posicion == "derecha" and Golpes == 0 and Rafaga == 0 and rafagaO == 0 and especial == 0 and pausa == 0 then
 
 Player.x = Player.x +3
 glpe = 1
 gg = 1
rezpaldog.x = golpe1.y
end
 if pad:square() and oldpad:square() ~= pad:square() and glpe1 == 1 and posicion == "derecha" and Golpes == 0 and Rafaga == 0 and rafagaO == 0 and especial == 0 and pausa == 0 then
  
  Player.x = Player.x +3
 glpe = 1
  gg = 1
rezpaldog.x = golpe2.y
end
 if pad:square() and oldpad:square() ~= pad:square() and glpe1 == 2 and posicion == "derecha" and Golpes == 0 and Rafaga == 0 and rafagaO == 0 and especial == 0 and pausa == 0 then
  
  Player.x = Player.x +3
 glpe = 1
  gg = 1
rezpaldog.x = golpe3.y
end

if pad:square() and oldpad:square() ~= pad:square() and glpe1 == 0 and posicion == "izquierda" and Golpes == 0 and Rafaga == 0 and rafagaO == 0 and especial == 0 and pausa == 0 then
  
  Player.x = Player.x -3
glpe = 2
 gg = 1
rezpaldog1.x = golpe11.y
end
 if pad:square() and oldpad:square() ~= pad:square() and glpe1 == 1 and posicion == "izquierda" and Golpes == 0 and Rafaga == 0 and rafagaO == 0 and especial == 0 and pausa == 0 then
  
  Player.x = Player.x -3
 glpe = 2
  gg = 1
rezpaldog1.x = golpe22.y
end
 if pad:square() and oldpad:square() ~= pad:square() and glpe1 == 2 and posicion == "izquierda" and Golpes == 0 and Rafaga == 0 and rafagaO == 0 and especial == 0 and pausa == 0 then
  
  Player.x = Player.x -3
 glpe = 2
  gg = 1
rezpaldog1.x = golpe33.y
end
if glpe1 == 3 then
glpe1 = 0
end
end

------------------------------------------------------------------------------------------------
------------------------------------------SPRITES-----------------------------------------------
------------------------------------------------------------------------------------------------
function mov()
if pad:right() and Player.x < 430 and pausa == 0 or pad:analogX() > 50 and Player.x < 430 and pausa == 0 then

glpe = 0
gg = 0
glpe1 = 0
posicion = "derecha"
rezpaldom = mover1
Player.x = Player.x + 4
rezpaldom.pasos = rezpaldom.pasos + 1
end

if pad:left()  and Player.x > 0 and pausa == 0 or pad:analogX() < -50 and Player.x > 0 and pausa == 0 then

glpe = 0
 gg = 0
glpe1 = 0
posicion = "izquierda"
rezpaldom1 = mover11
Player.x = Player.x - 4
rezpaldom1.pasos1 = rezpaldom1.pasos1 + 1
end
end
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Mp3me.stop()
if cancion == 1 then
cancions = Mp3me.load("Sounds/01.mp3",true)
end
if cancion == 2 then
cancions = Mp3me.load("Sounds/02.mp3",true)
end
if cancion == 3 then
cancions = Mp3me.load("Sounds/03.mp3",true)
end
if cancion == 4 then
cancions = Mp3me.load("Sounds/04.mp3",true)
end
if cancion == 5 then
cancions = Mp3me.load("Sounds/05.mp3",true)
end

canciones = true
cancion = 1
p  = Image.load("Pictures/Menu/6.png")
p2 = Image.load("Pictures/Menu/7.png")
p3 = Image.load("Pictures/Menu/8.png")
Okey = Image.load("Pictures/Rest/Tile2.png")

while true do
pad = Controls.read()
screen:clear()

if canciones == true then
math.randomseed(os.time() ) 
cancion = math.random(1,5)
canciones = false
end
cancions = Mp3me.play()

if story == 10 and Spieler == 5 and Gegner.salud < 1 then
guardado = io.open("Ninja.txt","a")
guardado:write("shikamaru10 = true\n")
guardado:close()
Freischalten()
end
if story == 10 and Spieler == 9 and Gegner.salud < 1 then
guardado = io.open("Ninja.txt","a")
guardado:write("hashirama10 = true\n")
guardado:close()
Freischalten()
end
if story == 10 and Spieler == 12 and Gegner.salud < 1 then
guardado = io.open("Ninja.txt","a")
guardado:write("hiruzen10 = true\n")
guardado:close()
Freischalten()
end
if story == 10 and Spieler == 14 and Gegner.salud < 1 then
guardado = io.open("Ninja.txt","a")
guardado:write("suigetsu10 = true\n")
guardado:close()
Freischalten()
end
if story == 10 and Spieler == 4 and Gegner.salud < 1 then
guardado = io.open("Ninja.txt","a")
guardado:write("yamato10 = true\n")
guardado:close()
Freischalten()
end

if story == 10 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 and Gegner.salud < 1 then
GANASTE()
end


if Arena == 1 then
screen:blit(0,0,fondos1)
end
if Arena == 2 then
screen:blit(0,0,fondos2)
end
if Arena == 3 then
screen:blit(0,0,fondos3)
end
if Arena == 4 then
screen:blit(0,0,fondos4)
end
if Arena == 5 then
screen:blit(0,0,fondos5)
end
if Arena == 6 then
screen:blit(0,0,fondos6)
end
if Arena == 7 then
screen:blit(0,0,fondos7)
end
if Arena == 8 then
screen:blit(0,0,fondos8)
end
if Arena == 9 then
screen:blit(0,0,fondos9)
end


mov()
pasos3()
------------------------------------------------------------------------------------------------
-----------------------------------------SALTO--Player-----------------------------------------
------------------------------------------------------------------------------------------------
if salt == 1 and pausa == 0 then
glpe = 11
SALTOS()
end


if relog6 == 0 and salt == 1 and pausa == 0 then
relog6 = 1
end

if relog6 > 0 and relog6 < 5 and posicion == "derecha" and pausa == 0 then
Player.y = Player.y -5
rezpaldosalto.x = salto1.y 
end
if relog6 > 5 and relog6 < 10 and posicion == "derecha" and pausa == 0 then
Player.y = Player.y +5
rezpaldosalto.x = salto2.y 
end

if relog6 > 0 and relog6 < 5 and posicion == "izquierda" and pausa == 0 then
Player.y = Player.y -5
rezpaldosalto.x = salto3.y 
end
if relog6 > 5 and relog6 < 10 and posicion == "izquierda" and pausa == 0 then
Player.y = Player.y +5
rezpaldosalto.x = salto4.y 
end

if relog6 > 10 and pausa == 0 then
Player.y = 40
glpe = 0
salt = 0
relog6 = 0
inicio6 = 0
end

function SALTOS()
if inicio6 >= 0 and pausa == 0  then
inicio6 = inicio6 +1
end
if inicio6 >= 5 and pausa == 0 then
relog6 = relog6 +1
inicio6 = 0
end
end

------------------------------------------------------------------------------------------------
-----------------------------------------MOSTRAR--Pictures--------------------------------------
------------------------------------------------------------------------------------------------
if bb == 1 or Golpes1 == 1 and Rafaga1 == 0 and rafagaO1 == 0 and especiales == 0 then
screen:blit(Gegner.x,Gegner.y,golper,rezpaldog.x,rezpaldog.y,66,150)
end
if bb == 2 or Golpes1 == 2 and Rafaga1 == 0 and rafagaO1 == 0 and especiales == 0 then
screen:blit(Gegner.x,Gegner.y,golpecr,rezpaldog1.x,rezpaldog1.y,65,150)
end
if bb == 3 or rafagaO1 == 1 and Rafaga1 == 0 and Golpes1 == 0 and especiales == 0 then
screen:blit(Gegner.x,Gegner.y,rafagaor,rezpaldoa.x,rezpaldoa.y,80,150)
end
if bb == 4 or rafagaO1 == 2 and Rafaga1 == 0 and Golpes1 == 0 and especiales == 0 then
screen:blit(Gegner.x,Gegner.y,rafagaocr,rezpaldoa1.x,rezpaldoa1.y,80,150)
end
if bb == 5 or Rafaga1 == 1 and rafagaO1 == 0 and Golpes1 == 0 and especiales == 0 then
screen:blit(Gegner.x,Gegner.y,rafagar,rezpaldob.x,rezpaldob.y,96,150)
end
if bb == 6 or Rafaga1 == 2 and rafagaO1 == 0 and Golpes1 == 0 and especiales == 0 then
screen:blit(Gegner.x,Gegner.y,rafagacr,rezpaldob1.x,rezpaldob1.y,96,150)
end
if bb == 7 or especiales == 1 and Rafaga1 == 0 and rafagaO1 == 0 and Golpes1 == 0 and pod == 0 then
screen:blit(Gegner.x,Gegner.y,poderr,dire.x,dire.y,120,150)
end
if posicion1 == "derecha" and Rafaga1 == 0 and rafagaO1 == 0 and especiales == 0 and Golpes1 == 0 then
screen:blit(Gegner.x,Gegner.y,moverr,rezpaldom2.x,rezpaldom2.y,65,150)
end
if posicion1 == "izquierda" and Rafaga1 == 0 and rafagaO1 == 0 and especiales == 0 and Golpes1 == 0 then
screen:blit(Gegner.x,Gegner.y,movercr,rezpaldom3.x,rezpaldom3.y,65,150)
end
if bb == 8 or especiales == 0 and Rafaga1 == 0 and rafagaO1 == 0 and Golpes1 == 0 and pod == 0 then
screen:blit(Gegner.x,Gegner.y,salto,rezpaldosaltos.x,rezpaldosaltos.y,120,150)
end


if posicion == "derecha" and Golpes == 0 and rafagaO == 0 and especial == 0 and Rafaga == 0 and glpe == 0 and gg == 0  and salt == 0 then
screen:blit(Player.x,Player.y,mover,rezpaldom.x,rezpaldom.y,65,150)
end
if posicion == "izquierda" and Golpes == 0 and rafagaO == 0 and especial == 0 and Rafaga == 0 and glpe == 0 and gg == 0  and salt == 0 then
screen:blit(Player.x,Player.y,moverc,rezpaldom1.x,rezpaldom1.y,65,150)
end

if glpe == 1 or Golpes == 1 and rafagaO == 0 and especial == 0 and Rafaga == 0  and salt == 0 then
screen:blit(Player.x,Player.y,golpe,rezpaldog.x,rezpaldog.y,66,150)
end
if glpe == 2 or Golpes == 2 and rafagaO == 0 and especial == 0 and Rafaga == 0 and salt == 0 then
screen:blit(Player.x,Player.y,golpec,rezpaldog1.x,rezpaldog1.y,65,150)
end
if glpe == 3 or rafagaO == 1 and especial == 0 and Rafaga == 0 and Golpes == 0 and salt == 0 then
screen:blit(Player.x,Player.y,rafagaoa,rezpaldoa.x,rezpaldoa.y,80,150)
end
if glpe == 4 or rafagaO == 2 and especial == 0 and Rafaga == 0 and Golpes == 0 and salt == 0 then
screen:blit(Player.x,Player.y,rafagaoc,rezpaldoa1.x,rezpaldoa1.y,80,150)
end
if glpe == 5 or Rafaga == 1 and rafagaO == 0 and especial == 0 and Golpes == 0 and salt == 0 then
screen:blit(Player.x,Player.y,rafaga,rezpaldob.x,rezpaldob.y,96,150)
end
if glpe == 6 or Rafaga == 2 and rafagaO == 0 and especial == 0 and Golpes == 0 and salt == 0 then
screen:blit(Player.x,Player.y,rafagac,rezpaldob1.x,rezpaldob1.y,96,150)
end
if glpe == 7 or especial == 1 and Rafaga == 0 and rafagaO == 0 and Golpes == 0 and salt == 0 then
screen:blit(Player.x,Player.y,poder,dire.x,dire.y,120,150)
end
if glpe == 8 or especial == 2 and Rafaga == 0 and rafagaO == 0 and Golpes == 0 and salt == 0 then
screen:blit(Player.x,Player.y,poderc,dire1.x,dire1.y,120,150)
end
if glpe == 11 and especial == 0 and Rafaga == 0 and rafagaO == 0 and Golpes == 0 then
screen:blit(Player.x,Player.y,salto,rezpaldosalto.x,rezpaldosalto.y,64,150) 
end
------------------------------------------------------------------------------------------------
--------------------------------------------RELOGES---------------------------------------------
------------------------------------------------------------------------------------------------
function extra()
if inicio >= 0  then
inicio = inicio +1
end
if inicio >= 7 then
relog = relog +1
inicio = 0
end
end

function te()
if inicio2 >= 0  then
inicio2 = inicio2 +1
end
if inicio2 >= 20 then
relog2 = relog2 +1
inicio2 = 0
end
end


function te1()
if inicio3 >= 0  then
inicio3 = inicio3 +1
end
if inicio3 >= 20 then
relog3 = relog3 +1
inicio3 = 0
end
end
function relogGegner()
if inicio4 >= 0  then
inicio4 = inicio4 +1
end
if inicio4 >= 12 then
relog4 = relog4 +1
inicio4 = 0
end
end

function ataque()
if inicio5 >= 0  then
inicio5 = inicio5 +1
end
if inicio5 >= 12 then
relog5 = relog5 +1
inicio5 = 0
end
end

if inicio7 >= 0  and pausa == 0 then
inicio7 = inicio7 +1
end

if inicio7 >= 30 and pausa == 0 then
relog7 = relog7 -1
inicio7 = 0
end

------------------------------------------------------------------------------------------------
-------------------------------------FUNCION--DE--IMAGANES--------------------------------------
------------------------------------------------------------------------------------------------
if Golpes == 1 and pausa == 0 then
extra()
end
if relog == 0 and Golpes == 1 and pausa == 0 then
 rezpaldog.x = golpe4.y
end
if relog == 1 and Golpes == 1 and pausa == 0 then
  rezpaldog.x = golpe5.y
end
if relog == 2 and Golpes == 1 and pausa == 0 then
  rezpaldog.x = golpe6.y
  danos = 1
end
if relog == 3 and Golpes == 1 and pausa == 0 then
glpe = 0
end
if relog == 4 and Golpes == 1 and pausa == 0 then
Golpes = 0
inicio = 0
relog = 0
tiempos = 0
rezpaldom.x = mover1.y
end

if Golpes == 2 then
extra()
end
if relog == 0 and Golpes == 2 and pausa == 0 then
 rezpaldog1.x = golpe44.y
end
if relog == 1 and Golpes == 2 and pausa == 0 then
  rezpaldog1.x = golpe55.y
end
if relog == 3 and Golpes == 2 and pausa == 0 then
  rezpaldog1.x = golpe66.y
   danos = 1
end
if relog == 4 and Golpes == 2 and pausa == 0 then
glpe = 0
end
if relog == 5 and Golpes == 2 and pausa == 0 then
Golpes = 0
inicio = 0
relog = 0
tiempos = 0
rezpaldom1.x = mover11.y
end

if rafagaO == 1 and pausa == 0 then
extra()
end
if relog == 0 and rafagaO == 1 and pausa == 0 then
 rezpaldoa.x = rafagao1.y
end
if relog == 1 and rafagaO == 1 and pausa == 0 then
  rezpaldoa.x = rafagao2.y
end
if relog == 2 and rafagaO == 1 and pausa == 0  then
  rezpaldoa.x = rafagao3.y
end
if relog == 3 and rafagaO == 1 and pausa == 0 then
rezpaldoa.x = rafagao4.y
 danos = 1
end
if relog == 4 and rafagaO == 1 and pausa == 0 then
glpe = 0
end
if relog == 5 and rafagaO == 1 and pausa == 0 then
rafagaO = 0
inicio = 0
relog = 0
tiempos = 0
rezpaldom.x = mover1.y
end

if rafagaO == 2 then
extra()
end
if relog == 0 and rafagaO == 2 and pausa == 0 then
 rezpaldoa1.x = rafagao11.y
end
if relog == 1 and rafagaO == 2 and pausa == 0 then
  rezpaldoa1.x = rafagao22.y
end
if relog == 2 and rafagaO == 2 and pausa == 0 then
  rezpaldoa1.x = rafagao33.y
end
if relog == 3 and rafagaO == 2 and pausa == 0 then
rezpaldoa1.x = rafagao44.y
 danos = 1
end
if relog == 4 and rafagaO == 2 and pausa == 0 then
glpe = 0
end
if relog == 5 and rafagaO == 2 and pausa == 0 then
rafagaO = 0
inicio = 0
relog = 0
tiempos = 0
rezpaldom1.x = mover11.y
end

if Rafaga == 1 then
extra()
end
if relog == 0 and Rafaga == 1 and pausa == 0 then
 rezpaldob.x = rafaga1.y
end
if relog == 1 and Rafaga == 1 and pausa == 0 then
  rezpaldob.x = rafaga2.y
end
if relog == 2 and Rafaga == 1 and pausa == 0 then
  rezpaldob.x = rafaga3.y
end
if relog == 3 and Rafaga == 1 and pausa == 0 then
  rezpaldob.x = rafaga4.y
end
if relog == 4 and Rafaga == 1 and pausa == 0 then
rezpaldob.x = rafaga5.y
 danos = 1
end
if relog == 5 and Rafaga == 1 and pausa == 0 then
glpe = 0
end
if relog == 6 and Rafaga == 1 and pausa == 0 then
Rafaga = 0
inicio = 0
relog = 0
tiempos = 0
rezpaldom.x = mover1.y
end
if Rafaga == 2 and pausa == 0 then
extra()
end
if relog == 0 and Rafaga == 2 and pausa == 0 then
 rezpaldob1.x = rafaga11.y
end
if relog == 1 and Rafaga == 2 and pausa == 0 then
  rezpaldob1.x = rafaga22.y
end
if relog == 2 and Rafaga == 2 and pausa == 0 then
  rezpaldob1.x = rafaga33.y
end
if relog == 3 and Rafaga == 2 and pausa == 0 then
  rezpaldob1.x = rafaga44.y
end
if relog == 4 and Rafaga == 2 and pausa == 0 then
rezpaldob1.x = rafaga55.y
 danos = 1
end
if relog == 5 and Rafaga == 2 and pausa == 0 then
glpe = 0
end
if relog == 6 and Rafaga == 2 and pausa == 0 then
Rafaga = 0
inicio = 0
relog = 0
tiempos = 0
rezpaldom1.x = mover11.y
end

if especial == 1 and pausa == 0 then
extra()
end
if relog == 0 and especial == 1 and pausa == 0 then
 dire.x = especial1.y
end
if relog == 1 and especial == 1 and pausa == 0 then
  dire.x = especial2.y
end
if relog == 2 and especial == 1 and pausa == 0 then
  dire.x = especial3.y
end
if relog == 3 and especial == 1 and pausa == 0 then
  dire.x = especial4.y
   danos = 1
end
if relog == 4 and especial == 1 and pausa == 0 then
glpe = 0
end
if relog == 5 and especial == 1 and pausa == 0 then
especial = 0
inicio = 0
relog = 0
tiempos = 0
rezpaldom.x = mover1.y
end

if especial == 2 and pausa == 0 then
extra()
end
if relog == 0 and especial == 2 and pausa == 0  then
 dire1.x = especial11.y
end
if relog == 1 and especial == 2 and pausa == 0 then
  dire1.x = especial22.y
end
if relog == 2 and especial == 2 and pausa == 0 then
  dire1.x = especial33.y
end
if relog == 3 and especial == 2 and pausa == 0 then
  dire1.x = especial44.y
   danos = 1
end
if relog == 4 and especial == 2 and pausa == 0 then
glpe = 0
end
if relog == 5 and especial == 2 and pausa == 0 then
especial = 0
inicio = 0
relog = 0
tiempos = 0
rezpaldom1.x = mover11.y
end

if Golpes1 == 1 then
relogGegner()
end
if relog4 == 1 and Golpes1 == 1 and pausa == 0 then
 rezpaldog.x = golpe4.y
end
if relog4 == 2 and Golpes1 == 1 and pausa == 0 then
  rezpaldog.x = golpe5.y
end
if relog4 == 3 and Golpes1 == 1 and pausa == 0 then
  rezpaldog.x = golpe6.y
   dano = 1
end
if relog4 == 5 and Golpes1 == 1 and pausa == 0   then
glpe1 = 0
end
if relog4 == 6 and Golpes1 == 1 and pausa == 0 then
rezpaldom.x = mover1.y
inicio4 = 0
relog4 = 0
tiempos4 = 0
Golpes1 = 0
end

if Golpes1 == 2 then
relogGegner()
end
if relog4 == 1 and Golpes1 == 2 and pausa == 0 then
 rezpaldog1.x = golpe44.y
end
if relog4 == 2 and Golpes1 == 2 and pausa == 0 then
  rezpaldog1.x = golpe55.y
end
if relog4 == 3 and Golpes1 == 2 and pausa == 0 then
  rezpaldog1.x = golpe66.y
  dano = 1
end
if relog4 == 5 and Golpes1 == 2 and pausa == 0 then
glpe1 = 0
end
if relog4 == 6 and Golpes1 == 2 and pausa == 0 then
rezpaldom1.x = mover11.y
inicio4 = 0
relog4 = 0
tiempos4 = 0
Golpes1 = 0
end

if rafagaO1 == 1 and posicion1 == "derecha" and pausa == 0 then
relogGegner()
end
if relog4 == 1 and rafagaO1 == 1 and  posicion1 == "derecha" and pausa == 0 then
 rezpaldoa.x = rafagao1.y
end
if relog4 == 2 and rafagaO1 == 1 and posicion1 == "derecha" and pausa == 0 then
  rezpaldoa.x = rafagao2.y
end
if relog4 == 3 and rafagaO1 == 1 and posicion1 == "derecha" and pausa == 0 then
  rezpaldoa.x = rafagao3.y
   dano = 1
end
if relog4 == 4 and rafagaO1 == 1 and posicion1 == "derecha" and pausa == 0 then
glpe1 = 0
end
if relog4 == 5 and rafagaO1 == 1 and posicion1 == "derecha" and pausa == 0 then
rezpaldoa.x = rafagao4.y
inicio4 = 0
relog4 = 0
tiempos4 = 0
rafagaO1 = 0
end

if rafagaO1 == 2 and pausa == 0 then
relogGegner()
end
if relog4 == 1 and rafagaO1 == 2 and pausa == 0 then
 rezpaldoa1.x = rafagao11.y
end
if relog4 == 2 and rafagaO1 == 2 and pausa == 0 then
  rezpaldoa1.x = rafagao22.y
end
if relog4 == 3 and rafagaO1== 2 and pausa == 0 then
  rezpaldoa1.x = rafagao33.y
   dano = 1
end
if relog4 == 4 and rafagaoO1 == 2 and pausa == 0 then
glpe1 = 0
end
if relog4 == 5 and rafagaO1 == 2 and pausa == 0 then
rezpaldoa1.x = rafagao44.y
inicio4 = 0
relog4 = 0
tiempos4 = 0
rafagaO1 = 0
end

if Rafaga1 == 1 and pausa == 0 then
relogGegner()
end
if relog4 == 1 and Rafaga1 == 1 and pausa == 0 then
 rezpaldob.x = rafaga1.y
end
if relog4 == 2 and Rafaga1 == 1 and pausa == 0 then
  rezpaldob.x = rafaga2.y
end
if relog4 == 3 and Rafaga1 == 1 and pausa == 0 then
  rezpaldob.x = rafaga3.y
end
if relog4 == 4 and Rafaga1 == 1 and pausa == 0 then
  rezpaldob.x = rafaga4.y
end
if relog4 == 5 and Rafaga1 == 1 and pausa == 0 then
rezpaldob.x = rafaga5.y
 dano = 1
end
if relog4 == 6 and Rafaga1 == 1 and pausa == 0 then
glpe1 = 0
end
if relog4 == 7 and Rafaga1 == 1 and pausa == 0 then
rezpaldom.x = mover1.y
inicio4 = 0
relog4 = 0
tiempos4 = 0
Rafaga1 = 0
end

if Rafaga1 == 2 then
relogGegner()
end
if relog4 == 1 and Rafaga1 == 2 and pausa == 0 then
 rezpaldob1.x = rafaga11.y
end
if relog4 == 2 and Rafaga1 == 2 and pausa == 0 then
  rezpaldob1.x = rafaga22.y
end
if relog4 == 3 and Rafaga1 == 2 and pausa == 0 then
  rezpaldob1.x = rafaga33.y
end
if relog4 == 4 and Rafaga1 == 2 and pausa == 0 then
  rezpaldob1.x = rafaga44.y
end
if relog4 == 5 and Rafaga1 == 2 and pausa == 0 then
rezpaldob1.x = rafaga55.y
 dano = 1
end
if relog4 == 6 and Rafaga1 == 2 and pausa == 0 then
glpe1 = 0
end
if relog4 == 7 and Rafaga1 == 2 and pausa == 0 then
rezpaldom.x = mover11.y
inicio4 = 0
relog4 = 0
tiempos4 = 0
Rafaga1 = 0
end

if especiales == 1 and pausa == 0 then
relogGegner()
end
if relog4 == 1 and especiales == 1 and pausa == 0 then
 dire.x = especial1.y
end
if relog4 == 2 and especiales == 1 and pausa == 0 then
  dire.x = especial2.y
end
if relog4 == 3 and especiales == 1 and pausa == 0 then
  dire.x = especial3.y
end
if relog4 == 4 and especiales == 1 and pausa == 0 then
  dire.x = especial4.y
end
if relog4 == 5 and especiales == 1 and pausa == 0 then
glpe1 = 0
end
if relog4 == 6 and especiales == 1 and pausa == 0 then
rezpaldom.x = mover1.y
inicio4 = 0
relog4 = 0
tiempos4 = 0
especiales = 0
end


if Spieler == 19 and especial > 0 and Player.salud > 95 then
Player.salud = 126
end
if Spieler == 19 and especial > 0 and Player.salud < 96 then
Player.salud = Player.salud +10
end

------------------------------------------------------------------------------------------------
-----------------------------------------PRESIONAR--BOTONES-------------------------------------
------------------------------------------------------------------------------------------------
if pad:right() and pad:square() and posicion == "derecha"  and rafagaO == 0 and especial == 0 and Rafaga == 0 and glpe1 == 0 and gg == 0 and salt == 0 and pausa == 0 or pad:analogX() > 50 and pad:square() and posicion == "derecha"  and rafagaO == 0 and especial == 0 and Rafaga == 0 and glpe1 == 0 and gg == 0 and salt == 0 and pausa == 0 then
glpe = 1
ss=0
Golpes = 1
end
if pad:left() and pad:square() and posicion == "izquierda" and rafagaO == 0 and especial == 0 and Rafaga == 0 and glpe1 == 0 and gg == 0 and salt == 0  and pausa == 0 or pad:analogX() < -50 and pad:square() and posicion == "izquierda" and rafagaO == 0 and especial == 0 and Rafaga == 0 and glpe1 == 0 and gg == 0 and salt == 0  and pausa == 0 then
glpe = 1
ss = 0
Golpes = 2
end
if pad:circle() and posicion == "derecha" and Golpes == 0  and especial == 0 and Rafaga == 0 and glpe1 == 0 and gg == 0 and salt == 0  and pausa == 0 then
especial = 0
glpe = 3
rafagaO = 1
end
if pad:circle() and posicion == "izquierda" and Golpes == 0 and  especial == 0 and Rafaga == 0 and glpe1 == 0 and gg == 0 and salt == 0  and pausa == 0 then
especial = 0
glpe = 4
rafagaO = 2
end
if pad:triangle() and posicion == "derecha" and Golpes == 0 and rafagaO == 0 and especial == 0  and glpe1 == 0 and gg == 0 and salt == 0 and pausa == 0  then
glpe = 5
Rafaga = 1
end
if pad:triangle() and posicion == "izquierda" and Golpes == 0 and rafagaO == 0 and especial == 0  and glpe1 == 0 and gg == 0 and salt == 0 and pausa == 0 then
glpe = 6
Rafaga = 2
end
if pad:l() and oldpad:l() ~= pad:l() and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 then
Player.chakra = Player.chakra + 1
end
if pad:r() and oldpad:r() ~= pad:r() and posicion == "derecha" and Player.chakra >= 123 and Golpes == 0 and rafagaO == 0 and Rafaga == 0 and glpe1 == 0 and gg == 0 and salt == 0 and pausa == 0 then
Player.chakra = Player.chakra -123
glpe = 7 
especial = 1
end
if pad:r() and oldpad:r() ~= pad:r() and posicion == "izquierda" and Player.chakra >= 123 and Golpes == 0 and rafagaO == 0 and Rafaga == 0 and glpe1 == 0 and gg == 0 and salt == 0 and pausa == 0 then
Player.chakra = Player.chakra -123
glpe = 8
especial = 2
end
if pad:cross() and rafagaO == 0 and especial == 0 and Rafaga == 0 and glpe1 == 0 and gg == 0 and Golpes == 0 and pausa == 0 then
salt = 1
end
if pad:square() and oldpad:square() ~= pad:square() and posicion == "derecha" and Golpes == 0 and rafagaO == 0 and especial == 0 and Rafaga == 0 and pausa == 0 then
glpe1 = glpe1 +1
end
if pad:square() and oldpad:square() ~= pad:square() and posicion == "izquierda" and Golpes == 0 and rafagaO == 0 and especial == 0 and Rafaga == 0  and pausa == 0 then
glpe1 = glpe1 +1
end
------------------------------------------------------------------------------------------------
--------------------------FUNCIONES--DEL--MANEJO--DE--Gegner-----------------------------------
------------------------------------------------------------------------------------------------
movi = math.random(3)
if relog2 == 1 and Gegner.x > 0 and Rafaga1 == 0 and rafagaO1 == 0 and especiales == 0 and Golpes1 == 0 and pausa == 0 then
rezpaldom2 = mover111
Gegner.x = Gegner.x -3
rezpaldom3.pasos6 = rezpaldom3.pasos6 +1
end
if relog3 == 1 and Gegner.x < 460 and Rafaga1 == 0 and rafagaO1 == 0 and especiales == 0 and Golpes1 == 0 and pausa == 0 then
rezpaldom3 = mover1111
rezpaldom2.pasos5 = rezpaldom2.pasos5 +1
Gegner.x = Gegner.x +3
end

if Gegner.salud < 0 and pausa == 0 then
gan = 1

delete()
GOP()
end
if Player.salud < 0 and pausa == 0 then
per = 1
delete()
GOP()
end
if Rafaga1 == 1 or rafagaO1 == 1 or Golpes1 == 1 or especiales == 1 then
varia = 1
end
if varia == 1 then
ataque()
end
if relog5 > 10 then
inicio5 = 0
relog5 = 0
tiempos5 = 0
end
if relog2 > 1 then
inicio2 = 0
tiempos2 = 0
relog2 = 0
end

if relog3 > 1 then
inicio3 = 0
tiempos3 = 0
relog3 = 0
end

if Player.x > Gegner.x  then
distancia = Player.x - Gegner.x
else
distancia = Gegner.x - Player.x
end

if Gegner.x < Player.x and posicion == "derecha" then
posicion1 = "derecha" 
end
if Gegner.x < Player.x and posicion == "izquierda" then
posicion1 = "derecha" 
end
if Gegner.x > Player.x and posicion == "derecha" then
posicion1 = "izquierda" 
end
if Gegner.x > Player.x and posicion == "izquierda" then
posicion1 = "izquierda" 
end
tiemp = math.random(2)
if distancia < 40 and tiemp == 1 then
pelea()
end


if Player.x < Gegner.x and movi == 1 then
relog3 = 0
te()
end
if Player.x > Gegner.x and movi == 1 then
relog2 = 0
te1()
end

function pelea()
azar = math.random(30)
if azar == 3 and rafagaO1 == 0 and Rafaga1 == 0 and especiales == 0 and posicion1 == "derecha"  and pausa == 0 then
Golpes1 = 1
end
if azar == 3 and rafagaO1 == 0 and Rafaga1 == 0 and especiales == 0 and posicion1 == "izquierda" and pausa == 0  then
Golpes1 = 2
end
if azar == 4 and rafagaO1 == 0 and Rafaga1 == 0 and Golpes1 == 0 and  posicion1 == "derecha" and Gegner.chakra >= 123  and pod == 0 and pausa == 0 then
Gegner.chakra = Gegner.chakra -123
especiales = 1
end
if azar == 5 and rafagaO1 == 0 and Golpes1 == 0 and especiales == 0 and  posicion1 == "derecha" and pausa == 0 then
Rafaga1 = 1
end
if azar == 6 and Rafaga1 == 0 and Golpes1 == 0 and especiales == 0  and posicion1 == "derecha" and pausa == 0 then
rafagaO1 = 1
end
if azar == 5 and rafagaO1 == 0  and Golpes1 == 0 and especiales == 0  and posicion1 == "izquierda" and pausa == 0 then
Rafaga1 = 2
end
if azar == 6 and Rafaga1 == 0 and Golpes1 == 0 and especiales == 0 and posicion1 == "izquierda" and pausa == 0 then
rafagaO1 = 2
end
end

------------------------------------------------------------------------------------------------
-------------------------------------MANEJO--DE--CHAKRA-----------------------------------------
------------------------------------------------------------------------------------------------
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Golpes == 1 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Golpes == 1  and Player.chakra < 124 and Player.chakra >= 0  and pausa == 0 then
Player.chakra = Player.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Golpes == 2 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Golpes == 2  and Player.chakra < 124 and Player.chakra >= 0  and pausa == 0 then
Player.chakra = Player.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Rafaga == 1 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 and
(Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Rafaga == 1 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 then
Player.chakra = Player.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Rafaga == 2 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Rafaga == 2 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 then
Player.chakra = Player.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and rafagaO == 1 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and rafagaO == 1 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 then
Player.chakra = Player.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and rafagaO == 2 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and rafagaO == 2 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 then
Player.chakra = Player.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and gg == 1 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 and 
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and gg == 1 and Player.chakra < 124 and Player.chakra >= 0 and pausa == 0 then
Player.chakra = Player.chakra +0.5
end

if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Golpes1 == 1 and Gegner.chakra < 124 and Gegner.chakra >= 0 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Golpes1 == 1  and Gegner.chakra < 124 and Gegner.chakra >= 0  and pausa == 0 then
Gegner.chakra = Gegner.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Golpes1 == 2 and Gegner.chakra < 124 and Gegner.chakra >= 0 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Golpes1 == 2  and Gegner.chakra < 124 and Gegner.chakra >= 0 and pausa == 0 then
Gegner.chakra = Gegner.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Rafaga1 == 1 and Gegner.chakra < 124 and Gegner.chakra >= 0  and pausa == 0  and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Rafaga1 == 1 and Gegner.chakra < 124 and Gegner.chakra >= 0  and pausa == 0 then
Gegner.chakra = Gegner.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Rafaga1 == 2 and Gegner.chakra < 124 and Gegner.chakra >= 0  and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Rafaga1 == 2 and Gegner.chakra < 124 and Gegner.chakra >= 0 and pausa == 0  then
Gegner.chakra = Gegner.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and rafagaO1 == 1 and Gegner.chakra < 124 and Gegner.chakra >= 0 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and rafagaO1 == 1  and Gegner.chakra < 124 and Gegner.chakra >= 0 and pausa == 0  then
Gegner.chakra = Gegner.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and rafagaO1 == 2  and Gegner.chakra < 124 and Gegner.chakra >= 0 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and rafagaO1 == 2  and Gegner.chakra < 124 and Gegner.chakra >= 0 and pausa == 0 then
Gegner.chakra = Gegner.chakra +0.5
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and gg == 1 and Gegner.chakra < 124 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and gg == 1 and Gegner.chakra < 124 and pausa == 0 then
Gegner.chakra = Gegner.chakra +0.5
end

------------------------------------------------------------------------------------------------
-------------------------------------MANEJO--DE--SALUD------------------------------------------
------------------------------------------------------------------------------------------------

if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Golpes == 1 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Golpes == 1   and pausa == 0 then
Gegner.salud = Gegner.salud - 0.2
daninos = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Golpes == 2 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Golpes == 2 and pausa == 0 then
Gegner.salud = Gegner.salud - 0.2
daninos = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Rafaga == 1 and pausa == 0  and
(Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Rafaga == 1 and pausa == 0 then
Gegner.salud = Gegner.salud - 0.3
daninos = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Rafaga == 2 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Rafaga == 2 and pausa == 0 then
Gegner.salud = Gegner.salud - 0.3
daninos = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and rafagaO == 1 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and rafagaO == 1 and pausa == 0 then
Gegner.salud = Gegner.salud - 0.3
daninos = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and rafagaO == 2 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and rafagaO == 2  and pausa == 0 then
Gegner.salud = Gegner.salud - 0.3
daninos = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and especial == 1 and pausa == 0 and Spieler ~= 19 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and especial == 1 and pausa == 0 and Spieler ~= 19 then
Gegner.salud = Gegner.salud - 0.7
daninos = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and especial == 2  and pausa == 0 and Spieler ~= 19 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and especial == 2 and pausa == 0 and Spieler ~= 19 then
Gegner.salud = Gegner.salud - 0.7
daninos = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and gg == 1  and pausa == 0 and 
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and gg == 1 and pausa == 0 then
Gegner.salud = Gegner.salud - 0.3
daninos = 1
end

if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Golpes1 == 1 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Golpes1 == 1  and pausa == 0  then
Player.salud = Player.salud - 0.2
danino = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Golpes1 == 2 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Golpes1 == 2  and pausa == 0 then
Player.salud = Player.salud - 0.2
danino = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Rafaga1 == 1 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Rafaga1 == 1 and pausa == 0  then
Player.salud = Player.salud - 0.3
danino = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and Rafaga1 == 2 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and Rafaga1 == 2 and pausa == 0 then
Player.salud = Player.salud - 0.3
danino = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and rafagaO1 == 1 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and rafagaO1 == 1 and pausa == 0  then
Player.salud = Player.salud - 0.3
danino = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and rafagaO1 == 2 and pausa == 0 and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and rafagaO1 == 2 and pausa == 0 then
Player.salud = Player.salud - 0.3
danino = 1
end
if (Player.ancho + Player.x > Gegner.x)  and (Player.x < Gegner.x + Gegner.ancho)  and especiales == 1 and pausa == 0  and
   (Player.alto + Player.y > Gegner.y) and  (Player.y < Gegner.y + Gegner.alto) and especiales == 1  and pausa == 0  then
Player.salud = Player.salud - 0.7
danino = 1
end
------------------------------------------------------------------------------------------------
---------------------------------------BARRAS--DE--SALUD----------------------------------------
------------------------------------------------------------------------------------------------
screen:fontPrint(letras2,220,45,relog7,Rot)

if Player.salud <= 125 and Player.salud > 80 then
screen:fillRect(68,23,Player.salud,16,Gruen)
end
if Player.salud <= 80 and Player.salud > 30 then
screen:fillRect(68,23,Player.salud,16,Color.new(255,102,0))
end
if Player.salud <= 30 and Player.salud > 0 then
screen:fillRect(68,23,Player.salud,16,Rot)
end
if Gegner.salud <= 125 and Gegner.salud > 80 then
screen:fillRect(348,22,Gegner.salud,16,Gruen)
end
if Gegner.salud <= 80 and Gegner.salud > 30 then
screen:fillRect(348,22,Gegner.salud,16,Color.new(255,102,0))
end
if Gegner.salud <= 30 and Gegner.salud > 0 then
screen:fillRect(348,22,Gegner.salud,16,Rot)
end
if Player.chakra == 124 then
screen:fillRect(68,40,Player.chakra,5,Gruen)
else
screen:fillRect(68,40,Player.chakra,5,Color.new(0,0,255))
end
screen:blit(0,0,sangres)
screen:blit(280,0,sangree)
screen:blit(Player.imgx,Player.imgy,img)
screen:blit(Gegner.imgx,Gegner.imgy,imgr)

if Feind == 1 then
screen:fontPrint(letras7,348,55,"Sasuke SM",Color.new(100, 255, 255))
end
if Feind == 2 then
screen:fontPrint(letras7,348,55,"Naruto CM",Color.new(100, 255, 255))
end
if Feind == 3 then
screen:fontPrint(letras7,348,55,"Sakura Sp",Color.new(100, 255, 255))
end
if Feind == 4 then
screen:fontPrint(letras7,348,55,"Kakashi",Color.new(100, 255, 255))
end
if Feind == 5 then
screen:fontPrint(letras7,348,55,"Temari Sp",Color.new(100, 255, 255))
end
if Feind == 6 then
screen:fontPrint(letras7,348,55,"Gaara Sp",Color.new(100, 255, 255))
end
if Feind == 7 then
screen:fontPrint(letras7,348,55,"Kankuro Sp",Color.new(100, 255, 255))
end
if Feind == 8 then
screen:fontPrint(letras7,348,55,"Deidara",Color.new(100, 255, 255))
end
if Feind == 9 then
screen:fontPrint(letras7,348,55,"Madara",Color.new(100, 255, 255))
end
if Feind == 10 then
screen:fontPrint(letras7,348,55,"Itachi SM",Color.new(100, 255, 255))
end
if Feind == 11 then
screen:fontPrint(letras7,348,55,"Gai",Color.new(100, 255, 255))
end
if Feind == 12 then
screen:fontPrint(letras7,348,55,"Danzou",Color.new(100, 255, 255))
end
if Feind == 13 then
screen:fontPrint(letras7,348,55,"Kabuto OM",Color.new(100, 255, 255))
end
if Feind == 14 then
screen:fontPrint(letras7,348,55,"Kisame",Color.new(100, 255, 255))
end
if Feind == 15 then
screen:fontPrint(letras7,348,55,"Shino Sp",Color.new(100, 255, 255))
end
if Feind == 16 then
screen:fontPrint(letras7,348,55,"Hinata Sp",Color.new(100, 255, 255))
end
if Feind == 17 then
screen:fontPrint(letras7,348,55,"Kiba Sp",Color.new(100, 255, 255))
end
if Feind == 18 then
screen:fontPrint(letras7,348,55,"Jiraiya",Color.new(100, 255, 255))
end
if Feind == 19 then
screen:fontPrint(letras7,348,55,"Tsunade",Color.new(100, 255, 255))
end
if Feind == 20 then
screen:fontPrint(letras7,348,55,"Tobi NM",Color.new(100, 255, 255))
end
if Feind == 21 then
screen:fontPrint(letras7,348,55,"6xPain",Color.new(100, 255, 255))
end
if Feind == 22 then
screen:fontPrint(letras7,348,55,"1.Hokage",Color.new(100, 255, 255))
end
if Feind == 23 then
screen:fontPrint(letras7,348,55,"Yamato",Color.new(100, 255, 255))
end
if Feind == 24 then
screen:fontPrint(letras7,348,55,"Shikamaru Sp",Color.new(100, 255, 255))
end
if Feind == 25 then
screen:fontPrint(letras7,348,55,"Suigetsu",Color.new(100, 255, 255))
end
if Feind == 26 then
screen:fontPrint(letras7,348,55,"3.Hokage",Color.new(100, 255, 255))
end
if Feind == 47 then
screen:fontPrint(letras7,348,55,"Mizukage",Color.new(100, 255, 255))
end
if Feind == 48 then
screen:fontPrint(letras7,348,55,"Konan",Color.new(100, 255, 255))
end
if Feind == 49 then
screen:fontPrint(letras7,348,55,"Neji Sp",Color.new(100, 255, 255))
end
if Feind == 50 then
screen:fontPrint(letras7,348,55,"Orochimaru",Color.new(100, 255, 255))
end
if Feind == 51 then
screen:fontPrint(letras7,348,55,"Killerbee8THM",Color.new(100, 255, 255))
end
if Feind == 52 then
screen:fontPrint(letras7,348,55,"2.Hokage",Color.new(100, 255, 255))
end
if Feind == 53 then
screen:fontPrint(letras7,348,55,"Sai",Color.new(100, 255, 255))
end
if Feind == 54 then
screen:fontPrint(letras7,348,55,"Asuma",Color.new(100, 255, 255))
end
if Feind == 55 then
screen:fontPrint(letras7,348,55,"Juugo",Color.new(100, 255, 255))
end
if Feind == 56 then
screen:fontPrint(letras7,348,55,"4.Hokage",Color.new(100, 255, 255))
end


if op == 1 and Hilfe == 0 then
screen:fontPrint(letras7,68,65,"Sasuke SM",Color.new(100, 255, 255))
end
if op == 1 and Hilfe == 1 then
screen:fontPrint(letras7,68,65,"Orochimaru",Color.new(100, 255, 255))
end
if op == 2 and Hilfe == 0 then
screen:fontPrint(letras7,68,65,"Naruto CM",Color.new(100, 255, 255))
end
if op == 2 and Hilfe == 1 then
screen:fontPrint(letras7,68,65,"Killerbee8THM",Color.new(100, 255, 255))
end
if op == 3 then
screen:fontPrint(letras7,68,65,"Sakura Sp",Color.new(100, 255, 255))
end
if op == 4 then
screen:fontPrint(letras7,68,65,"Kakashi",Color.new(100, 255, 255))
end
if op == 5 then
screen:fontPrint(letras7,68,65,"Temari Sp",Color.new(100, 255, 255))
end
if op == 6 then
screen:fontPrint(letras7,68,65,"Gaara Sp",Color.new(100, 255, 255))
end
if op == 7 then
screen:fontPrint(letras7,68,65,"Kankuro Sp",Color.new(100, 255, 255))
end
if op == 8 then
screen:fontPrint(letras7,68,65,"Deidara",Color.new(100, 255, 255))
end
if op == 9 then
screen:fontPrint(letras7,68,65,"Madara",Color.new(100, 255, 255))
end
if op == 10 then
screen:fontPrint(letras7,68,65,"Itachi SM",Color.new(100, 255, 255))
end
if op == 11 then
screen:fontPrint(letras7,68,65,"Gai",Color.new(100, 255, 255))
end
if op == 12 then
screen:fontPrint(letras7,68,65,"Danzou",Color.new(100, 255, 255))
end
if op == 13 then
screen:fontPrint(letras7,68,65,"Kabuto OM",Color.new(100, 255, 255))
end
if op == 14 then
screen:fontPrint(letras7,68,65,"Kisame",Color.new(100, 255, 255))
end
if op == 15 then
screen:fontPrint(letras7,68,65,"Shino Sp",Color.new(100, 255, 255))
end
if op == 16 and Hilfe == 0 then
screen:fontPrint(letras7,68,65,"Hinata Sp",Color.new(100, 255, 255))
end
if op == 16 and Hilfe == 1 then
screen:fontPrint(letras7,68,65,"Neji SP",Color.new(100, 255, 255))
end
if op == 17 then
screen:fontPrint(letras7,68,65,"Kiba Sp",Color.new(100, 255, 255))
end
if op == 18 then
screen:fontPrint(letras7,68,65,"Jiraiya",Color.new(100, 255, 255))
end
if op == 19 and Hilfe == 0 then
screen:fontPrint(letras7,68,65,"Tsunade",Color.new(100, 255, 255))
end
if op == 19 and Hilfe == 1 then
screen:fontPrint(letras7,68,65,"Mizukage",Color.new(100, 255, 255))
end
if op == 20 then
screen:fontPrint(letras7,68,65,"Tobi NM",Color.new(100, 255, 255))
end
if op == 21 and Hilfe == 0 then
screen:fontPrint(letras7,68,65,"6xPain",Color.new(100, 255, 255))
end
if op == 21 and Hilfe == 1 then
screen:fontPrint(letras7,68,65,"Konan",Color.new(100, 255, 255))
end
if op == 22 and Hilfe == 0 then
screen:fontPrint(letras7,68,65,"1.Hokage",Color.new(100, 255, 255))
end
if op == 22 and Hilfe == 1 then
screen:fontPrint(letras7,68,65,"2.Hokage",Color.new(100, 255, 255))
end
if op == 23 and Hilfe == 0 then
screen:fontPrint(letras7,68,65,"Yamato",Color.new(100, 255, 255))
end
if op == 23 and Hilfe == 1 then
screen:fontPrint(letras7,68,65,"Sai",Color.new(100, 255, 255))
end
if op == 24 and Hilfe == 0 then
screen:fontPrint(letras7,68,65,"Shikamaru Sp",Color.new(100, 255, 255))
end
if op == 24 and Hilfe == 1 then
screen:fontPrint(letras7,68,65,"Asuma",Color.new(100, 255, 255))
end
if op == 25 and Hilfe == 0 then
screen:fontPrint(letras7,68,65,"Suigetsu",Color.new(100, 255, 255))
end
if op == 25 and Hilfe == 1 then
screen:fontPrint(letras7,68,65,"Juugo",Color.new(100, 255, 255))
end
if op == 26 and Hilfe == 0 then
screen:fontPrint(letras7,68,65,"3.Hokage",Color.new(100, 255, 255))
end
if op == 26 and Hilfe == 1 then
screen:fontPrint(letras7,68,65,"4.Hokage",Color.new(100, 255, 255))
end


if relog7 == 0 and Player.salud > Gegner.salud and pausa == 0 then
gan = 1
delete()
GOP()
end
if relog7 == 0 and Gegner.salud > Player.salud and pausa == 0 then
per = 1
delete()
GOP()
end


if relog7 == 0 and Player.salud == Gegner.salud and pausa == 0 then
gan = 1
delete()
GOP()
end

if pad:select() and oldpad:select() ~= pad:select() and pausa == 1 or pad:circle() and oldpad:circle() ~= pad:circle() and pausa == 1 then

pausa = 0
end
if pad:start() and oldpad:start() ~= pad:start() and pausa == 0 then
pausa = 1
end


if pausa == 1 then
if Wahl==1 then screen:blit(0,0,p,true) end
if Wahl==2 then screen:blit(0,0,p2,true) end
if Wahl==3 then screen:blit(0,0,p3,true) end
screen:blit(0,251,Okey)
if oldpad:up() and not pad:up() then
    if Wahl>1 then
        Wahl=Wahl-1
    else
        Wahl=3
    end
end

if oldpad:down() and not pad:down() then
    if Wahl <3 then
        Wahl=Wahl+1
    else
        Wahl = 1
    end
end

if oldpad:cross() and not pad:cross() then
    if Wahl == 1 then
        pausa = 0
    elseif Wahl == 2 then
        delete()
        pausa = 0
        GAME()
    elseif Wahl == 3 then
        delete()
        MENU()
    end
end
end

if pad:up() and Spieler == 19 and Hilfe == 0 and Player.chakra >= 123 then
mizukage()
Player.chakra = Player.chakra -61
Hilfe = 1
end
if pad:down() and Spieler == 19 and Hilfe == 1 then 
tsunade()
Hilfe = 0
end
if Feind == 19 and Gegner.salud < 31 then
Feind = 47
mizukager()
end

if pad:up() and Spieler == 21 and Hilfe == 0 and Player.chakra >= 123 then
konan()
Player.chakra = Player.chakra -61
Hilfe = 1
end
if pad:down() and Spieler == 21 and Hilfe == 1 then 
pain()
Hilfe = 0
end
if Feind == 21 and Gegner.salud < 31 then
Feind = 48
konanr()
end

if pad:up() and Spieler == 16 and Hilfe == 0 and Player.chakra >= 123 then
neji()
Player.chakra = Player.chakra -61
Hilfe = 1
end
if pad:down() and Spieler == 16 and Hilfe == 1 then 
hinata()
Hilfe = 0
end
if Feind == 16 and Gegner.salud < 31 then
Feind = 49
nejir()
end

if pad:up() and Spieler == 1 and Hilfe == 0 and Player.chakra >= 123 then
orochimaru()
Player.chakra = Player.chakra -61
Hilfe = 1
end
if pad:down() and Spieler == 1 and Hilfe == 1 then 
sasuke()
Hilfe = 0
end
if Feind == 1 and Gegner.salud < 31 then
Feind = 50
orochimarur()
end

if pad:up() and Spieler == 2 and Hilfe == 0 and Player.chakra >= 123 then
killerbee()
Player.chakra = Player.chakra -61
Hilfe = 1
end
if pad:down() and Spieler == 2 and Hilfe == 1 then 
naruto()
Hilfe = 0
end
if Feind == 2 and Gegner.salud < 31 then
Feind = 51
killerbeer()
end

if pad:up() and Spieler == 22 and Hilfe == 0 and Player.chakra >= 123 then
tobirama()
Player.chakra = Player.chakra -61
Hilfe = 1
end
if pad:down() and Spieler == 22 and Hilfe == 1 then 
hashirama()
Hilfe = 0
end
if Feind == 22 and Gegner.salud < 31 then
Feind = 52
tobiramar()
end

if pad:up() and Spieler == 23 and Hilfe == 0 and Player.chakra >= 123 then
sai()
Player.chakra = Player.chakra -61
Hilfe = 1
end
if pad:down() and Spieler == 23 and Hilfe == 1 then 
yamato()
Hilfe = 0
end
if Feind == 23 and Gegner.salud < 31 then
Feind = 53
sair()
end

if pad:up() and Spieler == 24 and Hilfe == 0 and Player.chakra >= 123 then
asuma()
Player.chakra = Player.chakra -61
Hilfe = 1
end
if pad:down() and Spieler == 24 and Hilfe == 1 then 
shikamaru()
Hilfe = 0
end
if Feind == 24 and Gegner.salud < 31 then
Feind = 54
asumar()
end

if pad:up() and Spieler == 25 and Hilfe == 0 and Player.chakra >= 123 then
juugo()
Player.chakra = Player.chakra -61
Hilfe = 1
end
if pad:down() and Spieler == 25 and Hilfe == 1 then 
suigetsu()
Hilfe = 0
end
if Feind == 25 and Gegner.salud < 31 then
Feind = 55
juugor()
end

if pad:up() and Spieler == 26 and Hilfe == 0 and Player.chakra >= 123 then
minato()
Player.chakra = Player.chakra -61
Hilfe = 1
end
if pad:down() and Spieler == 26 and Hilfe == 1 then 
hiruzen()
Hilfe = 0
end
if Feind == 26 and Gegner.salud < 31 then
Feind = 56
minator()
end

oldpad = pad
screen.flip()
screen.waitVblankStart()
end
end
------------------------------------------------------------------------------------------------
-------------------------------------MENU--DE--Charakterwahl----------------------------------------
------------------------------------------------------------------------------------------------
function INICIO()

function loeschen2()
fondo = nil
Flecha = nil
punto = nil
p = nil
p2 = nil
p3 = nil
a = nil
b = nil
c = nil
d = nil
e = nil
Okey = nil
temari1 = nil
gaara1 = nil
kankuro1 = nil
hinata1 = nil
kiba1 = nil
shino1 = nil
kakashi1 = nil
gay1 = nil
naruto1 = nil
sakura1 = nil
sasuke1 = nil
kabuto1 = nil
kisame1 = nil
danzou1 = nil
itachi1 = nil
deidara1 = nil
madara1 = nil
tobi1 = nil
tsunade = nil
jiraiya = nil
pain = nil
narutoimg = nil
sasukeimg = nil

hashirama1 = nil
suigetsu1 = nil
hiruzen1 = nil
shikamaru1 = nil
yamato1 = nil


fondos1 = nil
fondos2 = nil
fondos3 = nil
fondos4 = nil
fondos5 = nil
fondos6 = nil
fondos7 = nil
fondos8 = nil
fondos9 = nil

end

dofile("Ninja.txt")
Gruen = Color.new(0,255,0)
Schwarz = Color.new(0,0,0)
Gelb = Color.new(255,255,0)
fondo = Image.load("Pictures/Rest/Charakterwahl.png")
Flecha = Image.load("Pictures/Rest/Zeiger.png")
punto = Image.load("Pictures/Rest/punkt.png")
Okey = Image.load("Pictures/Rest/Tile2.png")


jugar = {}
jugar[3] = {x=0, y= 0,personajex = 27, personajey = 27,ancho =  punto:width(),alto = punto:height()}
jugar[4] = {x=55, y= 10, ancho = 40,alto = 40}
jugar[5] = {x=9, y= 11,ancho = 40,alto = 40}
jugar[6] = {x=100, y= 11,ancho = 40,alto = 40}
jugar[7] = {x=392, y= 64,ancho = 40,alto = 40}
jugar[8] = {x=56, y= 59,ancho = 40,alto = 40}
jugar[9] = {x=10, y= 59,ancho = 40,alto = 40}
jugar[10] = {x=102, y= 60,ancho = 40,alto = 40}
jugar[11] = {x=166, y= 13,ancho = 40,alto = 40}
jugar[12] = {x=256, y= 14,ancho = 40,alto = 40}
jugar[13] = {x=211, y= 15,ancho = 40,alto = 40}
jugar[14] = {x=345, y= 55,ancho = 40,alto = 40}
jugar[15] = {x=166 ,y= 61,ancho = 40,alto = 40}
jugar[16] = {x=258, y= 64,ancho = 40,alto = 40}
jugar[17] = {x=214, y= 62,ancho = 40,alto = 40}
jugar[18] = {x=320, y= 14,ancho = 40,alto = 40}
jugar[19] = {x=362, y= 16,ancho = 40,alto = 40}
jugar[20] = {x=411, y= 17,ancho = 40,alto = 40}
jugar[21] = {x=0, y= 0,ancho =  punto:width(),alto = punto:height()}


jugar[22] = {x=346 ,y= 112,ancho = 40,alto = 40}
jugar[23] = {x=392, y= 113,ancho = 40,alto = 40}
jugar[24] = {x=349, y= 160,ancho = 40,alto = 40}
jugar[25] = {x=395, y= 162,ancho = 40,alto = 40}


jugar[26] = {x=6, y= 10,ancho = 40,alto = 40}
jugar[27] = {x=62, y= 10,ancho = 40,alto = 40}

jugar[28] = {x=140, y= 109,ancho = 40,alto = 40}

jugar[29] = {x=35, y= 112,ancho = 40,alto = 40}
jugar[30] = {x=240, y= 111,ancho = 40,alto = 40}
jugar[31] = {x=89, y= 110,ancho = 40,alto = 40}
jugar[32] = {x=190, y= 110,ancho = 40,alto = 40}





pausa = 0
Wahl = 1




posicion = 1 
ancho = 30
alto = 30
Spieler = 0
Feind = 0
msss = 0
opcion1 = 0
opcion = 0
opc = 0
op = 0
Geschichte = 0
tamano = Font.load("Fonts/Geek a byte 2.ttf")
tamano:setPixelSizes(0,15)

sasuke1 = Image.load("Pictures/Sasuke/Sasuke.PNG")
hinata1 = Image.load("Pictures/Hinata/Hinata.PNG")
kiba1 = Image.load("Pictures/Kiba/Kiba.PNG")
shino1 = Image.load("Pictures/Shino/Shino.PNG")
naruto1 = Image.load("Pictures/naruto/naruto.png")
sakura1 = Image.load("Pictures/Sakura/Sakura.PNG")
itachi1 = Image.load("Pictures/Itachi/Itachi.PNG")
deidara1 = Image.load("Pictures/Deidara/Deidara.PNG")
madara1 = Image.load("Pictures/Madara/Madara.PNG")
kabuto1 = Image.load("Pictures/Kabuto/Kabuto.PNG")
danzou1 = Image.load("Pictures/Danzou/Danzou.PNG")
gay1 = Image.load("Pictures/Gai/Gai.png")
kakashi1 = Image.load("Pictures/Kakashi/Kakashi.PNG")
gaara1 = Image.load("Pictures/Gaara/Gaara.png")
kankuro1 = Image.load("Pictures/Kankuro/Kankuro.PNG")
temari1 = Image.load("Pictures/Temari/Temari.png")
pain1 = Image.load("Pictures/Pain/Pain.PNG")
tobi1 = Image.load("Pictures/Tobi/Tobi.PNG")
tsunade1  = Image.load("Pictures/Tsunade/Tsunade.png")
jiraiya1  = Image.load("Pictures/Jiraiya/Jiraiya.PNG")
hashirama1 = Image.load("Pictures/Hashirama/Hashirama.PNG")
suigetsu1 = Image.load("Pictures/Suigetsu/Suigetsu.PNG")
hiruzen1 = Image.load("Pictures/Hiruzen/Hiruzen.PNG")
shikamaru1 = Image.load("Pictures/Shikamaru/Shikamaru.PNG")
yamato1 = Image.load("Pictures/Yamato/Yamato.PNG")
kisame1 = Image.load("Pictures/Kisame/Kisame.PNG")

Versteckt = Image.load("Pictures/Rest/Versteckt.png")

while true do 
pad = Controls.read()
screen:clear()

if pad:right() and opcion == 0 or pad:analogX() > 50 and opcion == 0 then
jugar[3].x = jugar[3].x +3
end
if pad:left() and opcion == 0 or pad:analogX() < -50 and opcion == 0 then
jugar[3].x = jugar[3].x -3
end
if pad:up() and opcion == 0 or pad:analogY() < -50 and opcion == 0 then
jugar[3].y = jugar[3].y -3
end
if pad:down() and opcion == 0 or pad:analogY() > 50 and opcion == 0 then
jugar[3].y = jugar[3].y +3
end


if pad:right() and opcion == 1 or pad:analogX() > 50 and opcion == 1 then
jugar[21].x = jugar[21].x +3
end
if pad:left() and opcion == 1 or pad:analogX() < -50 and opcion == 1 then
jugar[21].x = jugar[21].x -3
end
if pad:up() and opcion == 1 or pad:analogY() < -50 and opcion == 1 then
jugar[21].y = jugar[21].y -3
end
if pad:down() and opcion == 1 or pad:analogY() > 50 and opcion == 1 then
jugar[21].y = jugar[21].y +3
end


if jugar[21].x > 480 then
jugar[21].x = 0
end
if jugar[21].x < 0 then
jugar[21].x = 480
end
if jugar[21].y > 272 then
jugar[21].y = 0
end
if jugar[21].y < 0 then
jugar[21].y = 272
end


if jugar[3].x > 480 then
jugar[3].x = 0
end
if jugar[3].x < 0 then
jugar[3].x = 480
end
if jugar[3].y > 272 then
jugar[3].y = 0
end
if jugar[3].y < 0 then
jugar[3].y = 272
end


screen:blit(0,0,fondo)
screen:blit(373,251,Okey)


if (jugar[3].ancho + jugar[3].x > jugar[4].x)  and (jugar[3].x < jugar[4].x + jugar[4].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[4].y) and  (jugar[3].y < jugar[4].y + jugar[4].alto) then
op = 1
screen:blit(14,157,sasuke1)
else 
op = 0
end

if (jugar[3].ancho + jugar[3].x > jugar[5].x)  and (jugar[3].x < jugar[5].x + jugar[5].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[5].y) and  (jugar[3].y < jugar[5].y + jugar[5].alto) then
screen:blit(14,157,naruto1)
op = 2
end
if (jugar[3].ancho + jugar[3].x > jugar[6].x)  and (jugar[3].x < jugar[6].x + jugar[6].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[6].y) and  (jugar[3].y < jugar[6].y + jugar[6].alto) then
screen:blit(14,157,sakura1)
op = 3
end
if (jugar[3].ancho + jugar[3].x > jugar[7].x)  and (jugar[3].x < jugar[7].x + jugar[7].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[7].y) and  (jugar[3].y < jugar[7].y + jugar[7].alto) then
screen:blit(14,157,kakashi1)
op = 4
end
if (jugar[3].ancho + jugar[3].x > jugar[8].x)  and (jugar[3].x < jugar[8].x + jugar[8].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[8].y) and  (jugar[3].y < jugar[8].y + jugar[8].alto) then
screen:blit(14,157,temari1)
op = 5
end
if (jugar[3].ancho + jugar[3].x > jugar[9].x)  and (jugar[3].x < jugar[9].x + jugar[9].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[9].y) and  (jugar[3].y < jugar[9].y + jugar[9].alto) then
screen:blit(14,157,gaara1)
op = 6
end
if (jugar[3].ancho + jugar[3].x > jugar[10].x)  and (jugar[3].x < jugar[10].x + jugar[10].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[10].y) and  (jugar[3].y < jugar[10].y + jugar[10].alto) then
screen:blit(14,157,kankuro1)
op = 7
end
if (jugar[3].ancho + jugar[3].x > jugar[11].x)  and (jugar[3].x < jugar[11].x + jugar[11].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[11].y) and  (jugar[3].y < jugar[11].y + jugar[11].alto) then
screen:blit(14,157,deidara1)
op = 8
end

if (jugar[3].ancho + jugar[3].x > jugar[12].x)  and (jugar[3].x < jugar[12].x + jugar[12].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[12].y) and  (jugar[3].y < jugar[12].y + jugar[12].alto) then
screen:blit(14,157,madara1)
op = 9
end
if (jugar[3].ancho + jugar[3].x > jugar[13].x)  and (jugar[3].x < jugar[13].x + jugar[13].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[13].y) and  (jugar[3].y < jugar[13].y + jugar[13].alto) then
screen:blit(14,157,itachi1)
op = 10
end
if (jugar[3].ancho + jugar[3].x > jugar[14].x)  and (jugar[3].x < jugar[14].x + jugar[14].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[14].y) and  (jugar[3].y < jugar[14].y + jugar[14].alto) then
screen:blit(14,157,gay1)
op = 11
end
if (jugar[3].ancho + jugar[3].x > jugar[15].x)  and (jugar[3].x < jugar[15].x + jugar[15].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[15].y) and  (jugar[3].y < jugar[15].y + jugar[15].alto) then
screen:blit(14,157,danzou1)
op = 12
end
if (jugar[3].ancho + jugar[3].x > jugar[16].x)  and (jugar[3].x < jugar[16].x + jugar[16].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[16].y) and  (jugar[3].y < jugar[16].y + jugar[16].alto) then
screen:blit(14,157,kabuto1)
op = 13
end
if (jugar[3].ancho + jugar[3].x > jugar[17].x)  and (jugar[3].x < jugar[17].x + jugar[17].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[17].y) and  (jugar[3].y < jugar[17].y + jugar[17].alto) then

screen:blit(14,157,kisame1)
op = 14
end

if (jugar[3].ancho + jugar[3].x > jugar[18].x)  and (jugar[3].x < jugar[18].x + jugar[18].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[18].y) and  (jugar[3].y < jugar[18].y + jugar[18].alto) then
screen:blit(14,157,shino1)
op = 15
end
if (jugar[3].ancho + jugar[3].x > jugar[19].x)  and (jugar[3].x < jugar[19].x + jugar[19].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[19].y) and  (jugar[3].y < jugar[19].y + jugar[19].alto) then
screen:blit(14,157,hinata1)
op = 16
end
if (jugar[3].ancho + jugar[3].x > jugar[20].x)  and (jugar[3].x < jugar[20].x + jugar[20].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[20].y) and  (jugar[3].y < jugar[20].y + jugar[20].alto) then
screen:blit(14,157,kiba1)
op = 17
end




if (jugar[3].ancho + jugar[3].x > jugar[22].x)  and (jugar[3].x < jugar[22].x + jugar[22].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[22].y) and  (jugar[3].y < jugar[22].y + jugar[22].alto) then
screen:blit(14,157,jiraiya1)
op = 18
end

if (jugar[3].ancho + jugar[3].x > jugar[23].x)  and (jugar[3].x < jugar[23].x + jugar[23].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[23].y) and  (jugar[3].y < jugar[23].y + jugar[23].alto) then
   screen:blit(14,157,tsunade1)
op = 19
end
if (jugar[3].ancho + jugar[3].x > jugar[24].x)  and (jugar[3].x < jugar[24].x + jugar[24].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[24].y) and  (jugar[3].y < jugar[24].y + jugar[24].alto) then
   screen:blit(14,157,tobi1)
op = 20
end
if (jugar[3].ancho + jugar[3].x > jugar[25].x)  and (jugar[3].x < jugar[25].x + jugar[25].ancho)  and
   (jugar[3].alto + jugar[3].y > jugar[25].y) and  (jugar[3].y < jugar[25].y + jugar[25].alto) then
   screen:blit(14,157,pain1)
op = 21
end



if (jugar[3].ancho + jugar[3].x > jugar[28].x)  and (jugar[3].x < jugar[28].x + jugar[28].ancho)  and hashirama10 == true and
   (jugar[3].alto + jugar[3].y > jugar[28].y) and  (jugar[3].y < jugar[28].y + jugar[28].alto)  and hashirama10 == true then
   screen:blit(14,157,hashirama1)
op = 22
end
if (jugar[3].ancho + jugar[3].x > jugar[29].x)  and (jugar[3].x < jugar[29].x + jugar[29].ancho)  and yamato10 == true and
   (jugar[3].alto + jugar[3].y > jugar[29].y) and  (jugar[3].y < jugar[29].y + jugar[29].alto) and yamato10 == true then
   screen:blit(14,157,yamato1)
op = 23
end
if (jugar[3].ancho + jugar[3].x > jugar[30].x)  and (jugar[3].x < jugar[30].x + jugar[30].ancho)  and  shikamaru10 == true and
   (jugar[3].alto + jugar[3].y > jugar[30].y) and  (jugar[3].y < jugar[30].y + jugar[30].alto) and shikamaru10 == true then
   screen:blit(14,157,shikamaru1)
op = 24
end
if (jugar[3].ancho + jugar[3].x > jugar[31].x)  and (jugar[3].x < jugar[31].x + jugar[31].ancho)  and  suigetsu10 == true and
   (jugar[3].alto + jugar[3].y > jugar[31].y) and  (jugar[3].y < jugar[31].y + jugar[31].alto) and suigetsu10 == true  then
   screen:blit(14,157,suigetsu1)
op = 25
end
if (jugar[3].ancho + jugar[3].x > jugar[32].x)  and (jugar[3].x < jugar[32].x + jugar[32].ancho)  and hiruzen10 == true and
   (jugar[3].alto + jugar[3].y > jugar[32].y) and  (jugar[3].y < jugar[32].y + jugar[32].alto) and hiruzen10 == true then
   screen:blit(14,157,hiruzen1)
op = 26
end












if (jugar[21].ancho + jugar[21].x > jugar[4].x)  and (jugar[21].x < jugar[4].x + jugar[4].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[4].y) and  (jugar[21].y < jugar[4].y + jugar[4].alto) then
screen:blit(207,157,sasuke1)
opc = 1
else 
opc = 0
end
if (jugar[21].ancho + jugar[21].x > jugar[5].x)  and (jugar[21].x < jugar[5].x + jugar[5].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[5].y) and  (jugar[21].y < jugar[5].y + jugar[5].alto) then
screen:blit(207,157,naruto1)
opc = 2
end
if (jugar[21].ancho + jugar[21].x > jugar[6].x)  and (jugar[21].x < jugar[6].x + jugar[6].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[6].y) and  (jugar[21].y < jugar[6].y + jugar[6].alto) then
screen:blit(207,157,sakura1)
opc = 3
end
if (jugar[21].ancho + jugar[21].x > jugar[7].x)  and (jugar[21].x < jugar[7].x + jugar[7].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[7].y) and  (jugar[21].y < jugar[7].y + jugar[7].alto) then
screen:blit(207,157,kakashi1)
opc = 4
end
if (jugar[21].ancho + jugar[21].x > jugar[8].x)  and (jugar[21].x < jugar[8].x + jugar[8].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[8].y) and  (jugar[21].y < jugar[8].y + jugar[8].alto) then
screen:blit(207,157,temari1)
opc = 5
end
if (jugar[21].ancho + jugar[21].x > jugar[9].x)  and (jugar[21].x < jugar[9].x + jugar[9].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[9].y) and  (jugar[21].y < jugar[9].y + jugar[9].alto) then
screen:blit(207,157,gaara1)
opc = 6
end
if (jugar[21].ancho + jugar[21].x > jugar[10].x)  and (jugar[21].x < jugar[10].x + jugar[10].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[10].y) and  (jugar[21].y < jugar[10].y + jugar[10].alto) then
screen:blit(207,157,kankuro1)
opc = 7
end
if (jugar[21].ancho + jugar[21].x > jugar[11].x)  and (jugar[21].x < jugar[11].x + jugar[11].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[11].y) and  (jugar[21].y < jugar[11].y + jugar[11].alto) then
screen:blit(207,157,deidara1)
opc = 8
end

if (jugar[21].ancho + jugar[21].x > jugar[12].x)  and (jugar[21].x < jugar[12].x + jugar[12].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[12].y) and  (jugar[21].y < jugar[12].y + jugar[12].alto) then
screen:blit(207,157,madara1)
opc = 9
end
if (jugar[21].ancho + jugar[21].x > jugar[13].x)  and (jugar[21].x < jugar[13].x + jugar[13].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[13].y) and  (jugar[21].y < jugar[13].y + jugar[13].alto) then
screen:blit(207,157,itachi1)
opc = 10
end
if (jugar[21].ancho + jugar[21].x > jugar[14].x)  and (jugar[21].x < jugar[14].x + jugar[14].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[14].y) and  (jugar[21].y < jugar[14].y + jugar[14].alto) then
screen:blit(207,157,gay1)
opc = 11
end
if (jugar[21].ancho + jugar[21].x > jugar[15].x)  and (jugar[21].x < jugar[15].x + jugar[15].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[15].y) and  (jugar[21].y < jugar[15].y + jugar[15].alto) then
screen:blit(207,157,danzou1)
opc = 12
end
if (jugar[21].ancho + jugar[21].x > jugar[16].x)  and (jugar[21].x < jugar[16].x + jugar[16].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[16].y) and  (jugar[21].y < jugar[16].y + jugar[16].alto) then
screen:blit(207,157,kabuto1)
opc = 13
end
if (jugar[21].ancho + jugar[21].x > jugar[17].x)  and (jugar[21].x < jugar[17].x + jugar[17].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[17].y) and  (jugar[21].y < jugar[17].y + jugar[17].alto) then

screen:blit(207,157,kisame1)
opc = 14
end

if (jugar[21].ancho + jugar[21].x > jugar[18].x)  and (jugar[21].x < jugar[18].x + jugar[18].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[18].y) and  (jugar[21].y < jugar[18].y + jugar[18].alto) then
screen:blit(207,157,shino1)
opc = 15
end
if (jugar[21].ancho + jugar[21].x > jugar[19].x)  and (jugar[21].x < jugar[19].x + jugar[19].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[19].y) and  (jugar[21].y < jugar[19].y + jugar[19].alto) then
screen:blit(207,157,hinata1)
opc = 16
end
if (jugar[21].ancho + jugar[21].x > jugar[20].x)  and (jugar[21].x < jugar[20].x + jugar[20].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[20].y) and  (jugar[21].y < jugar[20].y + jugar[20].alto) then
screen:blit(207,157,kiba1)
opc = 17
end



if (jugar[21].ancho + jugar[21].x > jugar[22].x)  and (jugar[21].x < jugar[22].x + jugar[22].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[22].y) and  (jugar[21].y < jugar[22].y + jugar[22].alto) then
   screen:blit(207,157,jiraiya1)
opc = 18
end

if (jugar[21].ancho + jugar[21].x > jugar[23].x)  and (jugar[21].x < jugar[23].x + jugar[23].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[23].y) and  (jugar[21].y < jugar[23].y + jugar[23].alto) then
   screen:blit(207,157,tsunade1)
opc = 19
end
if (jugar[21].ancho + jugar[21].x > jugar[24].x)  and (jugar[21].x < jugar[24].x + jugar[24].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[24].y) and  (jugar[21].y < jugar[24].y + jugar[24].alto) then
   screen:blit(207,157,tobi1)
opc = 20
end
if (jugar[21].ancho + jugar[21].x > jugar[25].x)  and (jugar[21].x < jugar[25].x + jugar[25].ancho)  and
   (jugar[21].alto + jugar[21].y > jugar[25].y) and  (jugar[21].y < jugar[25].y + jugar[25].alto) then
   screen:blit(207,157,pain1)
opc = 21
end




if (jugar[21].ancho + jugar[21].x > jugar[28].x)  and (jugar[21].x < jugar[28].x + jugar[28].ancho) and hashirama10 == true  and
   (jugar[21].alto + jugar[21].y > jugar[28].y) and  (jugar[21].y < jugar[28].y + jugar[28].alto) and hashirama10 == true then
   screen:blit(207,157,hashirama1)
opc = 22
end
if (jugar[21].ancho + jugar[21].x > jugar[29].x)  and (jugar[21].x < jugar[29].x + jugar[29].ancho) and yamato10 == true and
   (jugar[21].alto + jugar[21].y > jugar[29].y) and  (jugar[21].y < jugar[29].y + jugar[29].alto) and yamato10 == true then
   screen:blit(207,157,yamato1)
opc = 23
end
if (jugar[21].ancho + jugar[21].x > jugar[30].x)  and (jugar[21].x < jugar[30].x + jugar[30].ancho) and shikamaru10 == true and
   (jugar[21].alto + jugar[21].y > jugar[30].y) and  (jugar[21].y < jugar[30].y + jugar[30].alto) and shikamaru10 == true then
   screen:blit(207,157,shikamaru1)
opc = 24
end
if (jugar[21].ancho + jugar[21].x > jugar[31].x)  and (jugar[21].x < jugar[31].x + jugar[31].ancho) and suigetsu10 == true and
   (jugar[21].alto + jugar[21].y > jugar[31].y) and  (jugar[21].y < jugar[31].y + jugar[31].alto) and suigetsu10 == true then
   screen:blit(207,157,suigetsu1)
opc = 25
end
if (jugar[21].ancho + jugar[21].x > jugar[32].x)  and (jugar[21].x < jugar[32].x + jugar[32].ancho) and hiruzen10 == true  and
   (jugar[21].alto + jugar[21].y > jugar[32].y) and  (jugar[21].y < jugar[32].y + jugar[32].alto) and hiruzen10 == true then
   screen:blit(207,157,hiruzen1)
opc = 26
end



















if pad:cross() and oldpad:cross() ~= pad:cross() and op == 1 then

Spieler = 1
opcion = 1
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 2 then

opcion = 1
Spieler = 2
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 3 then

opcion = 1
Spieler = 3
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 4 then

opcion = 1
Spieler = 4
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 5 then

opcion = 1
Spieler = 5
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 6 then

opcion = 1
Spieler = 6
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 7 then

opcion = 1
Spieler = 7
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 8 then

opcion = 1
Spieler = 8
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 9 then

opcion = 1
Spieler = 9
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 10 then

opcion = 1
Spieler = 10
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 11 then

opcion = 1
Spieler = 11
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 12 then

opcion = 1
Spieler = 12 
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 13 then

opcion = 1
Spieler = 13 
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 14 then

opcion = 1
Spieler = 14 
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 15 then

opcion = 1
Spieler = 15 
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 16 then

opcion = 1
Spieler = 16 
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 17 then

opcion = 1
Spieler = 17 
Geschichte = 1
end


if pad:cross() and oldpad:cross() ~= pad:cross() and op == 18 then

opcion = 1
Spieler = 18
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 19 then

opcion = 1
Spieler = 19 
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 20 then

opcion = 1
Spieler = 20
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 21 then

opcion = 1
Spieler = 21 
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 22 then

opcion = 1
Spieler = 22 
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 23 then

opcion = 1
Spieler = 23
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 24 then

opcion = 1
Spieler = 24
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 25 then

opcion = 1
Spieler = 25
Geschichte = 1
end
if pad:cross() and oldpad:cross() ~= pad:cross() and op == 26 then

opcion = 1
Spieler = 26
Geschichte = 1
end



if story > 0 and Geschichte == 1 then
loeschen2()
Story()
end


function vscpu() 
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 1 then

loeschen2()
Feind = 1
opcion = 2
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 2 then

loeschen2()
opcion = 2
Feind = 2
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 3 then

loeschen2()
opcion = 2
Feind = 3
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 4 then

loeschen2()
opcion = 2
Feind = 4
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 5 then

loeschen2()
opcion = 2
Feind = 5
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 6 then

loeschen2()
opcion = 2
Feind = 6
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 7 then

loeschen2()
opcion = 2
Feind = 7
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 8 then

loeschen2()
opcion = 2
Feind = 8
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 9 then

loeschen2()
opcion = 2
Feind = 9
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 10 then

loeschen2()
opcion = 2
Feind = 10
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 11 then

loeschen2()
opcion = 2
Feind = 11
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 12 then

loeschen2()
opcion = 2
Feind = 12 
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 13 then

loeschen2()
opcion = 2
Feind = 13 
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 14 then

loeschen2()
opcion = 2
Feind = 14 
math.randomseed(os.time() ) 
Arena = math.random(1,8)
loeschen2()
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 15 then

loeschen2()
opcion = 2
Feind = 15 
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 16 then

loeschen2()
opcion = 2
Feind = 16 
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 17 then

loeschen2()
opcion = 2
Feind = 17 
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 18 then

loeschen2()
opcion = 2
Feind = 18
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 19 then

loeschen2()
opcion = 2
Feind = 19
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 20 then

loeschen2()
opcion = 2
Feind = 20
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 21 then

loeschen2()
opcion = 2
Feind = 21
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 22 then

loeschen2()
opcion = 2
Feind = 22
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 23 then

loeschen2()
opcion = 2
Feind = 23
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 24 then

loeschen2()
opcion = 2
Feind = 24
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 25 then

loeschen2()
opcion = 2
Feind = 25
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and opc == 26 then

loeschen2()
opcion = 2
Feind = 26
math.randomseed(os.time() ) 
Arena = math.random(1,8)
GAME()
end
end

if story == 0 then
vscpu()
end 


if pad:cross() and oldpad:cross() ~= pad:cross() and opcion1 == 1 then

math.randomseed(os.time() ) 
Arena = math.random(1,8)
GANASTE()
end

function azar()
math.randomseed(os.time() ) 
aleatorio = math.random(1,10)
if aleatorio == 1 then
Feind = 1 
end
if aleatorio == 2 then
Feind = 2
end
if aleatorio == 3 then
Feind = 3
end
if aleatorio == 4 then
Feind = 4
end
if aleatorio == 5 then
Feind = 5
end
if aleatorio == 6 then
Feind = 6
end
if aleatorio == 7 then
Feind = 7 
end
if aleatorio == 8 then
Feind = 8
end
if aleatorio == 9 then
Feind = 9
end
if aleatorio == 10 then
Feind = 10
end
if aleatorio == 11 then
Feind = 11
end
if aleatorio == 12 then
Feind = 12
end
if aleatorio == 13 then
Feind = 13
end
if aleatorio == 14 then
Feind = 14
end
if aleatorio == 15 then
Feind = 15
end
if aleatorio == 16 then
Feind = 16
end
if aleatorio == 17 then
Feind = 17
end
end
if hashirama10 == nil then
screen:blit(139,108,Versteckt)
end
if shikamaru10 == nil  then
screen:blit(240,108,Versteckt)
end
if hiruzen10 == nil  then
screen:blit(190,108,Versteckt)
end

if suigetsu10 == nil  then
screen:blit(90,108,Versteckt)
end

if yamato10 == nil  then
screen:blit(36,108,Versteckt)
end


screen:blit(jugar[3].x,jugar[3].y,Flecha)

if opcion > 0 then
screen:blit(jugar[21].x,jugar[21].y,Flecha)
end


if op == 1 then
screen:fontPrint(tamano,45,255,"S1:Sasuke SM",Gruen)
end
if op == 2 then
screen:fontPrint(tamano,45,255,"S1:Naruto CM",Gruen)
end
if op == 3 then
screen:fontPrint(tamano,45,255,"S1:Sakura Sp",Gruen)
end
if op == 4 then
screen:fontPrint(tamano,45,255,"S1:Kakashi",Gruen)
end
if op == 5 then
screen:fontPrint(tamano,45,255,"S1:Temari Sp",Gruen)
end
if op == 6 then
screen:fontPrint(tamano,45,255,"S1:Gaara Sp",Gruen)
end
if op == 7 then
screen:fontPrint(tamano,45,255,"S1:Kankuro Sp",Gruen)
end
if op == 8 then
screen:fontPrint(tamano,45,255,"S1:Deidara",Gruen)
end
if op == 9 then
screen:fontPrint(tamano,45,255,"S1:Madara",Gruen)
end
if op == 10 then
screen:fontPrint(tamano,45,255,"S1:Itachi SM",Gruen)
end
if op == 11 then
screen:fontPrint(tamano,45,255,"S1:Gai",Gruen)
end
if op == 12 then
screen:fontPrint(tamano,45,255,"S1:Danzou",Gruen)
end
if op == 13 then
screen:fontPrint(tamano,45,255,"S1:Kabuto OM",Gruen)
end
if op == 14 then
screen:fontPrint(tamano,45,255,"S1:Kisame",Gruen)
end
if op == 15 then
screen:fontPrint(tamano,45,255,"S1:Shino Sp",Gruen)
end
if op == 16 then
screen:fontPrint(tamano,45,255,"S1:Hinata Sp",Gruen)
end
if op == 17 then
screen:fontPrint(tamano,45,255,"S1:Kiba Sp",Gruen)
end
if op == 18 then
screen:fontPrint(tamano,45,255,"S1:Jiraiya",Gruen)
end
if op == 19 then
screen:fontPrint(tamano,45,255,"S1:Tsunade",Gruen)
end
if op == 20 then
screen:fontPrint(tamano,45,255,"S1:Tobi NM",Gruen)
end
if op == 21 then
screen:fontPrint(tamano,45,255,"S1:6xPain",Gruen)
end
if op == 22 then
screen:fontPrint(tamano,45,255,"S1:1.Hokage",Gruen)
end
if op == 23 then
screen:fontPrint(tamano,45,255,"S1:Yamato",Gruen)
end
if op == 24 then
screen:fontPrint(tamano,45,255,"S1:Shikamaru Sp",Gruen)
end
if op == 25 then
screen:fontPrint(tamano,45,255,"S1:Suigetsu",Gruen)
end
if op == 26 then
screen:fontPrint(tamano,45,255,"S1:3.Hokage",Gruen)
end


screen:fontPrint(tamano,170,200,"Vs",Schwarz)

if opc == 1 then
screen:fontPrint(tamano,237,255,"Cpu:Sasuke SM",Gelb)
end
if opc == 2 then
screen:fontPrint(tamano,237,255,"Cpu:Naruto CM",Gelb)
end
if opc == 3 then
screen:fontPrint(tamano,237,255,"Cpu:Sakura Sp",Gelb)
end
if opc == 4 then
screen:fontPrint(tamano,237,255,"Cpu:Kakashi",Gelb)
end
if opc == 5 then
screen:fontPrint(tamano,237,255,"Cpu:Temari Sp",Gelb)
end
if opc == 6 then
screen:fontPrint(tamano,237,255,"Cpu:Gaara Sp",Gelb)
end
if opc == 7 then
screen:fontPrint(tamano,237,255,"Cpu:Kankuro Sp",Gelb)
end
if opc == 8 then
screen:fontPrint(tamano,237,255,"Cpu:Deidara",Gelb)
end
if opc == 9 then
screen:fontPrint(tamano,237,255,"Cpu:Madara",Gelb)
end
if opc == 10 then
screen:fontPrint(tamano,237,255,"Cpu:Itachi SM",Gelb)
end
if opc == 11 then
screen:fontPrint(tamano,237,255,"Cpu:Gai",Gelb)
end
if opc == 12 then
screen:fontPrint(tamano,237,255,"Cpu:Danzou",Gelb)
end
if opc == 13 then
screen:fontPrint(tamano,237,255,"Cpu:Kabuto OM",Gelb)
end
if opc == 14 then
screen:fontPrint(tamano,237,255,"Cpu:Kisame",Gelb)
end
if opc == 15 then
screen:fontPrint(tamano,237,255,"Cpu:Shino Sp",Gelb)
end
if opc == 16 then
screen:fontPrint(tamano,237,255,"Cpu:Hinata Sp",Gelb)
end
if opc == 17 then
screen:fontPrint(tamano,237,255,"Cpu:Kiba Sp",Gelb)
end
if opc == 18 then
screen:fontPrint(tamano,237,255,"Cpu:Jiraiya",Gelb)
end
if opc == 19 then
screen:fontPrint(tamano,237,255,"Cpu:Tsunade",Gelb)
end
if opc == 20 then
screen:fontPrint(tamano,237,255,"Cpu:Tobi NM",Gelb)
end
if opc == 21 then
screen:fontPrint(tamano,237,255,"Cpu:6xPain",Gelb)
end
if opc == 22 then
screen:fontPrint(tamano,237,255,"Cpu:1.Hokage",Gelb)
end
if opc == 23 then
screen:fontPrint(tamano,237,255,"Cpu:Yamato",Gelb)
end
if opc == 24 then
screen:fontPrint(tamano,237,255,"Cpu:Shikamaru Sp",Gelb)
end
if opc == 25 then
screen:fontPrint(tamano,237,255,"Cpu:Suigetsu",Gelb)
end
if opc == 26 then
screen:fontPrint(tamano,237,255,"Cpu:3.Hokage",Gelb)
end

if pad:circle() then
loeschen2()
MENU()
end 

oldpad = pad
screen.flip()
screen.waitVblankStart()
end
end
------------------------------------------------------------------------------------------------
--------------------------------MENU--DE--GANAS--O--PIERDES-------------------------------------
------------------------------------------------------------------------------------------------
function GANASTE()
final = Image.load("Pictures/Rest/final.png")

while true do
pad = Controls.read()
screen:clear()
screen:blit(0,0,final)

if pad:start() and oldpad:start() ~= pad:start() then
final = nil
delete()
Loeschen()
loeschen2()
MENU()
end

screen.waitVblankStart()
screen.flip()
end
end
------------------------------------------------------------------------------------------------
---------------------------------------------MENU-----------------------------------------------
------------------------------------------------------------------------------------------------
function MENU()
a = Image.load("Pictures/Menu/1.jpg")
b = Image.load("Pictures/Menu/2.jpg")
c = Image.load("Pictures/Menu/3.jpg")
d = Image.load("Pictures/Menu/4.jpg")
e = Image.load("Pictures/Menu/5.jpg")
Okey = Image.load("Pictures/Rest/Tile2.png")

current = 1
oldpad = Controls.read()

while true do

screen:clear()
pad = Controls.read()


	if current == 1 then
    screen:blit(0,0,a,true)
	screen:blit(0,251,Okey)
    end
    if current == 2 then
    screen:blit(0,0,b,true)
	screen:blit(0,251,Okey)
    end 
    if current == 3 then
    screen:blit(0,0,c,true)
	screen:blit(0,251,Okey)
    end
	if current == 4 then
    screen:blit(0,0,d,true)
	screen:blit(0,251,Okey)
    end 
    if current == 5 then
    screen:blit(0,0,e,true)
	screen:blit(0,251,Okey)
    end

    if pad:up() and oldpad:up() ~= pad:up() then
	screen.waitVblankStart(10)
    current = current - 1
    end
    if pad:down() and oldpad:down() ~= pad:down() then
	screen.waitVblankStart(10)
    current = current + 1
    end
	
	if pad:cross() and current == 1 then
    SOON()
    end
    
	if pad:cross() and current == 2 then
	story = 1
    INICIO()
	end
    	
	if pad:cross() and current == 3 then
    story = 0
    INICIO()
    end
	
	if pad:cross() and current == 4 then
    CREDITO()
    end
	
	if pad:cross() and current == 5 then
    System.quit()
    end
	
	if current == 0 then
	current = 5
	end
	if current == 6  then
	current = 1
	end
	
collectgarbage()
oldpad = pad
screen.waitVblankStart()
screen.flip()
end
end

------------------------------------------------------------------------------------------------
----------------------------------------Soon----------------------------------------------------
------------------------------------------------------------------------------------------------
function SOON()
Soon = Image.load("Pictures/Rest/Soon.png")

while true do 
screen:clear()
pad = Controls.read()
screen:blit(0,0,Soon)

if pad:circle() then
Soon = nil
MENU()
end

screen.waitVblankStart()
screen.flip()
end
end

------------------------------------------------------------------------------------------------
----------------------------------------CREDITOS------------------------------------------------
------------------------------------------------------------------------------------------------
function CREDITO()
creditos = Image.load("Pictures/Rest/credits.png")

while true do 
screen:clear()
pad = Controls.read()
screen:blit(0,0,creditos)

if pad:circle() then
creditos = nil
MENU()
end

screen.waitVblankStart()
screen.flip()
end
end
------------------------------------------------------------------------------------------------
--------------------------------------Opc--Modo--story---------------------------------------
------------------------------------------------------------------------------------------------
function Story()
function Loeschen()
temari2 = nil
gaara2 = nil
kankuro2 = nil
hinata2 = nil
kiba2 = nil
shino2 = nil
kakashi2 = nil
gai2 = nil
naruto2 = nil
sakura2 = nil
sasuke2 = nil
kabuto2 = nil
kisame2 = nil
danzou2 = nil
itachi2 = nil
deidara2 = nil
madara2 = nil
jiraiya2 = nil
tsunade2 = nil
tobi2 = nil
pain2 = nil
hashirama2 = nil
suigetsu2 = nil
hiruzen2 = nil
shikamaru2 = nil
yamato2 = nil
batallas = nil
tile = nil
Okey = nil
end
Schwarz = Color.new(0,0,0)
morado = Color.new(128,0,128)
batallas = Image.load("Pictures/Rest/Back.png")
tile = Image.load("Pictures/Rest/Tile.png")
Okey = Image.load("Pictures/Rest/Tile2.png")

letras4 = Font.load("Fonts/Geek a byte 2.ttf")
letras4:setPixelSizes(0,15)
letras3 = Font.load("Fonts/Nationalyze.ttf")
letras3:setPixelSizes(0,35)

while true do
pad = Controls.read()
screen:clear()
screen:blit(0,0,batallas)
screen:blit(0,0,tile)
screen:blit(0,208,tile)
screen:blit(0,251,Okey)

if story == 1 then
screen:fontPrint(letras3,120,45,"KAMPF 1",Schwarz)
end
if story == 2 then
screen:fontPrint(letras3,120,45,"KAMPF 2",Schwarz)
end
if story == 3 then
screen:fontPrint(letras3,120,45,"KAMPF 3",Schwarz)
end
if story == 4 then
screen:fontPrint(letras3,120,45,"KAMPF 4",Schwarz)
end
if story == 5 then
screen:fontPrint(letras3,120,45,"KAMPF 5",Schwarz)
end
if story == 6 then
screen:fontPrint(letras3,120,45,"KAMPF 6",Schwarz)
end
if story == 7 then
screen:fontPrint(letras3,120,45,"KAMPF 7",Schwarz)
end
if story == 8 then
screen:fontPrint(letras3,120,45,"KAMPF 8",Schwarz)
end
if story == 9 then
screen:fontPrint(letras3,120,45,"KAMPF 9",Schwarz)
end
if story == 10 then
screen:fontPrint(letras3,120,45,"KAMPF 10",Schwarz)
end


if story == 1 and Spieler == 9 then
Feind = 9
end
if story == 2 and Spieler == 9 then
Feind = 8
end
if story == 3 and Spieler == 9 then
Feind = 12
end
if story == 4 and Spieler == 9 then
Feind = 17
end
if story == 5 and Spieler == 9 then
Feind = 16
end
if story == 6 and Spieler == 9 then
Feind = 21
end
if story == 7 and Spieler == 9 then
Feind = 20
end
if story == 8 and Spieler == 9 then
Feind = 11
end
if story == 9 and Spieler == 9 then
Feind = 14
end
if story == 10 and Spieler == 9 then
Feind = 22
end


if story == 1 and Spieler == 14 then
Feind = 12
end
if story == 2 and Spieler == 14 then
Feind = 13
end
if story == 3 and Spieler == 14 then
Feind = 15
end
if story == 4 and Spieler == 14 then
Feind = 6
end
if story == 5 and Spieler == 14 then
Feind = 5
end
if story == 6 and Spieler == 14 then
Feind = 18
end
if story == 7 and Spieler == 14 then
Feind = 4
end
if story == 8 and Spieler == 14 then
Feind = 3
end
if story == 9 and Spieler == 14 then
Feind = 10
end
if story == 10 and Spieler == 14 then
Feind = 25
end





if story == 1 and Spieler == 4 then
Feind = 16
end
if story == 2 and Spieler == 4 then
Feind = 15
end
if story == 3 and Spieler == 4 then
Feind = 2
end
if story == 4 and Spieler == 4 then
Feind = 8
end
if story == 5 and Spieler == 4 then
Feind = 19
end
if story == 6 and Spieler == 4 then
Feind = 1
end
if story == 7 and Spieler == 4 then
Feind = 4
end
if story == 8 and Spieler == 4 then
Feind = 7
end
if story == 9 and Spieler == 4 then
Feind = 14
end
if story == 10 and Spieler == 4 then
Feind = 23
end






if story == 1 and Spieler == 12 then
Feind = 13
end
if story == 2 and Spieler == 12 then
Feind = 14
end
if story == 3 and Spieler == 12 then
Feind = 6
end
if story == 4 and Spieler == 12 then
Feind = 2
end
if story == 5 and Spieler == 12 then
Feind = 5
end
if story == 6 and Spieler == 12 then
Feind = 21
end
if story == 7 and Spieler == 12 then
Feind = 11
end
if story == 8 and Spieler == 12 then
Feind = 15
end
if story == 9 and Spieler == 12 then
Feind = 9
end
if story == 10 and Spieler == 12 then
Feind = 26
end




if story == 1 and Spieler == 5 then
Feind = 8
end
if story == 2 and Spieler == 5 then
Feind = 10
end
if story == 3 and Spieler == 5 then
Feind = 12
end
if story == 4 and Spieler == 5 then
Feind = 18
end
if story == 5 and Spieler == 5 then
Feind = 3
end
if story == 6 and Spieler == 5 then
Feind = 17
end
if story == 7 and Spieler == 5 then
Feind = 9
end
if story == 8 and Spieler == 5 then
Feind = 1
end
if story == 9 and Spieler == 5 then
Feind = 11
end
if story == 10 and Spieler == 5 then
Feind = 24
end



if story == 1 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
Feind = 13
end
if story == 2 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
Feind = 12
end
if story == 3 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
Feind = 9
end
if story == 4 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
Feind = 10
end
if story == 5 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
Feind = 4
end
if story == 6 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
Feind = 20
end
if story == 7 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
Feind = 21
end
if story == 8 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
Feind = 6
end
if story == 9 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
Feind = 1
end
if story == 10 and Spieler ~= 5 and Spieler ~= 9 and Spieler ~= 12 and Spieler ~= 14 and Spieler ~= 4 then
Feind = 2
end

if Feind == 14 then
screen:fontPrint(letras4,265,245,"Cpu:Kisame",Schwarz)
kisame2 = Image.load("Pictures/Mugshots/Kisame.PNG")
screen:blit(330,66,kisame2)
end
if Feind == 13 then
screen:fontPrint(letras4,265,245,"Cpu:Kabuto OM",Schwarz)
kabuto2 = Image.load("Pictures/Mugshots/Kabuto.PNG")
screen:blit(330,66,kabuto2)
end
if Feind == 12 then
screen:fontPrint(letras4,265,245,"Cpu:Danzou",Schwarz)
danzou2 = Image.load("Pictures/Mugshots/Danzou.PNG")
screen:blit(330,66,danzou2)
end
if Feind == 17 then
screen:fontPrint(letras4,265,245,"Cpu:Kiba Sp",Schwarz)
kiba2 = Image.load("Pictures/Mugshots/Kiba.PNG")
screen:blit(330,66,kiba2)
end
if Feind == 16 then
screen:fontPrint(letras4,265,245,"Cpu:Hinata Sp",Schwarz)
hinata2 = Image.load("Pictures/Mugshots/Hinata.PNG")
screen:blit(330,66,hinata2)
end
if Feind == 15 then
screen:fontPrint(letras4,265,245,"Cpu:Shino Sp",Schwarz)
shino2 = Image.load("Pictures/Mugshots/Shino.PNG")
screen:blit(330,66,shino2)
end
if Feind == 9 then
screen:fontPrint(letras4,265,245,"Cpu:Madara",Schwarz)
madara2 = Image.load("Pictures/Mugshots/Madara.PNG")
screen:blit(330,66,madara2)
end
if Feind == 8 then
screen:fontPrint(letras4,265,245,"Cpu:Deidara",Schwarz)
deidara2 = Image.load("Pictures/Mugshots/Deidara.PNG")
screen:blit(330,66,deidara2)
end
if Feind == 10 then
screen:fontPrint(letras4,265,245,"Cpu:Itachi SM",Schwarz)
itachi2 = Image.load("Pictures/Mugshots/Itachi.PNG")
screen:blit(330,66,itachi2)
end
if Feind == 5 then
screen:fontPrint(letras4,265,245,"Cpu:Temari Sp",Schwarz)
temari2 = Image.load("Pictures/Mugshots/Temari.png")
screen:blit(330,66,temari2)
end
if Feind == 7 then
screen:fontPrint(letras4,265,245,"Cpu:Kankuro Sp",Schwarz)
kankuro2 = Image.load("Pictures/Mugshots/Kankuro.PNG")
screen:blit(330,66,kankuro2)
end
if Feind == 6 then
screen:fontPrint(letras4,265,245,"Cpu:Gaara Sp",Schwarz)
gaara2 = Image.load("Pictures/Mugshots/Gaara.png")
screen:blit(330,66,gaara2)
end
if Feind == 3 then
screen:fontPrint(letras4,265,245,"Cpu:Sakura Sp",Schwarz)
sakura2 = Image.load("Pictures/Mugshots/Sakura.PNG")
screen:blit(330,66,sakura2)
end
if Feind == 1 then
screen:fontPrint(letras4,265,245,"Cpu:Sasuke SM",Schwarz)
sasuke2 = Image.load("Pictures/Mugshots/Sasuke.PNG")
screen:blit(330,66,sasuke2)
end
if Feind == 2 then
screen:fontPrint(letras4,265,245,"Cpu:Naruto CM",Schwarz)
naruto2 = Image.load("Pictures/Mugshots/Naruto.png")
screen:blit(330,66,naruto2)
end
if Feind == 11 then
screen:fontPrint(letras4,265,245,"Cpu:Gai",Schwarz)
gai2 = Image.load("Pictures/Mugshots/Gai.png")
screen:blit(330,66,gai2)
end
if Feind == 4 then
screen:fontPrint(letras4,265,245,"Cpu:Kakashi",Schwarz)
kakashi2 = Image.load("Pictures/Mugshots/Kakashi.PNG")
screen:blit(330,66,kakashi2)
end
if Feind == 18 then
screen:fontPrint(letras4,265,245,"Cpu:Jiraiya",Schwarz)
jiraiya2 = Image.load("Pictures/Mugshots/Jiraiya.PNG")
screen:blit(330,66,jiraiya2)
end
if Feind == 19 then
screen:fontPrint(letras4,265,245,"Cpu:Tsunade",Schwarz)
tsunade2 = Image.load("Pictures/Mugshots/Tsunade.PNG")
screen:blit(330,66,tsunade2)
end
if Feind == 20 then
screen:fontPrint(letras4,265,245,"Cpu:Tobi NM",Schwarz)
tobi2 = Image.load("Pictures/Mugshots/Tobi.PNG")
screen:blit(330,66,tobi2)
end
if Feind == 21 then
screen:fontPrint(letras4,265,245,"Cpu:6xPain",Schwarz)
pain2 = Image.load("Pictures/Mugshots/Pain.PNG")
screen:blit(330,66,pain2)
end
if Feind == 22 then
screen:fontPrint(letras4,265,245,"Cpu:1.Hokage",Schwarz)
hashirama2 = Image.load("Pictures/Mugshots/Hashirama.PNG")
screen:blit(330,66,hashirama2)
end
if Feind == 23 then
screen:fontPrint(letras4,265,245,"Cpu:Yamato",Schwarz)
yamato2 = Image.load("Pictures/Mugshots/Yamato.PNG")
screen:blit(330,66,yamato2)
end
if Feind == 24 then
screen:fontPrint(letras4,265,245,"Cpu:Shikamaru Sp",Schwarz)
shikamaru2 = Image.load("Pictures/Mugshots/Shikamaru.PNG")
screen:blit(330,66,shikamaru2)
end
if Feind == 25 then
screen:fontPrint(letras4,265,245,"Cpu:Suigetsu",Schwarz)
suigetsu2 = Image.load("Pictures/Mugshots/Suigetsu.PNG")
screen:blit(330,66,suigetsu2)
end
if Feind == 26 then
screen:fontPrint(letras4,265,245,"Cpu:3.Hokage",Schwarz)
hiruzen2 = Image.load("Pictures/Mugshots/Hiruzen.PNG")
screen:blit(330,66,hiruzen2)
end

screen:fontPrint(letras4,240,245,"VS",Schwarz)

if op == 1 then
screen:fontPrint(letras4,110,245,"S1:Sasuke SM",Schwarz)
sasuke2 = Image.load("Pictures/Mugshots/Sasuke.PNG")
screen:blit(36,66,sasuke2)
end
if op == 2 then
screen:fontPrint(letras4,110,245,"S1:Naruto CM",Schwarz)
naruto2 = Image.load("Pictures/Mugshots/Naruto.png")
screen:blit(36,66,naruto2)
end
if op == 3 then
screen:fontPrint(letras4,110,245,"S1:Sakura Sp",Schwarz)
sakura2 = Image.load("Pictures/Mugshots/Sakura.PNG")
screen:blit(36,66,sakura2)
end
if op == 4 then
screen:fontPrint(letras4,110,245,"S1:Kakashi",Schwarz)
kakashi2 = Image.load("Pictures/Mugshots/Kakashi.PNG")
screen:blit(36,66,kakashi2)
end
if op == 5 then
screen:fontPrint(letras4,110,245,"S1:Temari Sp",Schwarz)
temari2 = Image.load("Pictures/Mugshots/Temari.png")
screen:blit(36,66,temari2)
end
if op == 6 then
screen:fontPrint(letras4,110,245,"S1:Gaara Sp",Schwarz)
gaara2 = Image.load("Pictures/Mugshots/Gaara.png")
screen:blit(36,66,gaara2)
end
if op == 7 then
screen:fontPrint(letras4,110,245,"S1:Kankuro Sp",Schwarz)
kankuro2 = Image.load("Pictures/Mugshots/Kankuro.PNG")
screen:blit(36,66,kankuro2)
end
if op == 8 then
screen:fontPrint(letras4,110,245,"S1:Deidara",Schwarz)
deidara2 = Image.load("Pictures/Mugshots/Deidara.PNG")
screen:blit(36,66,deidara2)
end
if op == 9 then
screen:fontPrint(letras4,110,245,"S1:Madara",Schwarz)
madara2 = Image.load("Pictures/Mugshots/Madara.PNG")
screen:blit(36,66,madara2)
end
if op == 10 then
screen:fontPrint(letras4,110,245,"S1:Itachi SM",Schwarz)
itachi2 = Image.load("Pictures/Mugshots/Itachi.PNG")
screen:blit(36,66,itachi2)
end
if op == 11 then
screen:fontPrint(letras4,110,245,"S1:Gai",Schwarz)
gai2 = Image.load("Pictures/Mugshots/Gai.png")
screen:blit(36,66,gai2)
end
if op == 12 then
screen:fontPrint(letras4,110,245,"S1:Danzou",Schwarz)
danzou2 = Image.load("Pictures/Mugshots/Danzou.PNG")
screen:blit(36,66,danzou2)
end
if op == 13 then
screen:fontPrint(letras4,110,245,"S1:Kabuto OM",Schwarz)
kabuto2 = Image.load("Pictures/Mugshots/Kabuto.PNG")
screen:blit(36,66,kabuto2)
end
if op == 14 then
screen:fontPrint(letras4,110,245,"S1:Kisame",Schwarz)
kisame2 = Image.load("Pictures/Mugshots/Kisame.PNG")
screen:blit(36,66,kisame2)
end
if op == 15 then
screen:fontPrint(letras4,110,245,"S1:Shino Sp",Schwarz)
shino2 = Image.load("Pictures/Mugshots/Shino.PNG")
screen:blit(36,66,shino2)
end
if op == 16 then
screen:fontPrint(letras4,110,245,"S1:Hinata Sp",Schwarz)
hinata2 = Image.load("Pictures/Mugshots/Hinata.PNG")
screen:blit(36,66,hinata2)
end
if op == 17 then
screen:fontPrint(letras4,110,245,"S1:Kiba Sp",Schwarz)
kiba2 = Image.load("Pictures/Mugshots/Kiba.PNG")
screen:blit(0,66,kiba2)
end
if op == 18 then
screen:fontPrint(letras4,110,245,"S1:Jiraiya",Schwarz)
jiraiya2 = Image.load("Pictures/Mugshots/Jiraiya.PNG")
screen:blit(36,66,jiraiya2)
end
if op == 19 then
screen:fontPrint(letras4,110,245,"S1:Tsunade",Schwarz)
tsunade2 = Image.load("Pictures/Mugshots/Tsunade.PNG")
screen:blit(36,66,tsunade2)
end
if op == 20 then
screen:fontPrint(letras4,110,245,"S1:Tobi NM",Schwarz)
tobi2 = Image.load("Pictures/Mugshots/Tobi.PNG")
screen:blit(36,66,tobi2)
end
if op == 21 then
screen:fontPrint(letras4,110,245,"S1:6xPain",Schwarz)
pain2 = Image.load("Pictures/Mugshots/Pain.PNG")
screen:blit(36,66,pain2)
end
if op == 22 then
screen:fontPrint(letras4,110,245,"S1:1.Hokage",Schwarz)
hashirama2 = Image.load("Pictures/Mugshots/Hashirama.PNG")
screen:blit(36,66,hashirama2)
end
if op == 23 then
screen:fontPrint(letras4,110,245,"S1:Yamato",Schwarz)
yamato2 = Image.load("Pictures/Mugshots/Yamato.PNG")
screen:blit(36,66,yamato2)
end
if op == 24 then
screen:fontPrint(letras4,110,245,"S1:Shikamaru Sp",Schwarz)
shikamaru2 = Image.load("Pictures/Mugshots/Shikamaru.PNG")
screen:blit(36,66,shikamaru2)
end

if op == 25 then
screen:fontPrint(letras4,110,245,"S1:Suigetsu",Schwarz)
suigetsu2 = Image.load("Pictures/Mugshots/Suigetsu.PNG")
screen:blit(36,66,suigetsu2)
end

if op == 26 then
screen:fontPrint(letras4,110,245,"S1:3.Hokage",Schwarz)
hiruzen2 = Image.load("Pictures/Mugshots/Hiruzen.PNG")
screen:blit(36,66,hiruzen2)
end

if pad:cross() then
Loeschen()
Arena = 9
GAME()
end

screen.flip()
screen.waitVblankStart()
end
end
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
function GOP() 
Gewonnen = Image.load("Pictures/Rest/Gewonnen.png")
Verloren = Image.load("Pictures/Rest/Verloren.png")
Okey = Image.load("Pictures/Rest/Tile2.png")

while true do
pad = Controls.read()
screen:clear()

if gan == 1 then
screen:blit(0,0,Gewonnen)
elseif per == 1 and story <= 0  then
screen:blit(0,0,Verloren)
elseif per == 1 and story > 0 then
screen:blit(0,0,Verloren)
end

screen:blit(0,165,Okey)

if pad:cross() and oldpad:cross() ~= pad:cross() and gan == 1 and story > 0 then
story = story +1
Gewonnen = nil
Verloren = nil
Okey = nil
Story()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and gan == 1 and story <= 0 then
Gewonnen = nil
Verloren = nil
Okey = nil
INICIO()
end
if pad:cross() and oldpad:cross() ~= pad:cross() and per == 1 and story <= 0 then
Gewonnen = nil
Verloren = nil
Okey = nil
story = 0
INICIO()
elseif pad:cross() and oldpad:cross() ~= pad:cross() and story > 0 and per == 1 then
Gewonnen = nil
Verloren = nil
Okey = nil
INICIO()
end

screen.flip()
screen.waitVblankStart()
end
end
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
function Freischalten()
dofile("Ninja.txt")
hashirama100 = Image.load("Pictures/End/Hashirama.png")
shikamaru100 = Image.load("Pictures/End/Shikamaru.png")
hiruzen100 = Image.load("Pictures/End/Hiruzen.png")
suigetsu100 = Image.load("Pictures/End/Suigetsu.png")
yamato100 = Image.load("Pictures/End/Yamato.png")

while true do
pad = Controls.read()
screen:clear()

if story == 10 and Spieler == 5 and Gegner.salud < 1 then
screen:blit(0,0,shikamaru100)
screen.flip()
screen.waitVblankStart(200)
shikamaru100 = nil
GANASTE()
end

if story == 10 and Spieler == 9 and Gegner.salud < 1 then
screen:blit(0,0,hashirama100)
screen.flip()
screen.waitVblankStart(200)
hashirama100 = nil
GANASTE()
end

if story == 10 and Spieler == 12 and Gegner.salud < 1 then
screen:blit(0,0,hiruzen100)
screen.flip()
screen.waitVblankStart(200)
hiruzen100 = nil
GANASTE()
end

if story == 10 and Spieler == 14 and Gegner.salud < 1 then
screen:blit(0,0,suigetsu100)
screen.flip()
screen.waitVblankStart(200)
suigetsu100 = nil
GANASTE()
end

if story == 10 and Spieler == 4 and Gegner.salud < 1 then
screen:blit(0,0,yamato100)
screen.flip()
screen.waitVblankStart(200)
yamato100 = nil
GANASTE()
end

screen.waitVblankStart()
screen.flip()
end
end
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Intro1 = Image.load("Pictures/intro/01.png")
Intro2 = Image.load("Pictures/intro/02.png")
Intro3 = Image.load("Pictures/intro/03.png")
Intro4 = Image.load("Pictures/intro/04.png")
Intro5 = Image.load("Pictures/intro/05.png")
Intro6 = Image.load("Pictures/intro/06.png")
Intro7 = Image.load("Pictures/intro/07.png")
Intro8 = Image.load("Pictures/intro/08.png")
Intro9 = Image.load("Pictures/intro/09.png")
Intro10 = Image.load("Pictures/intro/10.png")
Intro11 = Image.load("Pictures/intro/11.png")
Intro12 = Image.load("Pictures/intro/12.png")
Intro13 = Image.load("Pictures/intro/13.png")
Okey = Image.load("Pictures/Rest/Tile2.png")

screen:blit(0,0,Intro1)
screen.flip()
screen.waitVblankStart(15)
screen:clear()
screen:blit(0,0,Intro2)
screen.flip()
screen.waitVblankStart(15)
screen:clear()
screen:blit(0,0,Intro3)
screen.flip()
screen.waitVblankStart(15)
screen:clear()
screen:blit(0,0,Intro4)
screen.flip()
screen.waitVblankStart(15)
screen:clear()
screen:blit(0,0,Intro5)
screen.flip()
screen.waitVblankStart(15)
screen:clear()
screen:blit(0,0,Intro6)
screen.flip()
screen.waitVblankStart(15)
screen:clear()
screen:blit(0,0,Intro7)
screen.flip()	
screen.waitVblankStart(15)
screen:clear()
screen:blit(0,0,Intro8)
screen.flip()
screen.waitVblankStart(15)
screen:clear()
screen:blit(0,0,Intro9)
screen.flip()
screen.waitVblankStart(15)
screen:clear()
screen: blit(0,0,Intro10)
screen.flip()
screen.waitVblankStart(15)
screen:clear()
screen: blit(0,0,Intro11)
screen.flip()
screen.waitVblankStart(15)
screen:clear()
screen: blit(0,0,Intro12)
screen.flip()
screen.waitVblankStart(15)
screen:clear()

Intro1 = nil
Intro2 = nil
Intro3 = nil
Intro4 = nil
Intro5 = nil
Intro6 = nil
Intro7 = nil
Intro8 = nil
Intro9 = nil
Intro10 = nil
Intro11 = nil
Intro12 = nil

while true do
pad = Controls.read()
screen:clear()
screen:blit(0,0,Intro13,true)
screen:blit(0,251,Okey,true)
if pad:cross() then
Okey = nil
Intro13 = nil
MENU()
end
screen.waitVblankStart()
screen.flip()
end

