Camera implemented
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
//
|
||||
#include "../engine/game/game.hpp"
|
||||
#include "../engine/rendering/renderer.hpp"
|
||||
#include "camera.hpp"
|
||||
#include "../engine/utility/grid2d.hpp"
|
||||
#include <vector>
|
||||
#ifndef RLA_IIPP_VISUALIZER_HPP
|
||||
#define RLA_IIPP_VISUALIZER_HPP
|
||||
#define TITLE "test"
|
||||
#define WIN_WIDTH 800
|
||||
#define WIN_HEIGHT 600
|
||||
#define TARGET_FPS 61
|
||||
#define MAP_SIZE_W 20
|
||||
#define MAP_SIZE_H 20
|
||||
|
||||
class Visualizer : public Game {
|
||||
public:
|
||||
@@ -22,15 +22,19 @@ public:
|
||||
|
||||
void initialize(GameInitArgs args) override;
|
||||
|
||||
|
||||
private:
|
||||
int window_width = 0;
|
||||
int window_height = 0;
|
||||
std::vector<std::vector<char>> tile_map;
|
||||
Grid2D<char> tile_map = Grid2D<char>(0, 0);
|
||||
Camera camera = Camera();
|
||||
|
||||
int x = 0;
|
||||
int y=0;
|
||||
int sprite_index = 1;
|
||||
|
||||
void initialize_map(int width, int height);
|
||||
|
||||
};
|
||||
|
||||
#endif //RLA_IIPP_VISUALIZER_HPP
|
||||
|
||||
Reference in New Issue
Block a user