style(all)
This commit is contained in:
@@ -8,11 +8,11 @@ public class Sprite2 extends Texture {
|
||||
private int count_frames;
|
||||
private int[][] frames_coords;
|
||||
|
||||
private void prepare_sprite(int width, int height){
|
||||
private void prepare_sprite(int width, int height) {
|
||||
width_frame = width;
|
||||
height_frame = height;
|
||||
|
||||
count_frames = (int)(Math.floor(this.getWidth() / width_frame) * Math.floor(this.getHeight() / height_frame));
|
||||
count_frames = (int) (Math.floor(this.getWidth() / width_frame) * Math.floor(this.getHeight() / height_frame));
|
||||
frames_coords = new int[4][count_frames];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user