설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bonus.cpp 444B

123456789101112131415161718192021222324252627
  1. #include "bug.h"
  2. #include "debuggers.h"
  3. #include <iostream>
  4. #include <random>
  5. namespace pabloader {
  6. Bonus::Bonus(Debuggers* game)
  7. : Entity(game, &game->bonusesSprite)
  8. {
  9. tileDim = { 1, 1 };
  10. #ifdef _DEBUG
  11. DEBUG_COLOR = olc::YELLOW;
  12. #endif
  13. }
  14. BonusType Bonus::GetType()
  15. {
  16. return static_cast<BonusType>(tile.x * 4 + tile.y);
  17. }
  18. void Bonus::ResetPosition()
  19. {
  20. Entity::ResetPosition();
  21. rotation = 0;
  22. rotationSpeed = 0;
  23. }
  24. }