Advertisement
CaptainLepidus

wall generation

Aug 4th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. int radius = getWidth()/2;
  2. int precis = 16;
  3. for(int dir=0;dir<360;dir+=360/precis) {
  4.     int i=(int) Math.floor(x+Math.cos(Math.toRadians(dir))*radius);
  5.     int j=(int) Math.floor(z+Math.sin(Math.toRadians(dir))*radius);
  6.     buildWall(world, i, j, y, theme, random);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement