Subversion Repositories distributed

Rev

Rev 32 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32 Rev 43
Line 4... Line 4...
4
 
4
 
5
public class BouncingBall extends SimpleGame {
5
public class BouncingBall extends SimpleGame {
6
 
6
 
7
        @Override
7
        @Override
8
        protected void simpleInitGame() {
8
        protected void simpleInitGame() {
9
                // Scene einstellen
-
 
10
                // Kamaraentfernung erhöhen
-
 
11
                cam.setLocation(new Vector3f(0, 50, 150));
9
                cam.setLocation(new Vector3f(0, 50, 150));
12
 
-
 
13
                // Elemente an rootNode anhängen
-
 
14
                new Raumplan(rootNode, 25, 0, 0, 0, LockDirectoryEnum.LOCK_NOTHING).los(rootNode, 25, 0, 0, 0, LockDirectoryEnum.LOCK_NOTHING);
-
 
15
               
-
 
16
//              rootNode.attachChild(new Raumplan(new Node(), 25, 0, 0, 0, LockDirectoryEnum.LOCK_NOTHING).getRoomNode());
10
                new Raumplan(rootNode, 50, 25, 0, 0, 0, LockDirectoryEnum.LOCK_NOTHING, 1);
17
        }
11
        }
18
 
12
 
19
        /**
13
        /**
20
         * @param args
14
         * @param args
21
         */
15
         */
22
        public static void main(String[] args) {
16
        public static void main(String[] args) {
23
                BouncingBall ball = new BouncingBall();
17
                BouncingBall ball = new BouncingBall();
24
                ball.setConfigShowMode(ConfigShowMode.AlwaysShow);
18
                ball.setConfigShowMode(ConfigShowMode.ShowIfNoConfig);
25
                ball.start();
19
                ball.start();
26
        }
20
        }
27
}
21
}