Modificada la estructura on es guarden els datos de la demo
This commit is contained in:
@@ -58,7 +58,6 @@ struct HiScoreEntry
|
||||
int score; // Puntuación
|
||||
};
|
||||
|
||||
// Estructura para mapear el teclado usado en la demo
|
||||
struct DemoKeys
|
||||
{
|
||||
Uint8 left;
|
||||
@@ -67,6 +66,10 @@ struct DemoKeys
|
||||
Uint8 fire;
|
||||
Uint8 fire_left;
|
||||
Uint8 fire_right;
|
||||
|
||||
// Constructor que inicializa todos los campos
|
||||
DemoKeys(Uint8 l = 0, Uint8 r = 0, Uint8 ni = 0, Uint8 f = 0, Uint8 fl = 0, Uint8 fr = 0)
|
||||
: left(l), right(r), no_input(ni), fire(f), fire_left(fl), fire_right(fr) {}
|
||||
};
|
||||
|
||||
// Estructura para las opciones de la ventana
|
||||
@@ -215,7 +218,6 @@ struct Param
|
||||
ParamNotification notification; // Opciones para las notificaciones
|
||||
};
|
||||
|
||||
|
||||
// Calcula el cuadrado de la distancia entre dos puntos
|
||||
double distanceSquared(int x1, int y1, int x2, int y2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user