[Added] Ability to serve the project using nginx on localhost:4600

This commit is contained in:
Ninjaws
2024-12-19 22:40:59 +01:00
parent c0bfe9bd13
commit 33f6504b6c
10 changed files with 220 additions and 121 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ public:
private:
TextureWrapper texture;
bool hit; // Whether a PBullet has hit the crate
bool hit = false; // Whether a PBullet has hit the crate
};
#endif
+2
View File
@@ -14,6 +14,7 @@
#include "services/BulletService.h"
#include "entities/Text.h"
#include <sstream>
#include <iostream>
class Game
{
@@ -49,6 +50,7 @@ public:
this->crosshair = TextureWrapper(AssetService::getInstance().getSprite(ESprite::CROSSHAIR), {15, 15}, {0, 0}, {0, 0, 15, 15});
CollectableService::getInstance().initCollectables();
std::cout << "Initting" << std::endl;
initHud();
initPauseScreen();
+2 -2
View File
@@ -10,13 +10,13 @@ class Jelly
public:
Jelly(){
this->texture = TextureWrapper(AssetService::getInstance().getSprite(ESprite::JELLY),{32,32});
AssetService::getInstance().playSound(ESound::JELLY_FREED);
// AssetService::getInstance().playSound(ESound::JELLY_FREED);
}
Jelly(Vector2 startPos)
{
this->startPosition = startPos;
this->texture = TextureWrapper(AssetService::getInstance().getSprite(ESprite::JELLY),{32,32},startPos);
AssetService::getInstance().playSound(ESound::JELLY_FREED);
// AssetService::getInstance().playSound(ESound::JELLY_FREED);
}
void logic()