[Added] Ability to serve the project using nginx on localhost:4600
This commit is contained in:
@@ -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
|
||||
@@ -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();
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user