You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use gradle as a build system
- Use the standard directory layout
- Change the package name to com.devng.jetris
- Adjust the documentation
- Include the web page files in the repo
- Small code adjustments
JETRIS is written in the JAVA programming language, this means that it can be run on any Operating System which has JAVA Runtime Environment (JRE).
10
20
11
-
1. System requirements
21
+
You need JRE 1.6.0 or above. You can download JRE for free at www.java.com
22
+
23
+
2. How to Build JETRIS
12
24
----------------------
25
+
If you want to build JETRIS on your local machine you need to install the Java Development Kit (JDK). You need JDK 1.6.0 or above.
26
+
27
+
JETRIS uses the Gradle build system, you can build the project locally just by typing the following in the console:
13
28
14
-
Jetris is written in JAVA programming language, this means that it can be run on any Operating System which has JAVA Runtime Environment (JRE).
29
+
```
30
+
./gradlew build
31
+
```
15
32
16
-
You need JRE 1.5.0 (also know as JRE 5) or above. If you have an older JRE version then you will get an error message and the program will exit.
33
+
On Windows use:
34
+
```
35
+
./gradlew.bat build
36
+
```
17
37
18
-
You can download JRE for free at www.java.com
38
+
The generated jar file can be found in the folder _build/libs_
19
39
20
-
2. Running JETRIS on your system
40
+
3. Running JETRIS on Your System
21
41
--------------------------------
22
42
23
43
To start JETRIS try one of the following options:
24
44
25
45
* Double click on the JAR File to start JETRIS. If this didn't work, then you didn't associate your JAR Files with your JRE.
26
46
27
-
* Double click on JETRIS.bat for Windows users or on JETRIS for Linux users.
47
+
* Double click on JETRIS.bat for Windows users or on JETRIS for Linux/OS X users.
28
48
29
49
* Open the console go to your JETRIS folder and type:
30
-
50
+
```
31
51
java -jar JETRIS.jar
52
+
```
32
53
33
-
### For example:
34
-
You have a Windows Operating System, your JETRIS folder is C:\JETRIS then:
35
-
36
-
Open Start Menu -> Run type "cmd" in the console type "cd C:\JETRIS" hit Enter then type "java -jar JETRIS.jar" hit Enter
37
-
38
-
3. How to play
54
+
3. How to Play
39
55
--------------
40
56
41
57
Use the following keys to play JETRIS:
@@ -62,7 +78,7 @@ Use the following keys to play JETRIS:
62
78
63
79
The current level is 20 (the highest level) and You clear 4 Lines at once, then You get 1600 + 80 x 20 = 2 x 1600 = 3200. So on level 20 you are making twice as much points as on level 0.
64
80
65
-
5. Saving your old HiScores after version update
81
+
5. Saving Your Old HiScores After Version Update
66
82
------------------------------------------------
67
83
68
84
Copy the old JETRIS.dat File to your new version of Jetris folder.
0 commit comments