[Added] Jellies, healthpacks, ammopacks, powerups, [Updated] Gun rotation

This commit is contained in:
Ninjaws
2024-12-15 20:14:57 +01:00
parent de958b02e6
commit 5af531a08b
15 changed files with 564 additions and 155 deletions
+6
View File
@@ -35,6 +35,12 @@ class Background {
DrawTextureRec(texture.getTexture(), texture.getSourceRect(), texture.getPosition(),WHITE);
}
}
Vector2 getBackgroundSize() {
TextureWrapper lastbg = this->textures[this->textures.size()-1];
return {lastbg.getPosition().x + lastbg.getSize().x, lastbg.getPosition().y + lastbg.getSize().y};
}
private:
std::vector<TextureWrapper> textures;
// Vector2 position;