Code: Select all
Vagikarp=BasePoke:new(100,fap,"Vagikarp",true,false,1,false)--"Sorry, you're a failure as a human, here, take this vagicarp"-camewel
function Vagikarp:draw()--Draws Vagikarp. For creating custom pokemon, follow Vagikarp's lead.
if self.user==true then
love.graphics.print(self.name,0,0)
love.graphics.print(self.hp,0,11)
love.graphics.print('lvl:'..self.level,60,0)
end
if self.enemy==true then
love.graphics.print(self.name,100,0)
love.graphics.print(self.hp,100,11)
love.graphics.print('lvl:'..self.level,150,0)
end
end
function Vagikarp:levelup()--LEVELUP
if self.user==true and user.win==true then
self.level=self.level+1
end
if self.enemy==true and enemy.win==true then
self.level=self.level+1
end
end
function Vagikarp:faint()
self.hp=100
if self.user==true then
user.lose=true
end
if self.user==false then
user.win=true
end
end