Advertisement
Guest User

Untitled

a guest
May 25th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. // In Gamestart:
  2. // Menu
  3.     m_MenuPtr = new Menu();
  4.  
  5.  
  6. // In GameTick
  7. //Menu
  8.     m_MenuPtr->Tick();
  9.  
  10. if (m_MenuPtr->IsButtonPressed() == false)
  11.     {
  12.         al de code: camera, coins,...
  13.     }
  14.  
  15.  
  16. // In gamepaint
  17.  
  18. if (m_MenuPtr->IsButtonPressed() == false)
  19.     {
  20.         alles da dan gepaint moe worden: camera, character, coins,...
  21.     }
  22. else if (m_MenuPtr->IsButtonPressed()==true)
  23.     {
  24.         m_MenuPtr->Paint();
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement