[Added] Crates, Hud for bullets and health
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#ifndef MAP_H
|
||||
#define MAP_H
|
||||
|
||||
#include <vector>
|
||||
#include "raylib.h"
|
||||
#include "entities/TextureWrapper.h"
|
||||
#include "entities/Vector2i.h"
|
||||
#include <vector>
|
||||
#include <cmath>
|
||||
|
||||
/**
|
||||
@@ -28,6 +29,10 @@ public:
|
||||
return this->colMap;
|
||||
}
|
||||
|
||||
void updateColmapTile(Vector2i tile, bool collision) {
|
||||
this->colMap[tile.y][tile.x] = collision ? 1 : 0;
|
||||
}
|
||||
|
||||
private:
|
||||
/** Holds the number for every single tile, which refers to a certain sprite in the tileset */
|
||||
std::vector<std::vector<Vector2>> map;
|
||||
|
||||
Reference in New Issue
Block a user