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.

13 lines
153 B

​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef SDLMAP_H
  2. #define SDLMAP_H SDLMAP_H
  3. #define TILESIZE 256
  4. inline int mod(int x, int div){
  5. x %= div;
  6. if(x < 0)
  7. x += div;
  8. return x;
  9. }
  10. #endif