blob: d45fdd99e3dd0a21738c91f5ed239994b8efb0fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <crepe/api/Script.h>
class ForestParallaxScript : public crepe::Script {
public:
ForestParallaxScript(float begin_x, float end_x, std::string unique_bg_name);
void fixed_update(crepe::duration_t dt);
private:
float begin_x;
float end_x;
const std::string name;
float start_x = 4200;
const float lenght = 3000;
};
|