Advertisement
Guest User

Untitled

a guest
Dec 10th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. # Breakout 2017
  2. ## Prerequisites
  3. You need [Netbeans](https://netbeans.org/downloads/index.html) to open the project and an sort of mysql editor (We used [MySQL Workbench](https://dev.mysql.com/downloads/workbench/)).
  4. For the files just clone this github repo.
  5.  
  6. ## Configure
  7. You need to configure 2 files to work with your system and create the database:
  8.  
  9. ### Creating the database
  10. Open your mysql editor tool and execute the [Breakout.sql](db/Breakout.sql) file.
  11. ### MySQLConnection.java
  12. You need to change 3 variables: The database URL, username and password.
  13. ```java
  14. private static final String URL = "jdbc:mysql://localhost:8889/Breakout";
  15. private static final String UID = "<Username>";
  16. private static final String PWD = "<Password>";
  17. ```
  18. ### config.js
  19. You need to change 2 variables: The game socket and the rungame socket
  20. ```javascript
  21. var fieldsocket = new WebSocket("ws://" + location.host + "/<Your file name>/game");
  22. var rungame = new WebSocket("ws://" + location.host + "/<Your file name>/runGame");
  23. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement