Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (532)
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 1543 times)
0 Members and 1 Guest are viewing this topic.
Online kingroka123

JGO Knight


Medals: 26
Projects: 4
Exp: 1 year


Gamer's Helmet


« Posted 2014-02-23 01: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 01:26:50 »

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

JGO Knight


Medals: 26
Projects: 4
Exp: 1 year


Gamer's Helmet


« Reply #2 - Posted 2014-02-23 01: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 03: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?
Online kingroka123

JGO Knight


Medals: 26
Projects: 4
Exp: 1 year


Gamer's Helmet


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

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

Offline dime26

Senior Member


Medals: 2
Projects: 3
Exp: 5 years


Should traffic wardens be armed?


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

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

JGO Knight


Medals: 26
Projects: 4
Exp: 1 year


Gamer's Helmet


« Reply #6 - Posted 2014-02-25 02: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 03: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 Member


Medals: 2
Projects: 3
Exp: 5 years


Should traffic wardens be armed?


« Reply #8 - Posted 2014-02-27 02: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. "
Online kingroka123

JGO Knight


Medals: 26
Projects: 4
Exp: 1 year


Gamer's Helmet


« Reply #9 - Posted 2014-02-27 02: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
Online kingroka123

JGO Knight


Medals: 26
Projects: 4
Exp: 1 year


Gamer's Helmet


« Reply #10 - Posted 2014-02-28 04: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 08: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  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

pw (16 views)
2014-07-24 01:59:36

Riven (16 views)
2014-07-23 21:16:32

Riven (14 views)
2014-07-23 21:07:15

Riven (16 views)
2014-07-23 20:56:16

ctomni231 (43 views)
2014-07-18 06:55:21

Zero Volt (40 views)
2014-07-17 23:47:54

danieldean (32 views)
2014-07-17 23:41:23

MustardPeter (36 views)
2014-07-16 23:30:00

Cero (51 views)
2014-07-16 00:42:17

Riven (50 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!