Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #include "DarkGDK.h"
  2.  
  3. void buttons()
  4. {
  5.  int mx  =0;
  6.  int my  =0;
  7.  bool exit_menu=false;
  8. }
  9.  
  10. void DarkGDK ( void )
  11. {
  12.  dbSyncOn   ( );
  13.  dbSyncRate ( 60 );
  14.  
  15.  dbLoadImage("button.jpg",1);
  16.  dbSprite(1,39,130,1);
  17.  dbSprite(2,39,330,1);
  18.  
  19.  while ( LoopGDK ( ) )
  20.  {
  21.   buttons();
  22.   int click = dbMouseClick();
  23.   int mx = dbMouseX();
  24.   int my = dbMouseY();
  25.  
  26.  if (mx>39 && mx<39+200 && my >130 && my <130+40)
  27.  {
  28.   if (click==1)
  29.   {
  30.     exit_menu=true;
  31.   }
  32.  
  33.   if (exit_menu==true)
  34.   {
  35.    return;
  36.   }
  37.   {
  38.  
  39.   dbSync ( );
  40.   }
  41.  }
  42.  
  43.  return;
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement