@@ -0,0 +1,1014 @@
+package me.shzylo.mansionazazelvisual.entity.mob;%0A%0Aimport me.shzylo.mansionazazelvisual.entity.Entity;%0Aimport me.shzylo.mansionazazelvisual.gfx.Sprite;%0A%0Apublic abstract class Mob extends Entity %7B%0A%0A    protected Sprite sprite;%0A%09protected int dir = 2;%0A%09protected boolean moving = false;%0A%09protected boolean walking = false;%0A%0A%09public void move(int xa, int ya) %7B%0A%09%09if (xa != 0 && ya != 0) %7B%0A%09%09%09move(xa, 0);%0A%09%09%09move(0, ya);%0A%09%09%09return;%0A%09%09%7D%0A%09%09%0A%09%09if (xa %3E 0) dir = 1;%0A%09%09if (xa %3C 0) dir = 3;%0A%09%09if (ya %3E 0) dir = 2;%0A%09%09if (ya %3C 0) dir = 0;%0A%0A%09%09/*if(!collision(xa, 0)) %7B%0A%09%09%09x += xa;%0A%09%09%7D%0A%09%09%0A%09%09if(!collision(0, ya)) %7B%0A%09%09%09y += ya;%0A%09%09%7D*/%0A%09%09%0A%09%09if (!collision(xa, ya)) %7B%0A%09%09%09x += xa;%0A%09%09%09y += ya;%0A%09%09%7D%0A%09%7D%0A%0A%09public void update() %7B%0A%0A%09%7D%0A%0A%09private boolean collision(int xa, int ya) %7B%0A%09%09boolean solid = false;%0A%09%09for (int c = 0; c %3C 4; c++) %7B%0A%09%09%09int xt = ((x + xa) + c %25 2 * 12 - 6) %3E%3E 4;%0A%09%09%09int yt = ((y + ya) + c / 2 * 10 + 4) %3E%3E 4;%0A%09%09%09if (level.getTile(xt, yt).isSolid()) solid = true;%0A%09%09%7D%0A%09%09return solid;%0A%09%7D%0A%0A%09public void render() %7B%0A%0A%09%7D%0A%7D%0A

Create Mob.java