Added 8 seagulls to the game
This commit is contained in:
@@ -522,6 +522,13 @@ public class RaceViewController extends Controller {
|
||||
// Subject3D textSubject = new Annotation3D(new SeagullMesh());
|
||||
// textSubject.setY(-10);
|
||||
// viewSubjects.add(textSubject);
|
||||
addToFlock();
|
||||
addToFlock();
|
||||
addToFlock();
|
||||
addToFlock();
|
||||
addToFlock();
|
||||
addToFlock();
|
||||
addToFlock();
|
||||
addToFlock();
|
||||
seagullGoTo.start();
|
||||
|
||||
@@ -1323,8 +1330,9 @@ public class RaceViewController extends Controller {
|
||||
public void addToFlock(){
|
||||
Annotation3D newSeagull = new Annotation3D(new SeagullMesh());
|
||||
newSeagull.setY(-15);
|
||||
newSeagull.setX(67);
|
||||
newSeagull.setZ(43);
|
||||
Random rand = new Random();
|
||||
newSeagull.setX(rand.nextInt((int)gpsConverter.getLongitudeFactor()));
|
||||
newSeagull.setZ(rand.nextInt((int)gpsConverter.getLatitudeFactor()));
|
||||
newSeagull.setXRot(0);
|
||||
seagulls.add(newSeagull);
|
||||
seagullsGoToX.put(newSeagull, new ArrayList<>());
|
||||
|
||||
Reference in New Issue
Block a user