Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1074125 Posts in 44036 Topics- by 36039 Members - Latest Member: maimeo

December 22, 2014, 04:02:48 AM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)Procedural Generation and Java
Pages: [1]
Print
Author Topic: Procedural Generation and Java  (Read 634 times)
Gravity Games
Level 1
*


Jack of all trades.


View Profile Email
« on: November 28, 2012, 02:39:19 PM »

Ever since I played MicroVentures (Link for shameless promotion: http://forums.tigsource.com/index.php?topic=29796.0)I've been interested in procedural generation, but I've never had any sort of idea of how to start. Have you guys implemented procedural generation before in Java, and if so, how? (No, I don't want code to copy and paste into a project, I just want some ideas on how I should go about doing this...)
Logged

When I make games, I don't take risks. Everything I put my heart into is a guaranteed success.
Evan Balster
Level 10
*****


I live in this head.


View Profile WWW Email
« Reply #1 on: November 28, 2012, 04:35:23 PM »

Procedural generation in Java isn't really any different from in other languages, with the one possible exception being that it's much easier to implement graph-like data structures with reference loops.  You'd do well to look for some general tutorials, regardless of the language.
Logged

Creativity births expression.  Curiosity births exploration.
Our work is as soil to these seeds; our art is what grows from them...


Wreath, SoundSelf, Infinite Blank, Cave Story+, <plaid/audio>
Muz
Level 10
*****



View Profile Email
« Reply #2 on: November 28, 2012, 08:15:54 PM »

I've wondered if you could create a self-programming thing in java. Something that extends itself and tweaks little features. But probably tangential to the topic.
Logged
Evan Balster
Level 10
*****


I live in this head.


View Profile WWW Email
« Reply #3 on: November 28, 2012, 08:24:07 PM »

Java's metaprogramming features are weak; something like a scripting language would be better-suited to that.  Lisp is extraordinarily useful for self-rewriting code from what I hear.

Totally tangental though, yeah.  <_<
Logged

Creativity births expression.  Curiosity births exploration.
Our work is as soil to these seeds; our art is what grows from them...


Wreath, SoundSelf, Infinite Blank, Cave Story+, <plaid/audio>
powly
Level 3
***



View Profile WWW
« Reply #4 on: November 28, 2012, 10:41:08 PM »

Procedural generation is not a generall process where we could just show you some code and that'd be how it works every time - there are some approaches that are suited to many problems but also very specific ones. There's a load of work on heightmap generation, for example. The way you probably want to go is first think what you want to achieve (tilemap generation? name generation? robot design generation?), then think how to achieve this ("i'll make rooms at random places and somehow connect them") and then implement it. The last two are usually at least partly overlapping processes, since you'll have lots of ideas and corrections when actually coding it.
Logged
st33d
Guest
« Reply #5 on: November 29, 2012, 03:15:55 AM »

You can find a lot of information in the Braving Procedural Generation thread, including showcases of various methods as the discussion progresses:

http://forums.tigsource.com/index.php?topic=5174.0

and there's the PCG wiki:

http://pcg.wikidot.com/
Logged
dr.crow
Level 0
***



View Profile
« Reply #6 on: November 29, 2012, 07:28:28 AM »

You can find a lot of information in the Braving Procedural Generation thread, including showcases of various methods as the discussion progresses:

http://forums.tigsource.com/index.php?topic=5174.0
Sadly many of the links are dead by now, though.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic