Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (616)
Games in Android Showcase (173)
games submitted by our members
Games in WIP (659)
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 ... 12
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-07-11 16:49:48
Just returned from FCE exam session. Smiley
2  Game Development / Newbie & Debugging Questions / Re: Self-cert Java Applet Issues on: 2015-06-09 04:30:18
Making applets is not a good idea any more - both Oracle and web browsers developers want to make them gone.

If you want to make apps/games for web browser, you can try using LibGDX instead which can target WebGL.
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-06-08 22:05:46
To be honest, I don't like this refund policy as well... Refund should be possible only if user didn't even downloaded the game or cannot run it after downloading (in which case developer makes refund manually).

Buying game which is not in user taste is user, not developer fault. 2 hours is a lot.
4  Discussions / Miscellaneous Topics / Re: What kind of keyboard do you code on? on: 2015-06-06 19:10:20
Any keyboard, as long as it works and have noticeable (and audible) feedback. Smiley
5  Discussions / General Discussions / Re: Rayvolution's JGO Appreciation Thread (AKA: Free copies of Retro-Pixel Castles!) on: 2015-05-27 21:26:00
I found tiny bug already - when you pause game and zoom out the map, only previously rendered part of it is visible (I guess that game is not updating what is visible and what is not when paused).
6  Discussions / General Discussions / Re: Rayvolution's JGO Appreciation Thread (AKA: Free copies of Retro-Pixel Castles!) on: 2015-05-27 04:58:30
I would like to try it as well. Smiley

Good job on making successful game, especially after seeing for much positive feedback it received on this site since the beginning.
7  Discussions / Miscellaneous Topics / Re: What are your current personal projects? on: 2015-05-22 19:41:59
Since few years I am developing DeedPlanner - tool for Wurm Online ( ) - this is probably my biggest personal project so far.

When it comes to games, I have two personal projects as well, but both of them are suspended due to lack of time and in too early stage to show them to the world, the same with Direct3d bindings for Java.
8  Discussions / Miscellaneous Topics / Re: Most unusual/weird syntax features in non-joke languages on: 2015-05-12 21:59:44
Java compared to Javascript is like Scrabble compared to Jenga... Very different, but both of them belong to the same category (programming languages and games) - first of them have very strict rules and requires some experience, second one gives more freedom and requires less learning, but - if you fail even slightly - it is over.
9  Discussions / Miscellaneous Topics / Most unusual/weird syntax features in non-joke languages on: 2015-05-08 23:39:30
Like in topic - what are the weirdest or very unusual syntax features you saw in other languages than Java? Please post features only from "real" languages (no Malborge, Shakespeare etc.).

I will start with this code snippet from Haxe:

class Vec3 {

   public var x : Int;
   public var y : Int;
   public var z : Int;
   public function new(?x : Int, ?y : Int, ?z : Int) {
      this.x = (x == null) ? 0 : x;
      this.y = (y == null) ? 0 : y;
      this.z = (z == null) ? 0 : z;

Haxe don't support method and constructor overloading, but what we see there is something similar - in this case this method can be invoked without parameters or with 1, 2 or 3 parameters, like this:

      new Vec3(); // (0, 0, 0)
      new Vec3(1); // (1, 0, 0)
      new Vec3(1, 2); // (1, 2, 0)
      new Vec3(1, 2, 3); // (1, 2, 3)
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-03-09 20:35:47
Just wrote this , thought it looked quite weird, what do you think?
cable = (sub != null);
electric = (sub != null);

I very rarely use the syntax like this usually it's a set of if statements for the readability , any performance enhancements to using this, I can guess a few less processor calls.

Compiler should take care of duplicate statements and optimize them, but codewise avoiding duplicate statements is (almost always) a good practice.
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-02-18 21:52:12
Added automapping for the dungeons. I actually didn't want to do that, but...i did it anyway... Grin

This is starting looking like Skyrim mobile. Cheesy
12  Discussions / General Discussions / Re: What's your day job? on: 2015-02-16 19:59:31
1st year CS student on Warsaw University of Life Sciences here. Smiley

Not all teachers are incompetent, but I must agree that if you don't want to learn something or come to school just to pass it and get a diploma, nothing will help you. Good teacher is a teacher who can interest you in a particular topic or field, from this point he/she can HELP you to get more knowledge in his/her field.
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-02-15 01:59:37
I haven't post much recently due to school, but I still lurk here every once in a while. During our school's week off for Mardi Gras break, I looked into functional programming with Java, lambdas, method references, etc.

They are awesome! Code like this is beautiful.

Yes, this is beautiful... But sadly not too fast Sad (although I wouldn't worry about it as long as everything is working good enough)
Very useful for working with any data and - at least in my opinion - much easier to read than "classical" code as you can see what the query do at first glance.
14  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-27 21:47:03
Just implemented bogosort and bogobogosort sorting alghoritms: (just for fun, naturally). Cheesy
15  Discussions / Miscellaneous Topics / Re: Unofficial JGO Steam Group! on: 2015-01-25 18:37:47
Joined as well. Smiley
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-02 11:17:15
I always wonder if anyone will ever make a Java game that will stop all this stuff about: Java is too slow, Java isn't good for AAA games, Java is bad...

Java IS too slow... If you don't know how to handle GC properly. Sadly this is a difficult thing to master, we can see problems with GC even in most known Java games. In addition, we don't have any good java-based game libraries/editors.

There are some very good looking Java games (Wurm Online for example, Starsector is not looking bad as well), but sadly lack of any more known Java indie or commercial games and lack of support from Oracle for anything related to games (in fact, to anything client-side) are creating false image of Java games.
17  Game Development / Newbie & Debugging Questions / Re: LWJGL - Immediate rendering alternative on: 2014-12-17 21:07:14
Use GL_LINES instead of GL_LINE.

In addition, if you need to display A LOT of lines/points/anything else and you don't want to change rendering data often, you can use display lists for significant performance boost.
18  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-06 20:22:32

Gist updated. Smiley I will probably refactor project and make WIP thread soon.
19  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-06 01:50:47
If you release the code (the pastebin would work, Gist would be better), we could probably speed that up quite a bit. 2s sounds slow, although I'm forgetting what all is involved with fractal gen.
It's diamond-square, right?

Looks good though!

Edit: XOR random generator improved generation speed by about 30%.

Edit2: Added multithreading, now 8192X8192 fully detailed map is generated in 14 seconds instead of 33.
20  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-06 00:51:29
Experimented with procedural terrain generation again, now with fractals:

I wrote this generator in 2 hours, but even after such a short time I am able to say that fractal-based generation is superior to noise-based (especially simplex noise). Main advantages of this random generation method:

  • VERY fast generation
  • possibility to generate less detailed, very similar looking maps on demand
  • only small amount of repeating patterns (probably possible to fix with better random function)
  • easily configurable
  • lazy generation

Generation times:
2048X2028 (seen above), full detail - ~2,3s
8192X8192, full detail - 33s
8192X8192, very high detail (almost the same as full detail, with just one generation layer less) - 23s
8192X8192, high detail (first noticeable quality loss) - 14s
8192X8192, low detail (very noticeable quality loss, but still should look acceptable in the far distance in case of 3d games) - 8s

I will try to improve this generator further, this looks very promising.
21  Discussions / Miscellaneous Topics / Re: C#, did Microsoft just want to be different? on: 2014-12-02 01:02:22
Most of this stuff seems like attempt to avoid boilerplate code... By adding unreadable code. Smiley
22  Discussions / Miscellaneous Topics / Re: Language with direct RAM<->HDD communication on: 2014-11-29 19:35:14
Yes, but in case of paging you don't have any control on what is in memory and what is stored on HDD - I am thinking mostly about something like database built directly in language which is deleted after program execution stopped.
23  Discussions / Miscellaneous Topics / Language with direct RAM<->HDD communication on: 2014-11-29 19:22:26
Why nobody invented language with built-in direct RAM<->HDD communication so far? I think this would have many pros (if used right), even in modern times where RAM is getting cheaper and cheaper.

Some examples (in Java code):

Example class:

import java.util.ArrayList;

public class ExampleClass {

    //field for internal JVM use only, possibly by GC
    private boolean loaded = true;
    private ArrayList<String> list;
    public ExampleClass() {
        list = new ArrayList<>();
    public ArrayList<String> getList() {
        return list;
    public void setList(ArrayList<String> list) {
        this.list = list;
    //this method should be directly in Object class
    public boolean isLoaded() {
        return loaded;
    //this method should be directly in Object class
    public void setLoaded(boolean loaded) {
        this.loaded = loaded;
    public void doSomething() {
        //do something here

Example 1:

public static void main(String[] args) {
        //new object is created in memory
        ExampleClass obj = new ExampleClass();
        obj.getList().add("Hello World!");
        obj.doSomething(); //working as usual

        obj.setLoaded(false); //JVM receives hint that obj and everything inside should be unloaded from memory and moved to HDD on next GC cycle
        obj.doSomething(); //still working as usual, unless GC cycle happens between this and previous call
        obj.doSomething(); //obj is loaded from HDD and is stored here until end of method and next GC cycle, if called method is using list inside obj, then this list is loaded as well
        obj.setLoaded(true); //the whole obj is loaded from HDD to memory and deleted on HDD
        obj.doSomething(); //working as usual

Example 2:

public static void main(String[] args) {
        ExampleClass first = new ExampleClass();
        ExampleClass second = new ExampleClass();
        second.setLoaded(false); //only second will be unloaded to HDD on GC as list is used somewhere else
        first.list.add("Hello World!"); //works as usual
        second.doSomething(); //second is loaded from HDD, but list inside is in memory all the time
        first.setList(new ArrayList<>()); //reference to list inside second object is erased
        System.gc(); //list inside second object is unloaded to HDD
        second.doSomething(); //obj is loaded from HDD and is stored here until end of method and next GC cycle, if called method is using list inside obj, then this list is loaded as well
24  Game Development / Newbie & Debugging Questions / Re: Saving and loading gfame data with file i/o on: 2014-11-29 02:46:23
Pros and cons of each method:

+very flexible
+easy to edit (for example for debugging)
+easy to implement in OOP way (especially XML)
-takes a lot of space (in comparison with other methods)
-easy to edit (if you are worried that users will edit save data, but you shouldn't)
-needs some boilerplate code

2. Text formats
+very easy to implement
-very dependent on programmer skills and design decisions

3. Binary format
+very fast saving/loading
+takes very small amounts of space
+hard to edit (if you are worried that users will edit save data, but you shouldn't)
-inflexible (in some cases you even need to write a new loader after changing something, in addition to maintaining code for older saves)
-hard to edit (if you want to change some values inside save for debugging or testing purposes)

For most of games, I would choose XML unless you need to save/load a lot of data, then I would choose binary format (but still use XML as alternative for debugging and testing).

In your case even text file should be enough.
25  Game Development / Newbie & Debugging Questions / Re: How to integrate Lua into Java? on: 2014-11-29 01:43:45
What would you recommend for scripting in Java? Lua or JS?

I think this is matter of personal preference - from my experience Lua is better suited for (especially large) games, but with both of them you should be able to implement scripting easily.
26  Game Development / Networking & Multiplayer / Server UI - graphical vs command line on: 2014-10-15 16:14:10
Like in topic - what do you think, is it better to be able to control server via GUI or command line? I wonder which solution is better - command line should work everywhere and is very easy to make, but GUI should be faster and easier to use and be able to show more data at the same time.
27  Discussions / General Discussions / Re: New feature: registration and login through Facebook, Google, etc on: 2014-10-11 17:30:10
We have registration through Facebook and Google now, so... How about Facebook page? Roll Eyes
28  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-01 20:15:31
First day of university, CS naturally. Smiley
29  Discussions / Miscellaneous Topics / Re: Java won't let me time travel on: 2014-09-30 20:40:43;

Why not this way?
30  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-30 00:10:50
I tested my knowledge in and threw this together.

I used "I Want My TTR!" for and "Lapetus" for the fonts.
I'm actually thinking of making a cyberpunk themed action game too. Which was part of the reason ;-)

This reminds me of Far Cry 3: Blood Dragon - really similar style. Smiley
Pages: [1] 2 3 ... 12
Coldstream24 (18 views)
2015-09-03 00:41:28

Andrew_3ds (30 views)
2015-09-01 19:08:10

afikri (20 views)
2015-08-31 09:30:22

afikri (27 views)
2015-08-31 09:30:07

afikri (15 views)
2015-08-31 09:27:24

afikri (17 views)
2015-08-31 09:26:40

Roquen (32 views)
2015-08-29 11:30:54

GamerC4 (39 views)
2015-08-22 20:38:50

GamerC4 (37 views)
2015-08-22 20:37:18

GamerC4 (43 views)
2015-08-22 20:37:01
HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36

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 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‑
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!