-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.TXT
33 lines (32 loc) · 2.41 KB
/
README.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PROJECT TITLE: WorldCup
PURPOSE OF PROJECT: To change and control the state of 10 or more obejcts randomly
and save as well as load their variable data to/from a CSV file
VERSION or DATE: 10/12/2016
HOW TO START THIS PROJECT: Run the static main() method from the WorldCup class
AUTHORS: Anuv Gupta, Nishan D'Souza, William Chern
USER INSTRUCTIONS: WorldCup Details/Controls
- The window should open with a ball on a field with one goal, but no players
- The game is paused and blank by default
- To RESTORE the game to its "initial" or previous state, click the 'Read File' button
- It will read the game data from `./savedData.csv`
- To PLAY the game (commence the ball's and players' motion) press the 'Play' button
- To PAUSE the game (halt the ball's and players' motion) press the 'Pause' button
- To ADD players to the game, click the 'Add Player' button
- To CLEAR the players from the screen, click the 'Clear Field' button
- To SPEED up or slow down the animations, move the knob of the 'Speed' slider
- To SAVE the game's current state to `./savedData.csv` click on the 'Save File' button
- To LOAD the game's last saved state from `./savedData.csv`, click on the 'Read File' button
- "Playing/paused" game state is not saved to allow for efficiently reading from the file
- Player jersey/skin colors are not saved, and are randomly generated whenever player is added or loaded
- Saved data includes:
- All players' positions, and directions/speeds (vectors)
- Ball position and direction/speed (vector)
- Current game overall score (total goals scored during game run)
- Current game animation speed (set by slider)
- NOTE: Due to the inadequacies of javax.swing, the timers that control animations slow drastically
- NOTE: It is recommended that the JVM is reset after terminating the program due to, once again,
the inadequacies of javax.swing, whose timers may run indefinitely for no reason
Screenshots of trial run:
- JFrame Window: `./window.png`
- BlueJ Terminal: `./terminal.png`
- savedData.csv: `./data.png`