Explorar o código

Moved MousePicker functionality to update method

Tankernn %!s(int64=8) %!d(string=hai) anos
pai
achega
2385b42641
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/main/java/eu/tankernn/game/Game.java

+ 5 - 0
src/main/java/eu/tankernn/game/Game.java

@@ -93,6 +93,11 @@ public class Game extends TankernnGame3D {
 		if (picker.getCurrentTerrainPoint() != null) {
 		if (picker.getCurrentTerrainPoint() != null) {
 			entities.get(1).setPosition(picker.getCurrentTerrainPoint());
 			entities.get(1).setPosition(picker.getCurrentTerrainPoint());
 		}
 		}
+		for (Entity3D e : entities)
+			if (e.equals(picker.getCurrentEntity()))
+				e.setScale(2);
+			else
+				e.setScale(1);
 	}
 	}
 	
 	
 	public static void main(String[] args) {
 	public static void main(String[] args) {