Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CharacterKoopa::MoveLeft(float deltaTime)
- {
- mFacingDirection = FACING_LEFT;
- if (!(mPosition.x < 0))
- {
- mPosition.x -= mMovementSpeed;
- }
- }
- void CharacterKoopa::MoveRight(float deltaTime)
- {
- mFacingDirection = FACING_RIGHT;
- if (!(mPosition.x + mSingleSpriteWidth > SCREEN_WIDTH))
- {
- mPosition.x += mMovementSpeed;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement