diff options
| author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-14 01:19:37 +0100 | 
|---|---|---|
| committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-14 01:19:37 +0100 | 
| commit | 05314c67655e5030d89e85087fba0a699d8a4ba7 (patch) | |
| tree | 4a955061ede8fc39dfc74272a0062e6aa6fd7236 /src/gameplay.cpp | |
| parent | shit background image featureing hit-- bowser. I meant bowser... (diff) | |
| download | threshold-05314c67655e5030d89e85087fba0a699d8a4ba7.tar.gz threshold-05314c67655e5030d89e85087fba0a699d8a4ba7.tar.bz2 threshold-05314c67655e5030d89e85087fba0a699d8a4ba7.tar.xz threshold-05314c67655e5030d89e85087fba0a699d8a4ba7.tar.zst threshold-05314c67655e5030d89e85087fba0a699d8a4ba7.zip | |
background can now be specified in map file
Diffstat (limited to '')
| -rw-r--r-- | src/gameplay.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/src/gameplay.cpp b/src/gameplay.cpp index 88da5ec..dd395ca 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -54,6 +54,10 @@ Game::Game(std::string const& path) : current(path) {              ifs >> tok;              nPerWave = std::atoi(tok.c_str());          } +        if (tok == "BACKGROUND") { +            ifs >> tok; +            background = tok; +        }      }      ifs.close();      enemies = new std::vector<Entity>; @@ -334,3 +338,7 @@ std::string const& Game::getNext() const {  std::string const& Game::getCurrent() const {      return current;  } + +std::string const& Game::getBackground() const { +    return background; +} | 
