Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 20 Dec 2006
Offline Last Active Apr 14 2015 02:56 AM

Posts I've Made

In Topic: Creating a Random World for an RPG

07 January 2013 - 02:28 AM

Hi ILoveJesus,


I am currently working on 3D world generation (but it also applies for 2D i guess). I personaly only want to generate cities but not the less. What I do is is the following:

1) Generate the world itself (just a simple world with some mountains)

2) Randomly select locations I would like to place a city (random numbers basically). 

3) Verify if there location I selected isn't 2 rough (checking 'x' locations around my selected location)

4) Generate a city layout

5) Encase the border of the city with mountains (with another bit of random generation magic)

6) Override world data for that part of the map

7) Generate accesspaths


You could do the same with 2d generation just generate a location for the dungeon surround the location with mountains and if it is a low level dungeon generate access paths if it's a high level dungeon don't generate.


Hope this helps, With kind regards,



In Topic: How is my programming format

07 January 2013 - 02:21 AM

Hi Cdrandin,


First of all let me tell you I don't program unity but do program python, c#, c++, etc. Looking at the format I personally think it looks really clean. Only thing I would change myself (if possible) is put the description of the function above the function. Also I am missing a simple outline for the class (meaning a bit of comments explaining what this class is for).


As for the rest of the code I think it looks pretty nice.


With kind regards,



In Topic: rendering

03 January 2013 - 08:37 AM

Correct :) best of both worlds imho

In Topic: rendering

03 January 2013 - 05:25 AM

Well it is possible but for 2D I would really suggest Slick2D. The reason comes from there site to be honest ;):
Slick2D is an easy to use set of tools and utilites wrapped around LWJGL OpenGL bindings to make 2D Java game development easier.

In Topic: rendering

03 January 2013 - 04:46 AM



I personally use lwjgl for 3D rendering in java and Slick2D for rendering 2D. 


For both libraries there are a few tutorials on the website of lwjgl: http://lwjgl.org/wiki/index.php?title=Main_Page#Getting_started. I personally used this tutorials and must say after doing a few of them I understoot how rendering works (at least with this library). The code is pretty clean so it should be fairly simple to see what is going on.


With kind regards,