blob: 4a097a636a60b330d89c182b11564576d0b3aac6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef WORLD_H
#define WORLD_H
#include <common.h>
#include <cstring>
#define LAYER0_Y (-0.8f)
#define TEX_SIZE ( 0.2f)
class World {
private:
struct layer_t {
unsigned int tex;
float offset;
} layer[4];
public:
World(const char *l1,const char *l2,const char *l3,const char *bg);
void draw(void);
void update(int player_accel);
};
#endif // WORLD_H
|