mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
5fe330bfbb
Instead of fixed, hard coded thresholds and scale factors dynamically changing values that scale with the onscreen movement are used to determine how graphical objects are drawn. #implement #story[816]
42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
package seng302;
|
|
|
|
import javafx.application.Application;
|
|
import javafx.fxml.FXMLLoader;
|
|
import javafx.scene.Parent;
|
|
import javafx.scene.Scene;
|
|
import javafx.stage.Stage;
|
|
import seng302.models.parsers.StreamParser;
|
|
import seng302.models.parsers.StreamReceiver;
|
|
|
|
public class App extends Application
|
|
{
|
|
@Override
|
|
public void start(Stage primaryStage) throws Exception {
|
|
Parent root = FXMLLoader.load(getClass().getResource("/views/MainView.fxml"));
|
|
primaryStage.setTitle("RaceVision");
|
|
primaryStage.setScene(new Scene(root));
|
|
|
|
primaryStage.show();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
StreamReceiver sr;
|
|
|
|
if (args.length > 1){
|
|
sr = new StreamReceiver("localhost", 8085, "TestThread1");
|
|
}
|
|
else{
|
|
// sr = new StreamReceiver("csse-s302staff.canterbury.ac.nz", 4941,"TestThread1");
|
|
sr = new StreamReceiver("livedata.americascup.com", 4941, "TestThread1");
|
|
}
|
|
|
|
sr.start();
|
|
StreamParser streamParser = new StreamParser("TestThread2");
|
|
streamParser.start();
|
|
|
|
launch(args);
|
|
}
|
|
}
|
|
|
|
|