- [FIX] No se cridava a SDL_Init()
- [FIX] Ja funciona el gamepad - [CHG] Canviat el format del temps en la pantalla de game over - [CHG] Canvi en una habitació per a balancejar
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "m_gameover.h"
|
||||
#include "jgame.h"
|
||||
#include "jinput.h"
|
||||
#include "controller.h"
|
||||
#include "jdraw.h"
|
||||
#include "actor.h"
|
||||
#include "room.h"
|
||||
@@ -12,7 +12,7 @@ namespace modules
|
||||
namespace gameover
|
||||
{
|
||||
actor::actor_t *heroi = nullptr;
|
||||
char time_text[7] = "000:00";
|
||||
char time_text[7] = " 00:00";
|
||||
|
||||
void init()
|
||||
{
|
||||
@@ -24,8 +24,8 @@ namespace modules
|
||||
int minutes = seconds / 60;
|
||||
seconds = seconds % 60;
|
||||
|
||||
time_text[0] = (minutes/100)+48;
|
||||
time_text[1] = ((minutes%100)/10)+48;
|
||||
time_text[0] = minutes<100 ? ' ' : (minutes/100)+48;
|
||||
time_text[1] = minutes<10 ? ' ' : ((minutes%100)/10)+48;
|
||||
time_text[2] = (minutes%10)+48;
|
||||
|
||||
time_text[4] = (seconds/10)+48;
|
||||
@@ -35,7 +35,7 @@ namespace modules
|
||||
|
||||
bool loop()
|
||||
{
|
||||
if (input::keyPressed(SDL_SCANCODE_SPACE)) { return false; }
|
||||
if (controller::pressed(KEY_JUMP) || controller::pressed(KEY_PICK)) { return false; }
|
||||
|
||||
draw::cls(2);
|
||||
draw::color(1);
|
||||
|
||||
Reference in New Issue
Block a user