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());
|
// Subject3D textSubject = new Annotation3D(new SeagullMesh());
|
||||||
// textSubject.setY(-10);
|
// textSubject.setY(-10);
|
||||||
// viewSubjects.add(textSubject);
|
// viewSubjects.add(textSubject);
|
||||||
|
addToFlock();
|
||||||
|
addToFlock();
|
||||||
|
addToFlock();
|
||||||
|
addToFlock();
|
||||||
|
addToFlock();
|
||||||
|
addToFlock();
|
||||||
|
addToFlock();
|
||||||
addToFlock();
|
addToFlock();
|
||||||
seagullGoTo.start();
|
seagullGoTo.start();
|
||||||
|
|
||||||
@@ -1323,8 +1330,9 @@ public class RaceViewController extends Controller {
|
|||||||
public void addToFlock(){
|
public void addToFlock(){
|
||||||
Annotation3D newSeagull = new Annotation3D(new SeagullMesh());
|
Annotation3D newSeagull = new Annotation3D(new SeagullMesh());
|
||||||
newSeagull.setY(-15);
|
newSeagull.setY(-15);
|
||||||
newSeagull.setX(67);
|
Random rand = new Random();
|
||||||
newSeagull.setZ(43);
|
newSeagull.setX(rand.nextInt((int)gpsConverter.getLongitudeFactor()));
|
||||||
|
newSeagull.setZ(rand.nextInt((int)gpsConverter.getLatitudeFactor()));
|
||||||
newSeagull.setXRot(0);
|
newSeagull.setXRot(0);
|
||||||
seagulls.add(newSeagull);
|
seagulls.add(newSeagull);
|
||||||
seagullsGoToX.put(newSeagull, new ArrayList<>());
|
seagullsGoToX.put(newSeagull, new ArrayList<>());
|
||||||
|
|||||||
Reference in New Issue
Block a user