Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (736)
Games in Android Showcase (223)
games submitted by our members
Games in WIP (813)
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  
  Attack of the Green Aliens 2  (Read 3621 times)
0 Members and 1 Guest are viewing this topic.
Offline MinusKelvin

Senior Devvie


Medals: 17
Projects: 1
Exp: 2 years


Quantum WAT


« Posted 2015-09-10 13:30:58 »

Hi JGO!

I've been working on this for a bit and it's in a playable state now.



The gameplay is simple, don't get hit and kill the enemies. Not much has been implemented yet and there are only three waves, but you can add more by adding files to leveldata/waves.
Controls are arrow keys to move, shift key to go slowly. Q, W, and E show debug stuff.

Requires OpenGL 3.3 and ARB Sample Shading.

Download

This is number 2 because I already made one before it ~1.5 years ago, but it wasn't very well designed. Might be a little generic but I'm not a super-creative guy.

Feedback is greatly appreciated!

You can click my images to look at a larger version most of the time.
Offline Nibby

Senior Newbie


Medals: 3



« Reply #1 - Posted 2015-09-11 05:13:43 »

By the looks I'd imagine it would get action-intensive. To some extent it reminded me of DemonStar 2. Would love to give it a try if it could actually start.

I am using MacBook Pro Retina, Mid 2014 model running Yosemite 10.10.5 with JDK1.8.0_u60.
The VM crashes while launching through the thing.sh script.

Tracing through the heap space crash log dump, it seems to be a problem with liblwjgl.dylib. Similar situations have occurred previously on earlier versions of LWJGL on JDK1.7, so it's not your game's fault. I'll just have to wait and see others' replies.

"Whatever you are, be a good one."

-Abraham Lincoln
Offline Amryu
« Reply #2 - Posted 2015-09-11 05:23:02 »

I tried to start it but it instantly crashes with this 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  
33  
34  
35  
36  
37  
38  
39  
40  
C:\Users\faust\Downloads\Attack of the Green Aliens 2>java -Djava.library.path=n
ative/ -jar Space-Shooter.jar
java.util.InputMismatchException
        at java.util.Scanner.throwFor(Unknown Source)
        at java.util.Scanner.next(Unknown Source)
        at java.util.Scanner.nextFloat(Unknown Source)
        at minusk.space.level.LevelController.parseWave(LevelController.java:123
)
        at minusk.space.level.LevelController.initialize(LevelController.java:45
)
        at minusk.space.Space.initialize(Space.java:42)
        at minusk.render.core.Game.gameloop(Game.java:27)
        at minusk.space.Space.main(Space.java:94)
java.util.InputMismatchException
        at java.util.Scanner.throwFor(Unknown Source)
        at java.util.Scanner.next(Unknown Source)
        at java.util.Scanner.nextFloat(Unknown Source)
        at minusk.space.level.LevelController.parseWave(LevelController.java:123
)
        at minusk.space.level.LevelController.initialize(LevelController.java:45
)
        at minusk.space.Space.initialize(Space.java:42)
        at minusk.render.core.Game.gameloop(Game.java:27)
        at minusk.space.Space.main(Space.java:94)
java.util.InputMismatchException
        at java.util.Scanner.throwFor(Unknown Source)
        at java.util.Scanner.next(Unknown Source)
        at java.util.Scanner.nextFloat(Unknown Source)
        at minusk.space.level.LevelController.parseWave(LevelController.java:123
)
        at minusk.space.level.LevelController.initialize(LevelController.java:45
)
        at minusk.space.Space.initialize(Space.java:42)
        at minusk.render.core.Game.gameloop(Game.java:27)
        at minusk.space.Space.main(Space.java:94)
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
        at minusk.space.level.LevelController.update(LevelController.java:72)
        at minusk.space.Space.update(Space.java:76)
        at minusk.render.core.Game.gameloop(Game.java:41)
        at minusk.space.Space.main(Space.java:94)

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline MinusKelvin

Senior Devvie


Medals: 17
Projects: 1
Exp: 2 years


Quantum WAT


« Reply #3 - Posted 2015-09-11 07:23:11 »

Nibby: I uploaded this kinda late last night, and I forgot to put in all the scripts. I updated the download to have a mac.sh script now.

Amryu: My best guess is that in your locale decimals are not separated by . and I didn't set a locale in the Scanner I was using. I now set it to use Locale.US, so it should work for you now.

You can click my images to look at a larger version most of the time.
Offline Amryu
« Reply #4 - Posted 2015-09-11 07:27:03 »

Yes that could be it. I'm living in germany and here you seperate with ",".

This should work then^^

EDIT: Works now. Runs smooth, but the difficulty from the one wave (that is shooting millions of lasers) is
waaay too high if you really want to kill all of them. Maybe you should add more waves and make use of the
money somehow next^^

Nice game though

Greetings

Offline MinusKelvin

Senior Devvie


Medals: 17
Projects: 1
Exp: 2 years


Quantum WAT


« Reply #5 - Posted 2015-09-11 08:12:06 »

The wave that shoots all of those lasers is completely unbalanced, but it's not really intended for you to kill all of the enemies. I'm not sure what exactly I'm going to add in the next update, but hopefully money will be useful by then. Also, you can go into the files in leveldata/waves and edit/add/remove them to change the waves that show up in the game.

You can click my images to look at a larger version most of the time.
Offline Nibby

Senior Newbie


Medals: 3



« Reply #6 - Posted 2015-09-11 08:14:46 »

Re-downloaded the game files again and tried running it (using mac.sh). A long window showed up, but the screen is completely black. I've also noticed that I am unable to exit the window normally by clicking the close button. Nothing is rendered on screen.

"Whatever you are, be a good one."

-Abraham Lincoln
Offline MinusKelvin

Senior Devvie


Medals: 17
Projects: 1
Exp: 2 years


Quantum WAT


« Reply #7 - Posted 2015-09-11 11:51:13 »

Try again now, but I don't own a Mac and so can't find the problem myself. If this doesn't fix it, I don't know what will.

You can click my images to look at a larger version most of the time.
Offline Nibby

Senior Newbie


Medals: 3



« Reply #8 - Posted 2015-09-11 12:45:21 »

Still no luck... I think it's a LWJGL native thing.

"Whatever you are, be a good one."

-Abraham Lincoln
Offline Amryu
« Reply #9 - Posted 2015-09-11 12:49:35 »

Did you try to add the console first and executing the command manually,
so you actually can see the error? I don't know how it works on Mac but
you can't see the error if the cmd (or whatever it is called in Mac) closes
instantly. Please post the error here if you can find it.

Greetings

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 119
Projects: 15


★★★★★


« Reply #10 - Posted 2015-09-11 19:17:23 »

Tested on mac, just getting a blank black window which is frozen, theres no output on the console. Maybe put in a few System out's to help determine how far it gets in before the freeze. Since there is a window unlikely to be a LWJGL natives issue.

EDIT: Adding the lwjgl 3 debug flag (-Dorg.lwjgl.util.Debug=true), I am able to see an exception in the console as follows:

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  
33  
./mac.sh
[LWJGL] Version 3.0.0b | Mac OS X | x86_64
[LWJGL] MemoryUtil MemoryAccessor: MemoryAccessorUnsafe
[LWJGL] Failed to locate address for GL function glProgramUniform1dEXT
[LWJGL] Failed to locate address for GL function glProgramUniform2dEXT
[LWJGL] Failed to locate address for GL function glProgramUniform3dEXT
[LWJGL] Failed to locate address for GL function glProgramUniform4dEXT
[LWJGL] Failed to locate address for GL function glProgramUniform1dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniform2dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniform3dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniform4dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix2dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix3dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix4dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix2x3dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix2x4dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix3x2dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix3x4dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix4x2dvEXT
[LWJGL] Failed to locate address for GL function glProgramUniformMatrix4x3dvEXT
[LWJGL] Failed to locate address for GL function glVertexArrayVertexAttribDivisorEXT
[LWJGL] Failed to locate address for GL function glTextureStorage1DEXT
[LWJGL] Failed to locate address for GL function glTextureStorage2DEXT
[LWJGL] Failed to locate address for GL function glTextureStorage3DEXT
[LWJGL] Failed to locate address for GL function glVertexArrayVertexAttribLOffsetEXT
Exception in thread "main" org.lwjgl.opengl.OpenGLException: Cannot use offsets when pixel unpack buffer object is disabled
   at org.lwjgl.opengl.GLChecks.ensureBufferObject(GLChecks.java:26)
   at org.lwjgl.opengl.GL12.glTexImage3D(GL12.java:210)
   at minusk.render.graphics.globjects.SpriteSheet.<init>(SpriteSheet.java:39)
   at minusk.space.entities.Entities.initialize(Entities.java:45)
   at minusk.space.Space.initialize(Space.java:41)
   at minusk.render.core.Game.gameloop(Game.java:27)
   at minusk.space.Space.main(Space.java:94)
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 119
Projects: 15


★★★★★


« Reply #11 - Posted 2015-09-11 19:38:37 »

The problem might be that you haven't  specified forward compatibility mode, if you wish to use an OpenGL 3.x or 4.x context on OS X you have to enable forward compatibility and the core profile context, its an OS X requirement. Details on how to do this with LWJGL3/GLFW are available here.
Offline MinusKelvin

Senior Devvie


Medals: 17
Projects: 1
Exp: 2 years


Quantum WAT


« Reply #12 - Posted 2015-09-12 01:35:46 »

Strange, I do specify core profile and forward compatibility. Here's the hints I'm creating the window with:
1  
2  
3  
4  
5  
6  
glfwDefaultWindowHints();
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_RESIZABLE, GL_FALSE);

You can click my images to look at a larger version most of the time.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
cybrmynd (124 views)
2017-08-02 12:28:51

cybrmynd (147 views)
2017-08-02 12:19:43

cybrmynd (142 views)
2017-08-02 12:18:09

Sralse (158 views)
2017-07-25 17:13:48

Archive (629 views)
2017-04-27 17:45:51

buddyBro (737 views)
2017-04-05 03:38:00

CopyableCougar4 (1266 views)
2017-03-24 15:39:42

theagentd (1246 views)
2017-03-24 15:32:08

Rule (1221 views)
2017-03-19 12:43:22

Rule (1274 views)
2017-03-19 12:42:17
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!