short loo = (ls + lo);
\r
if(d2==0) qq = 0;\r
- else qq = ((ls+1)*SPEED);\r
+ else qq = ((ls)*SPEED);\r
switch (d1)\r
{\r
case 0:\r
y=y-TILEWH;\r
break;\r
}
- //TODO: make flexible animation thingy\r
- if(2>ls && ls>=1) { modexCopyPageRegion(dest->page, src->page, x-2, y-4, x-2, y-4, 28, 40);\r
- modexDrawSpriteRegion(dest->page, x, y, 48, dire, 24, 32, bmp); }else\r
- if(3>ls && ls>=2) { modexCopyPageRegion(dest->page, src->page, x-2, y-4, x-2, y-4, 28, 40);\r
- modexDrawSpriteRegion(dest->page, x, y, 24, dire, 24, 32, bmp); }else\r
- if(4>ls && ls>=3) { modexCopyPageRegion(dest->page, src->page, x-2, y-4, x-2, y-4, 28, 40);\r
- modexDrawSpriteRegion(dest->page, x, y, 0, dire, 24, 32, bmp); }else\r
- if(5>ls && ls>=4) { modexCopyPageRegion(dest->page, src->page, x-2, y-4, x-2, y-4, 28, 40);\r
- modexDrawSpriteRegion(dest->page, x, y, 24, dire, 24, 32, bmp); }
+ //TODO: make flexible animation thingy
+ modexCopyPageRegion(dest->page, src->page, x-4, y-4, x-4, y-4, 28, 40);\r
+ if(2>ls && ls>=1) { modexDrawSpriteRegion(dest->page, x, y, 48, dire, 24, 32, bmp); }else\r
+ if(3>ls && ls>=2) { modexDrawSpriteRegion(dest->page, x, y, 24, dire, 24, 32, bmp); }else\r
+ if(4>ls && ls>=3) { modexDrawSpriteRegion(dest->page, x, y, 0, dire, 24, 32, bmp); }else\r
+ if(5>ls && ls>=4) { modexDrawSpriteRegion(dest->page, x, y, 24, dire, 24, 32, bmp); }
modexWaitBorder();\r
}\r