Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Breakout 2017
- ## Prerequisites
- 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/)).
- For the files just clone this github repo.
- ## Configure
- You need to configure 2 files to work with your system and create the database:
- ### Creating the database
- Open your mysql editor tool and execute the [Breakout.sql](db/Breakout.sql) file.
- ### MySQLConnection.java
- You need to change 3 variables: The database URL, username and password.
- ```java
- private static final String URL = "jdbc:mysql://localhost:8889/Breakout";
- private static final String UID = "<Username>";
- private static final String PWD = "<Password>";
- ```
- ### config.js
- You need to change 2 variables: The game socket and the rungame socket
- ```javascript
- var fieldsocket = new WebSocket("ws://" + location.host + "/<Your file name>/game");
- var rungame = new WebSocket("ws://" + location.host + "/<Your file name>/runGame");
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement