ahora se puede elegir el modo de la clase tiledbg
añadido modo estático a la clase tiledbg
This commit is contained in:
@@ -9,6 +9,11 @@
|
||||
#ifndef TILEDBG_H
|
||||
#define TILEDBG_H
|
||||
|
||||
#define TILED_MODE_CIRCLE 0
|
||||
#define TILED_MODE_DIAGONAL 1
|
||||
#define TILED_MODE_RANDOM 2
|
||||
#define TILED_MODE_STATIC 3
|
||||
|
||||
// Clase Tiledbg
|
||||
class Tiledbg
|
||||
{
|
||||
@@ -23,7 +28,7 @@ private:
|
||||
// Variables
|
||||
SDL_Rect pos; // Posición y tamaña del mosaico
|
||||
int counter; // Contador
|
||||
Uint8 mode; // Tipo de movimiento del mosaico
|
||||
int mode; // Tipo de movimiento del mosaico
|
||||
float sin[360]; // Vector con los valores del seno precalculados
|
||||
int tileWidth; // Ancho del tile
|
||||
int tileHeight; // Alto del tile
|
||||
@@ -36,7 +41,7 @@ private:
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Tiledbg(SDL_Renderer *renderer, Screen *screen, Asset *asset, SDL_Rect pos);
|
||||
Tiledbg(SDL_Renderer *renderer, Screen *screen, Asset *asset, SDL_Rect pos, int mode);
|
||||
|
||||
// Destructor
|
||||
~Tiledbg();
|
||||
|
||||
Reference in New Issue
Block a user