Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (593)
Games in Android Showcase (168)
games submitted by our members
Games in WIP (646)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 50
1  Games Center / WIP games, tools & toy projects / Re: Babbie's first software-rendered ray-tracing on: 2015-07-02 04:29:01
I'm getting severe flickering when I run this. Here's a GIF showing it.

Click to Play


My PC specs are Intel i7-4790k, NVIDIA GTX 750 Ti, and 16 gigs of RAM. Running Windows 10 Insider Preview, and Java 8.
2  Games Center / WIP games, tools & toy projects / Re: Genesis (Survival Game) Java2D on: 2015-06-30 03:38:04
Where's Mr. Mustache? Clueless

He was trimmed off.  Tongue
3  Games Center / Showcase / RageCar - MiniLD #60 and TAFSJ #2 entry on: 2015-06-28 17:27:31




RageCar


A simple game where you have to drive safely on a highway full of other cars in rage. Controls are WASD and arrows to move, F1 to switch between fullscreen mode and windowed mode. Holding the ENTER key does debug rendering, the collision boxes are rendered on top of entities.

Note: Mac users need to run the game from command line, with the command
java -XstartOnFirstThread -jar RageCar.jar


Note: The game requires a system that supports OpenGL 3.3 (in core profile) and Java 8 JRE.

4  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-28 02:41:03
So sorry for your loss Cas, I can understand how this affected you, I never saw sad face in your signature but today, stay Strong.

SHC  Sad
5  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-27 10:15:44
Here is the progress so far, I got a new road texture (made in GIMP, took me 2 hours to get the cracks right).

Warning: Image very large (17 MB). Try to use Gfycat instead.

Click to Play


Got the infinite rolling background, and basic player car movement in the image.
6  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-27 09:53:09
I think the police car should have a little red on it, perhaps red lines on the sides? Roll Eyes

I don't think you can see what's on the side, maybe I'll try to add diagonal red stripes to the front and back of the top of the car.

Look good, but are the darker sides meant to represent shadows?  Seems odd to me that the white cars are the other way around.

Gotcha, you got me! Dunno why I changed that, indeed they are meant to be shadows. Not shadows actually since they are usually under the car, but they are glossy as they are brand new cars purchased new for every new game. Will change that, thanks!
7  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-27 04:37:54
Achieved 200 days of GitHub streak!



And I made these assets in Inkscape for my MiniLD game:



I'm now excited a bit  Roll Eyes Woo!!
8  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-25 14:43:09
Implemented a thunder ball in Blox, my 3D game (WIP). Warning GIF size is 8 MB.

Click to Play


Gfycat Link
9  Game Development / Newbie & Debugging Questions / Re: Object Problem on: 2015-06-25 04:53:31
The part after the @ literal is the hashcode, so it seems that LibGDX is overriding the hashcode somewhere, and setting it to 0. You can get your IDE to generate a new hashcode for your class.

And if you want to rely on printing, override the toString method and return a descriptive string, I prefer this. For example, it could be

1  
2  
3  
4  
5  
@Override
public String toString()
{
    return "[x=" + bounds.x + ", y=" + bounds.y + ", w=" + bounds.w + ", h=" + bounds.h + "]";
}
10  Discussions / Miscellaneous Topics / Re: I have not programmed in 3 weeks. on: 2015-06-24 13:55:55
I have been programming since 196 days continuously. What I did was to allot at least one hour a day to work on programming projects, that helped me maintain my GitHub streak even when I was at my grandma's house for 2 months this summer. Other than that (usually in my hometown), I'm almost stuck in front of my PC if there is no college.
11  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Java OpenGL Math Library (JOML) on: 2015-06-24 12:18:11
Not to mention I would have to create such methods for every class.

Or create once in a utility class and static import them. I wouldn't prefer this though, I'm pretty fine with the new keyword.
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-23 09:10:27
I have just programmed a small animation to Blox that is played before the level is changed.

GIF: 5.2 MB

Click to Play


Gfycat video | Imgur Page

This looks good right? Time to model some enemies.

P.S.: The quality loss is due to the GIF compression by LICECap, it looks good in the game.
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-21 17:34:45
I wrote a very basic TmxMapRenderer for SilenceEngine.



Does rendering of image and tile layers with complete support for transparency.
14  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-18 11:48:58
They forgot the best  Angry

You mis linked the image. Here is the correct (and best) one.



 Tongue Roll Eyes persecutioncomplex
15  Discussions / Miscellaneous Topics / Re: What IDE colour theme do you use? on: 2015-06-18 01:16:34
I do prefer light themes too, but I have no problem using the dark version even. For example, I use the light version in IntelliJ IDEA.



And I use the dark theme in Atom editor (which I use for my Jekyll blog)



And in Visual Studio (Yes I do use it, in college) I prefer light theme again. Just note, it's all a preference of the user, and nothing is broken.
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-17 10:30:30
Congratz to you!

But, 20 days? I thought I had to wait long for my license (about a week or so).

Thanks!  Cheesy  Yeah 20 days, that's because our state has been recently divided into two, and yet the government didn't split completely.
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-17 08:02:16
I just completed my driving test successfully  Wink And they said that I will receive my licence in 20 days through post.  Cool
18  Games Center / Showcase / Re: Ni on: 2015-06-17 03:00:10
Yeah the Bit.ly links are working fine. But chrome is blocking your ZIP saying that it is malicious.



When I tried to recover it, avast kicked in and deleted the entire ZIP file. But your JAR version is fine, it worked without any hassle.
19  Games Center / Showcase / Re: Ni on: 2015-06-16 12:07:08
Unfortunately, both the above links keeps showing this message.

20  Games Center / Showcase / Re: Ni on: 2015-06-16 01:50:38
Mega.co.nz is no more working. It says NAME_CANNOT_BE_RESOLVED error. Alternate download link please?
21  Game Development / Newbie & Debugging Questions / Re: LibGDX - Combine textures? on: 2015-06-15 16:46:33
Try looking for texture atlas. Maybe the texture packer can work.
22  Games Center / Contests / Re: TAFSJ - The Actually Finish Something Jam on: 2015-06-15 11:50:50
I'm in. My entry will be a platformer like the good old Bounce Tales.
23  Games Center / Showcase / Re: Izalys World (Java 2D run and jump game) on: 2015-06-13 14:41:21
I'm having the same problem as Kai. If I run it in fullscreen, I can't even get to the fullscreen, and in windowed mode, it crashes with an exception after I select the level.

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  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
120  
121  
122  
123  
124  
125  
126  
127  
128  
129  
130  
131  
D:\Izalys World>java -jar izalysWorld.exe
Jun 13, 2015 8:06:44 PM net.java.games.input.DefaultControllerEnvironment getControllers
WARNING: Found unknown Windows version: Windows 8.1
Jun 13, 2015 8:06:44 PM net.java.games.input.DefaultControllerEnvironment getControllers
INFO: Attempting to use default windows plug-in.
Jun 13, 2015 8:06:44 PM net.java.games.input.DefaultControllerEnvironment getControllers
INFO: Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
java.io.IOException: mark/reset not supported
        at java.util.zip.InflaterInputStream.reset(Unknown Source)
        at java.io.FilterInputStream.reset(Unknown Source)
        at com.sun.media.codec.audio.mp3.JS_MP3FileReader.getAudioFileFormat(JS_MP3FileReader.java:226)
        at com.sun.media.codec.audio.mp3.JS_MP3FileReader.getAudioInputStream(JS_MP3FileReader.java:131)
        at com.sun.media.codec.audio.mp3.JS_MP3FileReader.getAudioInputStream(JS_MP3FileReader.java:93)
        at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
        at game.system.media.MultiMediaObject.createClipFromWav(MultiMediaObject.java:52)
        at game.system.menu.AbstractMenu.<init>(AbstractMenu.java:35)
        at game.system.menu.mainmenu.MainMenu.<init>(MainMenu.java:38)
        at game.system.menu.mainmenu.MainMenuScreen.<init>(MainMenuScreen.java:19)
        at game.system.engine.GameEngine.processNextFrame(GameEngine.java:238)
        at game.system.engine.GameEngine.display(GameEngine.java:644)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at com.jogamp.opengl.awt.GLCanvas$11.run(GLCanvas.java:1421)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.opengl.awt.GLCanvas$12.run(GLCanvas.java:1435)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)
java.lang.NullPointerException
        at game.system.media.MultiMediaObject.playClip(MultiMediaObject.java:76)
        at game.system.menu.AbstractMenu.manageKeys(AbstractMenu.java:101)
        at game.system.engine.GameEngine.processNextFrame(GameEngine.java:246)
        at game.system.engine.GameEngine.display(GameEngine.java:644)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at com.jogamp.opengl.awt.GLCanvas$11.run(GLCanvas.java:1421)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.opengl.awt.GLCanvas$12.run(GLCanvas.java:1435)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)
java.lang.NullPointerException
        at game.system.media.MultiMediaObject.playClip(MultiMediaObject.java:76)
        at game.system.menu.AbstractMenu.manageKeys(AbstractMenu.java:101)
        at game.system.engine.GameEngine.processNextFrame(GameEngine.java:246)
        at game.system.engine.GameEngine.display(GameEngine.java:644)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at com.jogamp.opengl.awt.GLCanvas$11.run(GLCanvas.java:1421)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.opengl.awt.GLCanvas$12.run(GLCanvas.java:1435)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)
java.io.IOException: mark/reset not supported
        at java.util.zip.InflaterInputStream.reset(Unknown Source)
        at java.io.FilterInputStream.reset(Unknown Source)
        at com.sun.media.codec.audio.mp3.JS_MP3FileReader.getAudioFileFormat(JS_MP3FileReader.java:226)
        at com.sun.media.codec.audio.mp3.JS_MP3FileReader.getAudioInputStream(JS_MP3FileReader.java:131)
        at com.sun.media.codec.audio.mp3.JS_MP3FileReader.getAudioInputStream(JS_MP3FileReader.java:93)
        at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
        at game.system.media.MultiMediaObject.createClipFromWav(MultiMediaObject.java:52)
        at game.things.player.Player.initSounds(Player.java:226)
        at game.things.common.Thing.<init>(Thing.java:170)
        at game.things.player.Player.<init>(Player.java:120)
        at game.system.worldloader.WorldLoader.addNewThingToArray(WorldLoader.java:202)
        at game.system.worldloader.WorldLoader.getThingArrays(WorldLoader.java:402)
        at game.world.World.loadObjects(World.java:152)
        at game.world.World.loadMap(World.java:120)
        at game.world.World.initWorld(World.java:86)
        at game.world.World.<init>(World.java:77)
        at game.system.engine.GameEngine.loadNextWorld(GameEngine.java:450)
        at game.system.engine.GameEngine.loadWorld(GameEngine.java:363)
        at game.system.engine.GameEngine.processNextFrame(GameEngine.java:257)
        at game.system.engine.GameEngine.display(GameEngine.java:644)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
        at com.jogamp.opengl.awt.GLCanvas$11.run(GLCanvas.java:1421)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
        at com.jogamp.opengl.awt.GLCanvas$12.run(GLCanvas.java:1435)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)

Hope this information helps. Really nice artwork by the way.
24  Game Development / Newbie & Debugging Questions / Re: Brick Breaker game running slow on: 2015-06-13 13:32:54
What DarkCart said, I agree with him. Use Java2D for some time, and move out of it once you start feeling it's limitations (Maybe slow performance when lots of entities, or you might want to use effects such as lights in your game). Then, it is entirely up to your interest, if you want to make games fast, then use a framework like LibGDX, but if you want to learn what happens under the hood, LWJGL is the way to go.

I would suggest ignoring Slick2D too, because, it's author is now using LibGDX himself, and the project is not appearing to be actively maintained. Compared to that, LibGDX is better I think (I never actually used it, I went the LWJGL way).
25  Game Development / Newbie & Debugging Questions / Re: Brick Breaker game running slow on: 2015-06-11 16:35:41
Stop plugging Mercury to newbies. Seriously.

I really like to ask you why, because as I know, it is in a usable state, and not my own (I'm a contributor though). I really don't want to point newbies to un-finished or heavy WIP engines or libraries, but Mercury is usable as I know it.
26  Game Development / Newbie & Debugging Questions / Re: Brick Breaker game running slow on: 2015-06-11 16:28:12
The key to this is to just use the array list and do brickList.add(new Brick()); 14 times instead of creating 14 instances.

Absolutely wrong. Even when you inlined the new statement into the add method call, you are still creating an instance. However this is clean, as this is short and easy to read.

@cookiecompiler

The actual issue is your game loop, the swing timer is not reliable for game programming, as it is never guaranteed to be accurate. Instead, use System.nanoTime() and write your own game loop instead. See this post for more information on the topic.

http://gameprogrammingpatterns.com/game-loop.html

The next issue is that you are using Java2D. I won't say Java2D is very bad, but it isn't the right choice for programming games, though it can be used to get high frame rates (~120) if used correctly. For starters, I still recommend Java2D. Once you start feeling the limitations, you can move to Mercury (similar to Java2D's Graphics interface, but uses hardware acceleration).

Good luck.
27  Games Center / Showcase / Re: RPG Game (Early Alpha) on: 2015-06-11 15:41:48
And guys, haven't we de-railed the original topic?
28  Games Center / Showcase / Re: RPG Game (Early Alpha) on: 2015-06-11 13:37:49
I got this after moving some time into the sea.



Interestingly, there is no exceptions in the console, but the output disappears simply after sometime.

I'm using Windows 10 Insider Preview build 10074, Java 8 if that matters.
29  Discussions / Miscellaneous Topics / Re: What kind of keyboard do you code on? on: 2015-06-08 14:09:35
On my laptop, I really like the integrated keyboard that came with my Lenova G400s, which I've been using since last 2 years.

On my desktop, I use the logitech keyboard (dunno the model) which I bought in 2004. Was still using it and it is working good enough still. (Only exception is the power key, which stopped working 2 years ago. I don't use it anymore so it is perfectly fine.)
30  Game Development / Newbie & Debugging Questions / Re: porting to mac on: 2015-06-05 22:55:48
Maybe this tutorial will help you.

http://www.java-gaming.org/topics/wondering-how-to-use-jarsplice-this-is-the-thread-for-you/32326/view.html
Pages: [1] 2 3 ... 50
 
deepthought (36 views)
2015-06-30 15:39:44

deepthought (39 views)
2015-06-30 15:39:09

deepthought (52 views)
2015-06-30 15:36:52

Za\'Anzabar (21 views)
2015-06-29 05:44:54

TritonDreyja (39 views)
2015-06-24 17:10:40

CopyableCougar4 (36 views)
2015-06-23 00:34:45

BurntPizza (41 views)
2015-06-21 20:36:46

cookiecompiler (84 views)
2015-06-11 15:42:53

cookiecompiler (47 views)
2015-06-11 15:41:14

NegativeZero (76 views)
2015-06-11 09:49:18
How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14
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!