Change to init app in init()
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#include <array>
|
||||
#include <vector>
|
||||
#include "Tree.hpp"
|
||||
|
||||
class App
|
||||
{
|
||||
|
||||
public:
|
||||
App(int screenWidth, int screenHeight);
|
||||
App() = default;
|
||||
~App() = default;
|
||||
void init();
|
||||
void init(int screenWidth, int screenHeight);
|
||||
void update();
|
||||
void draw();
|
||||
void deinit();
|
||||
@@ -15,7 +15,7 @@ public:
|
||||
private:
|
||||
int pos = 0;
|
||||
int screenWidth, screenHeight;
|
||||
std::array<Tree, 2> trees;
|
||||
std::vector<Tree> trees;
|
||||
Vector2 center;
|
||||
float rotation = 0.0f;
|
||||
Rectangle destB;
|
||||
|
Reference in New Issue
Block a user