Archived
0

style(all)

This commit is contained in:
2013-10-31 01:00:12 +04:00
parent d4dd335772
commit 077cd15235
3 changed files with 104 additions and 104 deletions

View File

@@ -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];
}