style(all)
This commit is contained in:
@@ -105,6 +105,7 @@ public class Texture {
|
||||
|
||||
/**
|
||||
* Преобразует обычные пиксельные координаты в относительные
|
||||
*
|
||||
* @param x
|
||||
* @return
|
||||
*/
|
||||
@@ -114,6 +115,7 @@ public class Texture {
|
||||
|
||||
/**
|
||||
* Преобразует обычные пиксельные координаты в относительные
|
||||
*
|
||||
* @param y
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -58,8 +58,7 @@ public class Prometheus implements TexturedObject {
|
||||
int _x = get_center_x();
|
||||
if (_x > Mouse.getX()) {
|
||||
sprite_inverse = true;
|
||||
}
|
||||
else if(_x < Mouse.getX()){
|
||||
} else if (_x < Mouse.getX()) {
|
||||
sprite_inverse = false;
|
||||
}
|
||||
|
||||
@@ -67,8 +66,7 @@ public class Prometheus implements TexturedObject {
|
||||
if ((!run_left && !sprite_inverse) || (run_left && sprite_inverse)) {
|
||||
body.nextFrame();
|
||||
gun.nextFrame();
|
||||
}
|
||||
else if((run_left && !sprite_inverse) || (!run_left && sprite_inverse)){
|
||||
} else if ((run_left && !sprite_inverse) || (!run_left && sprite_inverse)) {
|
||||
body.prevFrame();
|
||||
gun.prevFrame();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user