This is a Java application for simulating particles on a 1280x720 canvas. Features include adding an explorer/sprite that navigates the canvas and renders the periphery of the explorer in terms of the other particles moving nearby, adding particles individually or in batches, real-time interaction through a GUI, and efficient parallel processing. STDISCM Group 4.
How to Use: Run an ExplorerClient instance by jar file (if local) or run .java (if connecting to another machine)
Input your ipv4 address being used by the Main.jar aka the Main server, and then run the ExplorerClient.java file with this specific change
By default, it's set to localhost for both the code and the jar file, so you just need to change this specific line and then you're good to go
This mode is used for activating the sprite and navigating to wherever desired in the canvas. The sprite is centered within the screen and uses a grid perspective in terms of rendering nearby particles in a zoomed layout.
The movement of the Sprite is simply done by using the arrow keys in your keyboard.
Ensure you have Java installed on your machine. This application requires Java 8 or higher. If Java is not installed, you can download it from the Oracle Website.
- Download the
Main.jar
file from the repository. - Open a terminal or command prompt.
- Navigate to the directory where the
Main.jar
file is located. - Execute the following command: java -jar Main.jar
- When connecting locally, just do everything from 1-4 but using the ExplorerClient.jar
- When connecting with different machines, change the line within the ExplorerClient.java file and replace 'localhost' parameter to your actual Main server's ipv4 address