diff options
Diffstat (limited to 'Level.cpp')
-rw-r--r-- | Level.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -29,14 +29,18 @@ void Level::changeLevel(int levelNo) { // Load background image if (!(background = loadImage("space.png"))) std::cout << "Level::changeLevel: Error loading background image.\n"; + + // Make player into a Marcus + player.setImage("marcussheet.png"); } void Level::move() { - //std::cout << "Level::move(): Moving level items.\n"; + player.setX(player.getX() + player.getXVel()); } void Level::draw(Screen *screen) { - //std::cout << "Level::draw(): Drawing into the screen.\n"; // Blit background screen->blit(0, 0, background); + + screen->blit(player.getX(), player.getY(), player.image); } |