Shmup/src/background.h

49 lines
697 B
C
Raw Permalink Normal View History

#ifndef BACKGROUND_H
#define BACKGROUND_H
#include <cstdint>
#include <stdlib.h>
#include <azur/gint/render.h>
#include <vector>
2023-01-27 22:52:13 +01:00
#include "num/num.h"
struct Map {
/*width, height and the number of layer of the map*/
int w, h, nblayers;
/*the tileset to use*/
bopti_image_t *tileset;
int tileset_size;
/*list of all the tiles*/
short *layers[];
};
class Background
{
public:
Background( );
~Background( );
void Update( float dt );
void Render( );
2023-01-27 22:52:13 +01:00
void IncXCoordinate( libnum::num x );
void IncYCoordinate( libnum::num y );
int GetXCoordinate( void );
int GetYCoordinate( void );
2023-01-27 22:52:13 +01:00
private:
libnum::num xlevel, ylevel;
};
#endif