Demo: añadidas notificaciones
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -117,7 +117,7 @@ int main(int argc, char *argv[])
|
||||
switch (event->key.keysym.scancode)
|
||||
{
|
||||
case SDL_SCANCODE_N:
|
||||
screen->showNotification("Ejemplo de", "notificacion", 1);
|
||||
screen->showNotification("Ejemplo de notificacion", "con 2 lineas de texto", 0);
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -135,6 +135,9 @@ int main(int argc, char *argv[])
|
||||
// Incrementa el contador
|
||||
counter++;
|
||||
|
||||
// Actualiza el objeto screen
|
||||
screen->update();
|
||||
|
||||
// Actualiza el sprite
|
||||
if (sprite->getPosX() + sprite->getWidth() > options->gameWidth or sprite->getPosX() < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user