Anonymous avatar Anonymous committed f5e2080

Add README.

Comments (0)

Files changed (4)

+#	Yet Another 3D Java Game
+
+## Contributors
+Meitian Huang   u4700480
+
+Zunyi Liu       u4499582
+
+Yiwei Xu        u4834608
+
+
+## What Does It Do
+
+> A ball, rolling within a maze needs to get to their destination at the other
+end, while avoiding holes. When the ball falls into a hole it is returned to
+the beginning of the maze. The player cannot directly control the ball.
+Instead, the player must alter the angle of the maze floor, tilting it using
+the up, down, left and right arrow keys. The ball obeys the laws of physics
+and will roll due to gravitational pull and accelerate until it hits the wall.
+The ball will stop rolling when it hits the wall.
+
+## Rules
+1. You may see more than one cyliner. The largest one is the end. 
+2. You may see more than one ball. Your goal is to make the smallest ball fall
+ into the end.
+3. You must win in (level * 20) seconds.
+4. The score is initially 10.
+5. If the score is less than 0 or the time is up, the game
+is stopped.
+6. You can restart the stopped game, but your socre will
+be halved.
+6. If you fall into a hole, the score is reduced by 10.
+7. If you win, the remaining time (in seconds) will add to
+your score.
+8. 'r' to restart game, 'c' to change the map, and 'q' to
+quit the game.
+
+
+## How to Run
+The main class is under src/Game/Starter.java.
+*The rest is left as an exercise for the reader.*
+
+
+## Requirements
+In order to run this program, you need to have at least:
+
+* OpenGL 1.0
+* Java 6
+* Imagination!
+
+
+## License
+This program is under the BSD license. 
+
+This program uses a game engine called jMonkeyEngine <http://jmonkeyengine.org/>
+, which is completely
+open-source under the BSD license.
+
+For more information, see LICENSE.

src/Game/Labyrinth.java

         guiFont = assetManager.loadFont("Interface/Fonts/Default.fnt");
         bitmapText = new BitmapText(guiFont, false);
         bitmapText.setSize(guiFont.getCharSet().getRenderedSize());
-        bitmapText.setSize(24);
+        bitmapText.setSize(16);
         guiNode.attachChild(bitmapText);
         updateText();
     }
     @Override
     public void simpleUpdate(float tpf) {
         cam.setLocation(new Vector3f(0, 2.5f, 0.3f));
+//        cam.setLocation(new Vector3f(0, 2.8f, 0f));
         cam.lookAt(board.getPhysicsLocation(), Vector3f.UNIT_Y);
 
         if (!isLost) {

src/Game/README

-#	Yet Another 3D Java Game
-![image](java.gif)
-
-## Contributors
-Meitian Huang   u4700480
-
-Zunyi Liu       u4499582
-
-Yiwei Xu        u4834608
-
-
-## What Does It Do
-
-> A ball, rolling within a maze needs to get to their destination at the other
-end, while avoiding holes. When the ball falls into a hole it is returned to
-the beginning of the maze. The player cannot directly control the ball.
-Instead, the player must alter the angle of the maze floor, tilting it using
-the up, down, left and right arrow keys. The ball obeys the laws of physics
-and will roll due to gravitational pull and accelerate until it hits the wall.
-The ball will stop rolling when it hits the wall.
-
-## Rules
-1. You may see more than one cyliner. The largest one is the end. 
-2. You may see more than one ball. Your goal is to make the smallest ball fall into the end.
-3. You must win in (level * 20) seconds.
-4. The score is initially 10.
-5. If the score is less than 0 or the time is up, the game
-is stopped.
-6. You can restart the stopped game, but your socre will
-be halved.
-6. If you fall into a hole, the score is reduced by 10.
-7. If you win, the remaining time (in seconds) will add to
-your score.
-
-
-## How to Run
-The main class is under src/Game/Starter.java.
-*The rest is left as an exercise for the reader.*
-
-
-## Requirements
-In order to run this program, you need to have at least:
-
-* OpenGL 1.0
-* Java 6
-* Imagination!
-
-
-## License
-This program is under the BSD license. 
-
-This program uses a game engine called jMonkeyEngine <http://jmonkeyengine.org/>
-, which is completely
-open-source under the BSD license.
-
-For more information, see LICENSE.

src/Game/README.html

-<!doctype html>
-<html>
-<head>
-<meta charset="utf-8">
-<style>
-h1,
-h2,
-h3,
-h4,
-h5,
-h6,
-p,
-blockquote {
-    margin: 0;
-    padding: 0;
-}
-body {
-    font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
-    font-size: 13px;
-    line-height: 18px;
-    color: #737373;
-    margin: 10px 10px 10px 20px;
-}
-a {
-    color: #0069d6;
-}
-a:hover {
-    color: #0050a3;
-    text-decoration: none;
-}
-a img {
-    border: none;
-}
-p {
-    margin-bottom: 9px;
-}
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
-    color: #404040;
-    line-height: 36px;
-}
-h1 {
-    margin-bottom: 18px;
-    font-size: 30px;
-}
-h2 {
-    font-size: 24px;
-}
-h3 {
-    font-size: 18px;
-}
-h4 {
-    font-size: 16px;
-}
-h5 {
-    font-size: 14px;
-}
-h6 {
-    font-size: 13px;
-}
-hr {
-    margin: 0 0 19px;
-    border: 0;
-    border-bottom: 1px solid #aaa;
-}
-blockquote {
-    padding: 13px 13px 21px 15px;
-    margin-bottom: 18px;
-    font-family:georgia,serif;
-    font-style: italic;
-}
-blockquote:before {
-    content:"\201C";
-    font-size:40px;
-    margin-left:-10px;
-    font-family:georgia,serif;
-    color:#eee;
-}
-blockquote p {
-    font-size: 14px;
-    font-weight: 300;
-    line-height: 18px;
-    margin-bottom: 0;
-    font-style: italic;
-}
-code, pre {
-    padding: 0 3px 2px;
-    font-family: Monaco, Andale Mono, Courier New, monospace;
-    -webkit-border-radius: 3px;
-    -moz-border-radius: 3px;
-    border-radius: 3px;
-}
-code {
-    background-color: #fee9cc;
-    color: rgba(0, 0, 0, 0.75);
-    padding: 1px 3px;
-    font-size: 12px;
-}
-pre {
-    display: block;
-    padding: 14px;
-    margin: 0 0 18px;
-    line-height: 16px;
-    font-size: 11px;
-    border: 1px dashed #ccc;
-    border: 1px dashed rgba(0, 0, 0, 0.15);
-    -webkit-border-radius: 3px;
-    -moz-border-radius: 3px;
-    border-radius: 3px;
-    white-space: pre;
-    white-space: pre-wrap;
-    word-wrap: break-word;
-}
-pre code {
-    background-color: #fdfdfd;
-    color:#737373;
-    font-size: 11px;
-}
-@media screen and (min-width: 768px) {
-    body {
-        width: 748px;
-        margin:10px auto;
-    }
-}
-</style>
-<title>README.html</title>
-</head>
-<body>
-<h1>Yet Another 3D Java Game</h1>
-
-<p><img src="java.gif" alt="image" /></p>
-
-<h2>Contributors</h2>
-
-<p>Meitian Huang   u4700480</p>
-
-<p>Zunyi Liu       u4499582</p>
-
-<p>Yiwei Xu        u4834608</p>
-
-<h2>What Does It Do</h2>
-
-<blockquote><p>A ball, rolling within a maze needs to get to their destination at the other
-end, while avoiding holes. When the ball falls into a hole it is returned to
-the beginning of the maze. The player cannot directly control the ball.
-Instead, the player must alter the angle of the maze floor, tilting it using
-the up, down, left and right arrow keys. The ball obeys the laws of physics
-and will roll due to gravitational pull and accelerate until it hits the wall.
-The ball will stop rolling when it hits the wall.</p></blockquote>
-
-<h2>Rules</h2>
-
-<ol>
-<li>You may see more than one cyliner. The largest one is the end.</li>
-<li>You may see more than one ball. Your goal is to make the smallest ball fall into the end.</li>
-<li>You must win in (level * 20) seconds.</li>
-<li>The score is initially 10.</li>
-<li>If the score is less than 0 or the time is up, the game
-is stopped.</li>
-<li>You can restart the stopped game, but your socre will
-be halved.</li>
-<li>If you fall into a hole, the score is reduced by 10.</li>
-<li>If you win, the remaining time (in seconds) will add to
-your score.</li>
-</ol>
-
-
-<h2>How to Run</h2>
-
-<p>The main class is under src/Game/Starter.java.
-<em>The rest is left as an exercise for the reader.</em></p>
-
-<h2>Requirements</h2>
-
-<p>In order to run this program, you need to have at least:</p>
-
-<ul>
-<li>OpenGL 1.0</li>
-<li>Java 6</li>
-<li>Imagination!</li>
-</ul>
-
-
-<h2>License</h2>
-
-<p>This program is under the BSD license.</p>
-
-<p>This program uses a game engine called jMonkeyEngine <a href="http://jmonkeyengine.org/">http://jmonkeyengine.org/</a>
-, which is completely
-open-source under the BSD license.</p>
-
-<p>For more information, see LICENSE.</p>
-</body>
-</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.