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

#5018516 Creating a Random World for an RPG

Posted by on 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,



#5018511 How is my programming format

Posted by on 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,



#5017112 rendering

Posted by on 03 January 2013 - 08:37 AM

Correct :) best of both worlds imho

#5017053 rendering

Posted by on 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.

#5017041 rendering

Posted by on 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,



#5016831 Not sure where to start

Posted by on 02 January 2013 - 03:01 PM

What I did when I first started out was to think of a few simple games I like (like pong or snake) and then write down the elements I like most.


For example instead of making a direct copy of snake or tetris you could have a snake which you can use to form shapes then when pressing a button have the snake drop down like a tetris block. Its not really about the complexity of games but more about having fun and creating unique gameplay. Which I personally think is most important.


With kind regards,