comparison game/Piece.java @ 85:e9fab3c96043

Make piece rotation animation a bit faster.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 03 Mar 2011 15:53:46 +0200
parents cde170f2f980
children cc96bc955db6
comparison
equal deleted inserted replaced
84:bef7b101055c 85:e9fab3c96043
13 public class Piece 13 public class Piece
14 { 14 {
15 public enum RotateDir { LEFT, RIGHT } 15 public enum RotateDir { LEFT, RIGHT }
16 16
17 static final int numConnections = 8; 17 static final int numConnections = 8;
18 static final float maxTime = 50.0f; 18 static final float maxTime = 35.0f;
19 19
20 int currRotation; 20 int currRotation;
21 int[] connections; 21 int[] connections;
22 boolean[] states; 22 boolean[] states;
23 PieceType type, prevType; 23 PieceType type, prevType;