Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (526)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Dungeon Generator  (Read 1872 times)
0 Members and 1 Guest are viewing this topic.
Offline kingroka123

JGO Ninja


Medals: 41
Projects: 6
Exp: 1 year


Gamer's Helmet


« Posted 2014-02-23 00:22:54 »

Hey JGO,

I decided to make a really Dungeon generation thing that I think is about ready to share. Note that this is still a work-in-progress so it still looks a little bland.

How it Works:
First the system makes an array of rooms.( Rooms hold the blocks to be rendered) Then makes one single room in the middle of the map. That room (depending on the amount of exits it has) will make a more rooms which in turn will make more rooms. The random part comes from how rooms generate. When a room is generated, it finds what type of room it is (Top,Bottom,Left,Right or all of the above)then goes into the folder of the same name and picks a random map file out of that folder. That is it in a very shortened and confusing explanation.

FAQ:
Q:Do out-of-camera blocks still render?
-A: No

Q:What is that blue thing in the middle of the screen?
-A: makeshift player

Q:Will you make this into an actual playable game?
-A: Maybe

Q: How long does it take to generate a 10x10 map?
-A: way too long. The system needs much more optimization.

Q: Where did you get the algorithm from?
-A. My head. I did do research on some different ways of doing this but I wanted an algorithm that lets me quickly change what is generated in the map without change much, or any, code. So I decided on this one.

Version 1 (older)
+Initial release
Download: R1.0

Version 2 (newest)
+ more appealing block graphics
+ added "Full map View" which is activated by pressing "F1"
+ More rooms Smiley
Download: R2.0 Here

Instructions (Latest Update):
WSAD: Movement (Isometric may need to get used to it)
Left Shift: Sprint
Space: Generate new Dungeon
F1:See Full map (WARNING much lag, many slows)
Screenshots:


What a room file looks like:

Offline Drenius
« Reply #1 - Posted 2014-02-23 00:26:50 »

Looks quite nice.
What are you planning to do with this?
Offline kingroka123

JGO Ninja


Medals: 41
Projects: 6
Exp: 1 year


Gamer's Helmet


« Reply #2 - Posted 2014-02-23 00:37:49 »

I might make a game out of it or i might just improve the generation. I'm not quite sure ye since I've only been working on this for about three days

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline LiquidNitrogen
« Reply #3 - Posted 2014-02-23 02:05:45 »

perhaps you could make it so if one room is joining another room it will knock out the whole wall between them, then you will end up with some various sized and shaped rooms?

Offline kingroka123

JGO Ninja


Medals: 41
Projects: 6
Exp: 1 year


Gamer's Helmet


« Reply #4 - Posted 2014-02-23 02:10:30 »

That's a pretty good idea. I might do that

Offline dime26

Senior Devvie


Medals: 2
Projects: 3
Exp: 5 years


Should traffic wardens be armed?


« Reply #5 - Posted 2014-02-25 01:29:42 »

This is really neat, I would like to see the logic or approach you took in pseudo code. Great job.
Offline kingroka123

JGO Ninja


Medals: 41
Projects: 6
Exp: 1 year


Gamer's Helmet


« Reply #6 - Posted 2014-02-25 01:39:05 »

I decided to release a little demo basically showing what a game might look like inside of a dungeon. It is no where near a game yet, but this is what it might look like.

Downloads Above  Pointing

It runs at 60 fps at most times but there are random lag spikes which I need to fix, but other than that, have at it.

Instructions:
WSAD: Movement (Isometric may need to get used to it)
Left Shift: Sprint
Space: Generate new Dungeon

PS:collision and player:block draw order is not added yet
PSS: The loading bar will probably never get to 100%, this is semi intentional as it allows for more unique dungeons (but also makes them kind-of unpredictable)

Offline LiquidNitrogen
« Reply #7 - Posted 2014-02-25 02:07:27 »

i found this a few weeks ago which looked interesting http://dungeonmaker.sourceforge.net/DM2_Manual/index.html it might give you some more ideas or leads.

Offline dime26

Senior Devvie


Medals: 2
Projects: 3
Exp: 5 years


Should traffic wardens be armed?


« Reply #8 - Posted 2014-02-27 01:00:23 »


Download Here

Does not work for me:

"Error (403)
It seems you don't belong here! You should probably sign in. Check out our Help Center and forums for help, or head back to home. "
Offline kingroka123

JGO Ninja


Medals: 41
Projects: 6
Exp: 1 year


Gamer's Helmet


« Reply #9 - Posted 2014-02-27 01:16:41 »

Okay, I have updated the original posts withe new Download links

Here they are:
Download Here or Here


Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kingroka123

JGO Ninja


Medals: 41
Projects: 6
Exp: 1 year


Gamer's Helmet


« Reply #10 - Posted 2014-02-28 03:13:55 »

New update:
+ more appealing block graphics
+ added "Full map View" which is activated by pressing "F1"
+ More rooms Smiley

Download Version 2.0 Here


Offline StumpyStrust
« Reply #11 - Posted 2014-02-28 07:46:21 »

Super slow when viewing large map and I do not have a crap computer. Fixed function?

Try displaylists/vbo/some form of batching. Heck rendering it to a texture then rendering that texture may work

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

toopeicgaming1999 (72 views)
2014-11-26 15:22:04

toopeicgaming1999 (61 views)
2014-11-26 15:20:36

toopeicgaming1999 (15 views)
2014-11-26 15:20:08

SHC (29 views)
2014-11-25 12:00:59

SHC (27 views)
2014-11-25 11:53:45

Norakomi (32 views)
2014-11-25 11:26:43

Gibbo3771 (27 views)
2014-11-24 19:59:16

trollwarrior1 (40 views)
2014-11-22 12:13:56

xFryIx (78 views)
2014-11-13 12:34:49

digdugdiggy (56 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!