Refactoring in Movers.
The displayed texture now bounces vertically.
This commit is contained in:
parent
3269b469e3
commit
85c65b3e68
13 changed files with 62 additions and 22 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "gameplaysceneclassic.hpp"
|
||||
#include "character.hpp"
|
||||
#include "moversine.hpp"
|
||||
#include "sdlmain.hpp"
|
||||
#include <algorithm>
|
||||
|
||||
namespace cloonel {
|
||||
|
@ -35,6 +36,8 @@ namespace cloonel {
|
|||
|
||||
AddMover(m_moverSine.get());
|
||||
AddDrawable(m_player.get());
|
||||
|
||||
m_moverSine->SetPower(static_cast<float>(SDLObject()->DefWidthHeight().y() / 2));
|
||||
}
|
||||
|
||||
///--------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue