Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Nivel.h
- // Base para juego de plataformas en C++ y Allegro
- #ifndef NIVEL_H_INCLUDED
- #define NIVEL_H_INCLUDED
- // Una plataforma o pared del nivel se representa por una "X" en una cadena.
- struct Plataforma
- { float x, y;
- Plataforma(float _x, float _y) : x(_x), y(_y)
- {}
- };
- // Función para crear el nivel con una cadena de caracteres (string).
- void Crear_Nivel(const char *cadena, float& inicio_x, float& inicio_y);
- // Dibujar el nivel después de crearlo
- void Dibujar_Nivel();
- // Destruir el nivel cuando ya no se necesite
- void Destruir_Nivel();
- // Función para devolver el puntero de una plataforma en la posición indicada.
- // Si no hay plataformas en la posición, devolverá "nullptr".
- Plataforma *Checar_Plataforma(float _x, float _y);
- #endif // NIVEL_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement