Mattie

Untitled

Apr 17th, 2011
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. public:
  2.     void beweeg()
  3.     {
  4.         if (richting == 0)
  5.         {
  6.             x++;
  7.         }
  8.         if (richting == 1)
  9.         {
  10.             x--;
  11.         }
  12.         if (x > 400)
  13.         {
  14.             richting = 1;
  15.         }
  16.         if (x < 10)
  17.         {
  18.             richting = 0;
  19.         }
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment