Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (497)
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 ... 10
1  Game Development / Newbie & Debugging Questions / Re: [Box2d][Libgdx] How to detect 2 bodies in contactListener? on: 2014-03-22 17:18:20
Never compare Strings using "==" - use "equals" instead.
2  Discussions / General Discussions / Re: JDK 8 is released on: 2014-03-20 10:58:08
Is NetBeans affected by this bug?
3  Discussions / General Discussions / Re: Best lwjgl game graphically? on: 2014-03-18 08:32:56
What about Wurm Online? Full 3d, large-scale MMO game. Cheesy
4  Discussions / General Discussions / Re: Data bases and game programming on: 2014-02-13 12:42:51
I don't use any databases, in my opinion DB are good for websites/static browser games (like, for example, Tribal Wars), but not too good for dynamic games.

Personally, I am using Kryo for serialization.
5  Discussions / Miscellaneous Topics / Re: Comment Tricks on: 2014-01-21 12:15:43
I think that most of us use "comment tricks" like this. When I need to disable the code for a moment (or test how good is the new version without deleting previous) I use comment/uncomment feature in NetBeans. Smiley
6  Java Game APIs & Engines / OpenGL Development / glCopyTexImage2D error - GL_INVALID_ENUM on: 2014-01-19 22:23:15
I have a problem with glCopyTexImage2D - look at this util method which is cutting previously rendered scene to the texture:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
    public static Texture cutRenderToTexture(GL g, int width, int height) { 
        IntBuffer buff = Buffers.newDirectIntBuffer(1);
        g.glGenTextures(1, buff);
        int tex = buff.get();
        g.glBindTexture(GL.GL_TEXTURE_2D, tex);
        checkGLError(g);
        g.glCopyTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, 0, 0, width, height, 0);
        checkGLError(g);
        g.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
        return TextureIO.newTexture(tex, GL.GL_TEXTURE_2D, width, height, width, height, false);
    }


checkGLError is a simple method which is checking all possible OpenGL errors - in this example I am calling it twice to show that problem can be related only to glCopyTexImage2D call. I am getting GL_INVALID_ENUM error, but target is valid, GL_TEXTURE_2D enabled and OpenGL docs ( https://www.opengl.org/sdk/docs/man4/xhtml/glCopyTexImage2D.xml ) do not specify if this error can happen in any other case.

Any ideas what is wrong?
7  Game Development / Newbie & Debugging Questions / Re: Noob thinking about trying to use a library on: 2014-01-13 20:14:23
About loading/unloading regions - you have to make the code yourself, but KryoNet is a good choice when it comes to saving/loading objects and networking.

About lighting - I think there is no library for that, you have to use the whole framework like LibGDX or make it yourself.

Easy to learn engine? Try LibGDX, or JOGL if you want to reinvent the wheel.
8  Discussions / General Discussions / JGO Anniversary - 2^9 games in showcase on: 2014-01-09 09:38:34
It seems that we now have 2^9 (512) games in showcase - let's see how many high quality Java games will be made when we will hit 2^10 games! Cheesy

Long live JGO! Smiley
9  Discussions / General Discussions / Re: Forum software suggestions? on: 2014-01-08 17:31:42
I recommend SMF - very powerful and customizable forum engine. It is not worth to buy forum engine when you have very good open source alternatives.
10  Discussions / General Discussions / Re: Opinions of games engines on: 2014-01-07 16:10:51
Finally someone that understands why I hate looking at any C* language...

Definitely. I don't know if this is just me, but IMHO "SomeClass extends AnotherClass" looks better than "SomeClass : AnotherClass". The same with long class/variable names, for example "WindowClassExtended" against "WNDCLASSEX".
11  Discussions / General Discussions / Re: what do you code on? on: 2014-01-04 17:25:08
Why thread like this is popular... Well, we all are nerds and nerds just love talking about hardware and computers in general. Cheesy
12  Game Development / Shared Code / Re: jnigen: JNI with less pain on: 2014-01-03 22:30:23
Both of them are added, still the same error. Path is working correctly via cmd for both mingw32-C++ (and everything else with "mingw32-" in name) and ant.bat
13  Game Development / Newbie & Debugging Questions / Re: Java Security BS, Can I Get Around It? on: 2014-01-03 22:13:10
Jetbrains/WebStorm is a fancy JS/HTML IDE. It even supports javascript breakpoints which you set in the IDE, which affect the running code in the browser (!) with variables showing in your IDE -- you either watch the stack-frame, or hover the variables in your code, where their current values show in the tooltips. Mind is blown. It's not free, but has a 30 day trial.

You can do the same thing (breakpoints, variables showing in IDE) using free GWT - while writing and debugging code in Java, from the Eclipse (sadly no NetBeans). Smiley
14  Game Development / Shared Code / Re: jnigen: JNI with less pain on: 2014-01-03 22:02:16
Quote
run:
C/C++ for 'src/pl/mac70/jdirect/Window.java' up to date
Wrote target 'Windows' build script 'jni\build-windows32.xml'
Wrote master build script 'jni\build.xml'
Executing 'ant.bat -f D:\jDirect\jDirect\jni\build-windows32.xml -v -Dhas-compiler=true clean postcompile'
Executing 'ant.bat -f D:\jDirect\jDirect\jni\build.xml -v pack-natives'
java.io.IOException: Cannot run program "ant.bat": CreateProcess error=2, Nie mo¿na odnaleŸæ okreœlonego pl
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
   at com.badlogic.gdx.jnigen.BuildExecutor.startProcess(BuildExecutor.java:51)
   at com.badlogic.gdx.jnigen.BuildExecutor.executeAnt(BuildExecutor.java:38)
   at pl.mac70.test.JNIBuild.main(JNIBuild.java:17)
Caused by: java.io.IOException: CreateProcess error=2, Nie mo¿na odnaleŸæ okreœlonego pl
   at java.lang.ProcessImpl.create(Native Method)
   at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
   at java.lang.ProcessImpl.start(ProcessImpl.java:136)
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
   ... 3 more
java.io.IOException: Cannot run program "ant.bat": CreateProcess error=2, Nie mo¿na odnaleŸæ okreœlonego pl
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
   at com.badlogic.gdx.jnigen.BuildExecutor.startProcess(BuildExecutor.java:51)
   at com.badlogic.gdx.jnigen.BuildExecutor.executeAnt(BuildExecutor.java:38)
   at pl.mac70.test.JNIBuild.main(JNIBuild.java:19)
Caused by: java.io.IOException: CreateProcess error=2, Nie mo¿na odnaleŸæ okreœlonego pl
   at java.lang.ProcessImpl.create(Native Method)
   at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
   at java.lang.ProcessImpl.start(ProcessImpl.java:136)
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
   ... 3 more
BUILD SUCCESSFUL (total time: 0 seconds)

Any ideas? Roll Eyes Error(s) caused by this code:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
package pl.mac70.test;

import com.badlogic.gdx.jnigen.*;
import com.badlogic.gdx.jnigen.BuildTarget.TargetOs;

public class JNIBuild {

    static public void main (String[] args) throws Exception {
        NativeCodeGenerator jnigen = new NativeCodeGenerator();
        jnigen.generate("src", "build/classes", "jni", new String[] {"**/*"}, null);

        BuildTarget win32 = BuildTarget.newDefaultTarget(TargetOs.Windows, false);
        win32.compilerPrefix = "mingw32-";
        //BuildTarget win64 = BuildTarget.newDefaultTarget(TargetOs.Windows, true);

        new AntScriptGenerator().generate(new BuildConfig("jDirectDll"), win32);
        BuildExecutor.executeAnt("jni/build-windows32.xml", "-v -Dhas-compiler=true clean postcompile");
        //BuildExecutor.executeAnt("jni/build-windows64.xml", "-v -Dhas-compiler=true clean postcompile");
       BuildExecutor.executeAnt("jni/build.xml", "-v pack-natives");
    }
   
}
15  Game Development / Newbie & Debugging Questions / Re: Java Security BS, Can I Get Around It? on: 2014-01-03 20:32:27
You can have source code in multiple files using Javascript Wink

I named this wrong, I was thinking about "one class = one file", like in Java - this makes development much, much easier. Smiley JS is also lacking a good IDE.
16  Game Development / Newbie & Debugging Questions / Re: Java Security BS, Can I Get Around It? on: 2014-01-03 15:39:02
You can always use Java to make JavaScript projects using http://www.gwtproject.org/ - IMO this is much better than writing anything in plain JS as you can use all Java features useful for projects larger than simple calculator like packages, source code in multiple files etc. Smiley
17  Discussions / General Discussions / Re: what do you code on? on: 2014-01-01 20:31:11
Acer Aspire 5755G
Intel Core i3-2350M
GeForce GT 630M
8 gb DDR3 RAM
512 gb HDD
18  Discussions / Miscellaneous Topics / Re: Welcome to 2014! on: 2013-12-31 22:55:49
What I achieved:
  • continued learning Java (started in late 2012)
  • learned Scala
  • learned C++ (mostly for JNI)
  • learned PHP
  • learned networking, KryoNet library
  • learned OpenGL, made some 2d and 3d prototypes using it
  • learned DirectX basics
  • made complex 3d planning program for Wurm Online - not a game, but program with game-like structure

What I hope to achieve in 2014:
  • make Direct3d wrapper for Java (possible merge with LWJGL in the future?)
  • make further progress on my MMO project
  • learn more design patterns
  • expand knowledge of gamedev
19  Discussions / Miscellaneous Topics / Re: Need Ideas for School Project on: 2013-12-31 02:07:23
(...) I like the idea of defending yourself to learn more about your system.

You can add this element to my idea, too. In shoot'em'up you must take care of your ship. About learning part - for example, why Windows ship special ability is shooting with very damaging bullets with DirectX symbol on them (Windows as popular gaming platform), Linux - ship transformation (many different distributions), Mac - shield (security).
20  Discussions / Miscellaneous Topics / Re: Need Ideas for School Project on: 2013-12-31 01:19:34
Crazy idea, but I think it have some sense... Maybe shoot'em'up with upgrades between levels?

Hardware = ship upgrades (for example, better CPU = faster shooting, better GPU = more shoots, bigger HDD = more life, more RAM = special shoot duration and power, another possibility - important hardware parts as different weapons to choose with different characteristics) - include some informations about hardware parts in upgrade description.

OS = different level environments and final bosses of this environments. Another possibility - ship classes to choose.

Software, word processing, spreadsheets, networking and email - enemies and bosses. You can add bosses who represent various topics like spreadsheets, networking etc. with appearance, attacks (+ final boss of the environment - OS). Software might be shown as normal enemies, for example in level with networking as a boss you can meet IE, Firefox, Opera, Chrome and Safari as enemies. Include some informations about "boss" after finished level.
21  Game Development / Articles & tutorials / Re: LibGDX, Box2d, and Ruby - Platformer Tutorial on: 2013-12-30 16:38:34
I think that this forum is for Java gamedev, but remeber that Java is not only a language, but also the whole environment which support much more languages than just Java.
22  Game Development / Game Play & Game Design / Re: Damage Types in RPGs and Roguelikes on: 2013-12-20 15:35:21
Will names of items be constant or randomly generated?
23  Discussions / Miscellaneous Topics / Humble Bundle weekly bundle - Puppy Games! on: 2013-12-19 21:13:43
https://www.humblebundle.com/weekly

Who else is going to buy this bundle? I was really suprised when I saw it. Smiley
24  Discussions / Business and Project Discussions / Re: Looking for people to learn and create with! on: 2013-12-18 23:06:40
It depends on what you are planning to do. My suggestion - each programmer should work on another module (like networking, entity system etc.) and write public API to allow another programmers use your code without actually knowing it - this way you can keep high productivity in teams. Smiley
25  Game Development / Networking & Multiplayer / Re: Kryonet/Kryonet alternatives on: 2013-12-18 23:03:52
In my opinion:

Use TCP when you need to transfer data like: login/register data, entities data (when first time in view range).

Use UDP when you need to transfer data like: movement update, actions, entities state updates.
26  Game Development / Networking & Multiplayer / Re: Kryonet/Kryonet alternatives on: 2013-12-18 21:30:32
You can send data via UDP using KryoNet - "connection.sendUDP(object);"
27  Game Development / Game Play & Game Design / Re: Damage Types in RPGs and Roguelikes on: 2013-12-18 13:20:22
I found the official Magicka page, but it doesn't explain much about the magic system used there. Are there online sources which explain it more in depth?

http://magicka.gamepedia.com/Spell_Combinations
28  Game Development / Game Play & Game Design / Re: Damage Types in RPGs and Roguelikes on: 2013-12-18 00:51:20
In my opinion combo attacks should improve replayability, especially if game allows for unexpectable, but still balanced combinations - just look at magic system in Magicka. The whole game is based on this concept and it is really popular. Smiley
29  Game Development / Game Play & Game Design / Re: Damage Types in RPGs and Roguelikes on: 2013-12-17 19:08:45
More damage types = better, but each of them must have special characteristics - otherwise, adding many damage types is pointless. Smiley
30  Discussions / General Discussions / Re: SteamOS, SteamMachines, Steam Controller on: 2013-12-16 16:06:18
We don't bother with the micro-vm any more. Bandwidth is ubiquitous. We're amongst the smallest games on Steam.

One of the best IT related quotes I saw lately. Currently even gigabytes can be downloaded very fast and stored easily, so both bandwidth and storage space will (probably) never be a problem or something to worry anymore.

I took a first look at SteamOS - I must say that it is much better than I expected, but it still needs much polish.
Pages: [1] 2 3 ... 10
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (12 views)
2014-04-15 18:08:23

BurntPizza (11 views)
2014-04-15 03:46:01

UprightPath (24 views)
2014-04-14 17:39:50

UprightPath (10 views)
2014-04-14 17:35:47

Porlus (27 views)
2014-04-14 15:48:38

tom_mai78101 (49 views)
2014-04-10 04:04:31

BurntPizza (108 views)
2014-04-08 23:06:04

tom_mai78101 (207 views)
2014-04-05 13:34:39

trollwarrior1 (176 views)
2014-04-04 12:06:45

CJLetsGame (182 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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!