[Added] Crates, Hud for bullets and health

This commit is contained in:
Ninjaws
2024-12-15 00:12:16 +01:00
parent 55792bb954
commit de958b02e6
17 changed files with 448 additions and 38 deletions
+6 -1
View File
@@ -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;