Sprite de interfaz y ajustes de tamanio

parent 2ae716fa
No preview for this file type
...@@ -5,16 +5,20 @@ PantallaPrincipal::PantallaPrincipal() : ...@@ -5,16 +5,20 @@ PantallaPrincipal::PantallaPrincipal() :
Fondo1("assets/fondoHabitacion.jpg") Fondo1("assets/fondoHabitacion.jpg")
{ {
Sprite sprPlanta("assets/planta.png"); Sprite sprPlanta("assets/planta.png");
Sprite sprInterfaz("assets/InterfazPrincipal.png");
Hitbox hitPlanta(350,80,450,120); Hitbox hitPlanta(350,80,450,120);
Hitbox hitInterfaz(1920,0,900,700);
Hitbox hitCama(10,50,300,300); Hitbox hitCama(10,50,300,300);
Hitbox hitFondo(1000000,-10000000,50,0); Hitbox hitFondo(1000000,-10000000,50,0);
Objeto Planta(sprPlanta,sprPlanta,sprPlanta,hitPlanta,1200,400,300,400, normal); Objeto Planta(sprPlanta,sprPlanta,sprPlanta,hitPlanta,1200,400,300,400, normal);
Objeto Interfaz(sprInterfaz,sprInterfaz,sprInterfaz,hitInterfaz,0,870,1920,216,normal);
objetos.push_back(Planta); objetos.push_back(Planta);
objetos.push_back(Interfaz);
colisiones.push_back(hitPlanta); colisiones.push_back(hitPlanta);
colisiones.push_back(hitCama); colisiones.push_back(hitCama);
colisiones.push_back(hitFondo); colisiones.push_back(hitFondo);
colisiones.push_back(hitInterfaz);
} }
......
...@@ -31,8 +31,8 @@ class Personaje { ...@@ -31,8 +31,8 @@ class Personaje {
public: public:
int x = 100; int x = -100;
int profundidades = 100; int profundidades = 600;
Personaje(); Personaje();
void move(Facing direcion); void move(Facing direcion);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment