Shmup/src/shmup/background.h

52 lines
753 B
C
Raw 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 );
void SetSpeed( libnum::num s );
2023-01-27 22:52:13 +01:00
private:
libnum::num xlevel, ylevel;
libnum::num speed;
2023-01-27 22:52:13 +01:00
};
#endif