Advertisement
YauhenMardan

WolfGame Ball

Apr 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. hBall = CreateBallRgn(hDC, LeftUpH.first, LeftUpH.second-10, 0, 10, 0, 0, 0);
  2. OffsetRgn(hBall, iCurrentOffsetX, iCurrentOffsetY);
  3. FillRgn(hDC, hBall, hBrushGreen);
  4. if (iCurrentOffsetX + 10 >= LeftUpL.first) {
  5. if (currentWolf == 0)
  6. score++;
  7. else
  8. health--;
  9. iCurrentOffsetX = 0;
  10. iCurrentOffsetY = 0;
  11. }
  12. fillString(stat_str, score, health);
  13. TextOut(hDC, 0, 0, stat_str.c_str(), strlen(stat_str.c_str()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement