Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  rotate breakout  (Read 1799 times)
0 Members and 1 Guest are viewing this topic.
Offline OttoMeier

Senior Member


Medals: 4
Projects: 1



« Posted 2010-10-12 21:08:23 »

Game
The game is basically a simple breakout clone. Instead of a racket you can rotate all blocks

Background
The game is mainly a testcase for my engine. After i spend severeal time(in fact years) programming a half finished game and than restart with a 3D engine i finally want to finish at least a simple game. The game use particleeffects, a scenegraph, collision detection with octree and obj import models.



runnable jar:
windows 32
windows 64
source code:
source code
Offline Mads

JGO Ninja


Medals: 24
Projects: 3


One for all!


« Reply #1 - Posted 2010-10-13 20:03:18 »

I'm on a Linux so I could not try  Sad
JPNL for all systems? Java is afterall easily ported  Cheesy Where is your stop-block?

Offline Momoko_Fan

Junior Member


Medals: 2



« Reply #2 - Posted 2010-10-14 00:43:04 »

I get an error:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
Exception in thread "Thread-2" javax.media.opengl.GLException: java.lang.ArrayIndexOutOfBoundsException: 2
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
        at com.sun.opengl.util.Animator.display(Animator.java:144)
        at com.sun.opengl.util.Animator$MainLoop.run(Animator.java:181)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
        at engine.polygonMesh.obj.ObjParser.loadObjFromFile(ObjParser.java:139)
        at engine.polygonMesh.obj.ObjParser.<init>(ObjParser.java:68)
        at engine.polygonMesh.obj.ObjFactory.createObjParser(ObjFactory.java:40)
        at engine.polygonMesh.obj.ObjLoader.loadObjParser(ObjLoader.java:32)
        at engine.polygonMesh.MeshFactory.createPolygonMeshs(MeshFactory.java:59)
        at engine.sceneGraph.NodeFactory.createPolygonMeshLeaf(NodeFactory.java:196)
        at engine.sceneGraph.NodeFactory.createPolygonMeshLeafColred(NodeFactory.java:172)
        at test.breakout.Breakout.construct(Breakout.java:180)
        at test.breakout.Breakout.access$100(Breakout.java:21)
        at test.breakout.Breakout$1.run(Breakout.java:126)
        at engine.universe.Universe.render(Universe.java:199)
        at engine.utility.engineusage.EngineForm.display(EngineForm.java:124)
        at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
        at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:435)
        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
        at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

And then its just a black screen with title bar saying 1000 fps  Huh

Also I had to use the command-line version of java instead of double clicking, cause I got an error message saying "Could not find the main class. Program will now exit".
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline OttoMeier

Senior Member


Medals: 4
Projects: 1



« Reply #3 - Posted 2010-11-24 02:20:42 »

Quote
I get an error:
The error is fixed.

Quote
Also I had to use the command-line version of java instead of double clicking, cause I got an error message saying "Could not find the main class. Program will now exit".
Does other runnable jars run on your pc?

Quote
I'm on a Linux so I could not try  Sad
JPNL for all systems? Java is afterall easily ported  Cheesy Where is your stop-block?
I dont know where to download the Linux binarys for the old jog (i guess its 1.1). And i cant Test on Linux.
Offline SimonH
« Reply #4 - Posted 2010-11-24 02:51:47 »

Applet please!

People make games and games make people
Offline gouessej

« In padded room »



TUER


« Reply #5 - Posted 2010-11-24 14:37:58 »

I dont know where to download the Linux binarys for the old jog (i guess its 1.1). And i cant Test on Linux.
Use my JNLP file as an example, I use JOGL 1.1.1a.

Pages: [1]
  ignore  |  Print  
 
 

 
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!