Player::Player() { mouseSensibility(0.25); position(0,50,0); activeBody(); move(); }
Player::Player() { mouseSensibility(0.25); position(320, 45, 220); activeBody(); move(); portal = false; pulo = false; morto = false; venceu = false; podeTeleportarVermelho = false; podeTeleportarAzul = false; linearSpeed(3.0); label(JOGADOR); lancamissel.load("media/sfx/rpg_fire_01.wav"); hoop.load("media/sfx/jump1.wav"); dor.load("media/sfx/pain4.wav"); dor2.load("media/sfx/pain3.wav"); morte.load("media/sfx/death2.wav"); queda.load("media/sfx/fallpain2.wav"); queda2.load("media/sfx/fallpain1.wav"); teleport.load("media/sfx/teleport.wav"); agua.load("media/sfx/water.wav"); ending.load("media/sfx/outro.wav"); timer = 0; timer2 = 0; timer3 = 0; timer4 = 0; timer5 = 0; screen = 0; vida = 100; alturaMax = 0; alturaChao = 0; barraDeVida.load("media/sprites/lifebar.bmp"); barraDeVida.scale(1.0,0.5); barraDeVida.position(20 + barraDeVida.width()/2,580 - barraDeVida.height()/2); barraDeVidaVermelha.load("media/sprites/lifebar_empty.bmp"); barraDeVidaVermelha.scale(1.0,0.5); barraDeVidaVermelha.position(20 + barraDeVidaVermelha.width()/2,580 - barraDeVidaVermelha.height()/2); mira.load("media/sprites/mira.png"); mira.position(400,300); }