Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (546)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  "Dungeon Man", A dungeon crawling adventure in Java with OpenGL (Alpha 0.1.0)  (Read 6976 times)
0 Members and 1 Guest are viewing this topic.
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Posted 2013-02-03 20:47:23 »



*NOTE*
I am not developing this project any further, while it was a lot of fun to code and I learned a lot from it, I have decided to drop this project and work on others, the file will still be available for download to whoever wants to try (but keep in mind, its only my first project Cheesy)
A special Thanks to cheatsguy for those awesome custom textures  Wink


Download : http://www.mediafire.com/download.php?8qji2shodjxi5fy
NOTE: Refer to Instructions.txt included in the package for instructions and controls

So this is my second proper attempt at creating a somewhat playable game (my first attempt was abandoned as a result of horrible coding, and an awful structure to the code that just wasn't worth going back to).

'Dungeon Man' (name may be changed in future) is essentially a dungeon crawling game similar to 'Wolfenstien 3D', 'Doom' or Notch's 'Prelude Of The Chambered'. I am doing this project as sort of a 'learning curve' for me with game development.

I may make a full release of Dungeon Man sometime in the future, or I might eventually scrap it and start a new project.

I will try, as best I can to update this thread as I develop this game, I would be happy to share any information about the coding of this game to anyone who needs it. I would really appreciate any suggestions or criticism that anyone has, and I would also be happy to answer any questions that you may have.

Version Alpha 0.1.2:
  • Added support for levels of any size (not just of size 8x8)
  • Made level editor interface more user-friendly
  • Made level select on startup interface more user-friendly
  • Added an extra button 'New' in the editor to create a new level with new dimensions

Version Alpha 0.1.1:
  • Added level editor(Only levels of size 8*8 are supported as of now)
  • Released the game as a zip file including a runnable .exe file
  • Added ability to choose level on startup
  • Scrapped PNG parser for level data

Version Alpha 0.1.0:
  • Started Development
  • Added basic level geometry (walls, floor)
  • Added camera movement and input
  • Added Mini-Map (Very early stages)
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #1 - Posted 2013-02-03 20:48:47 »

Those minecraft textures Grin
What library are you using? And what's up with the white tile thing?
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #2 - Posted 2013-02-03 21:06:43 »

What library are you using? And what's up with the white tile thing?

I'd take a guess with "map". Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jonjava
« Reply #3 - Posted 2013-02-03 21:44:22 »

Looks good I like it!

Offline cheatsguy

Junior Member


Medals: 3


Gamer turned Pixel Artist turned Programmer


« Reply #4 - Posted 2013-02-04 14:23:23 »

Looks cool, can't wait for a demo. I'd be willing to make a few textures if you'd like.

Busy between school, work, life, games, programming and general screwing around.
If you'd like some pixel art for your game, send me a PM, i'll see what I can do.
Current project: http://elementalwarblog.wordpress.com/
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #5 - Posted 2013-02-04 16:50:37 »

Wow, thanks for the interest guys.

I am using the LWJGL library. I couldn't really be arsed making my own textures this early on, maybe i'll make some in the future if this game does sort of go somewhere. A Demo may be released later on, i'll focus on that as soon as the game gets somewhat playable (walking, weapons ect. The game consists of 'no-clipping around a level at this stage). I will also try to put up a video on YouTube soon.

PS: I am also using twl's PNGDecoder to decode PNG files into ByteBuffers which are then readible by OpenGL.

(Link for LWJGL Download Page: http://lwjgl.com/download.php)
(Direct link for twl's PNGDecoder: http://twl.l33tlabs.org/dist/PNGDecoder.jar)

Edit: Also, if any of you guys are budding game programmers (like me) and you would like to know how I made any part of this game, feel free to ask and I'll be happy to help you out
Offline cheatsguy

Junior Member


Medals: 3


Gamer turned Pixel Artist turned Programmer


« Reply #6 - Posted 2013-02-04 17:07:52 »

Already got the tiles done Tongue here they are:

Used an approximation of the NES pallete, should be easy to recolor if you ever add new areas.

Also, this might belong more in the 'WIP games' forum.

Busy between school, work, life, games, programming and general screwing around.
If you'd like some pixel art for your game, send me a PM, i'll see what I can do.
Current project: http://elementalwarblog.wordpress.com/
Offline Vermeer

JGO Coder


Medals: 16



« Reply #7 - Posted 2013-02-04 21:34:13 »

This looks great. I'll keep looking how this is going as I tried something similar myself.  Have you seen delver that looks a good game that may be of interest to you.
I found the lighting hardest thing to do.  

Looks good so far tho!
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #8 - Posted 2013-02-04 21:42:18 »

Already got the tiles done Tongue here they are:

Used an approximation of the NES pallete, should be easy to recolor if you ever add new areas.

Wow, those are some great tiles, did you make them yourself?
I'll try and implement these tiles into the game tomorrow, and I'll post a picture of them in-game tomorrow.

Quote
Also, this might belong more in the 'WIP games' forum.

Yes you're probably right, I'll try and post this in 'WIP Games' instead sometime tomorrow (in case anyone is looking for it or can't find it, I'll use the same title as this thread)
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #9 - Posted 2013-02-04 21:55:33 »

This looks great. I'll keep looking how this is going as I tried something similar myself.  Have you seen delver that looks a good game that may be of interest to you.
I found the lighting hardest thing to do.  

Looks good so far tho!

Thank's for the interest man.
The lighting was actually pretty easy, here's what i did:

I used this to make the 'Sky' black with a small tint of Blue.
1  
glClearColor(0, 0, 0.1f, 0);


I used these parameters for the fog effect:
1  
2  
3  
4  
5  
glEnable(GL_FOG);//Enables fog effect

glFogf(GL_FOG_DENSITY, 0.025f);//Gives the perameter GL_FOG_DENSITY a value of 0.025f (the 'f' stands for floating point variable)
glFogf(GL_FOG_START, 1);//Gives the perameter GL_FOG_START a value of 1
glFogf(GL_FOG_END, 100);//Gives the perameter GL_FOG_END a value of 100

And that's it, no fancy lighting was used just a few clever tricks with fog and glClearColor.

PS: I took a look at delver, it looks pretty impressive and I wish the best for the developers. I also believe that Delver is on Steam Greenlight, if you do have a moment, could you please take the time to support it's developers and give it a 'Thumbs Up'  Wink
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cheatsguy

Junior Member


Medals: 3


Gamer turned Pixel Artist turned Programmer


« Reply #10 - Posted 2013-02-04 21:57:56 »

Wow, those are some great tiles, did you make them yourself?

yeah, all by me. Cobbled walls and wooden floors seem to be the only thing I can really easily make Tongue if you ever need more, don't be afriad to comtact me, and i'll whip up a few more Smiley

Busy between school, work, life, games, programming and general screwing around.
If you'd like some pixel art for your game, send me a PM, i'll see what I can do.
Current project: http://elementalwarblog.wordpress.com/
Offline Vermeer

JGO Coder


Medals: 16



« Reply #11 - Posted 2013-02-04 22:04:14 »

Yea, I tried to have lights on the walls, but it caused me so many problems I switched to jmonkey to implement  that. I'll try to find a screenshot tomorrow as I used the same wood texture for my walls!

I hope you keep working on it! It's inspiring to see others have a go at this too.
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #12 - Posted 2013-02-04 22:05:40 »

Wow this is awesome! Can I ask you where you learned LWJGL? I want to make a game similar to yours, but Its hard to learn opengl! Also, do you use VBOs to render your level?

Offline Oskuro

JGO Knight


Medals: 39
Exp: 6 years


Coding in Style


« Reply #13 - Posted 2013-02-05 11:10:46 »

Why Dungeon Man?

Why not Dungeon Girl, or Dungeon Lady, or Dungeon Asexual Creature Of Indeterminate Age (DACIA)?

 Grin

Offline cheatsguy

Junior Member


Medals: 3


Gamer turned Pixel Artist turned Programmer


« Reply #14 - Posted 2013-02-05 12:53:43 »

Dacia sounds like a good name, actually. Maybe he'll change it, he did say it was only a work in progress.

Busy between school, work, life, games, programming and general screwing around.
If you'd like some pixel art for your game, send me a PM, i'll see what I can do.
Current project: http://elementalwarblog.wordpress.com/
Offline Oskuro

JGO Knight


Medals: 39
Exp: 6 years


Coding in Style


« Reply #15 - Posted 2013-02-05 14:10:15 »

I was kidding, of course, but Dacia does sound like a neat name. Smiley

Offline Varkas
« Reply #16 - Posted 2013-02-05 14:14:22 »

Dacia is a car brand: http://www.dacia.de/home.php

if (error) throw new Brick(); // Blog (german): http://gedankenweber.wordpress.com
Offline Oskuro

JGO Knight


Medals: 39
Exp: 6 years


Coding in Style


« Reply #17 - Posted 2013-02-05 16:45:58 »

Figures!

Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #18 - Posted 2013-02-05 19:41:49 »

Here's what it looks like with your textures, They're awesome Grin



I may use the other ones in future if I do add any thing else other than walls and floors, with full credit given to you for the textures of course Wink
Offline cheatsguy

Junior Member


Medals: 3


Gamer turned Pixel Artist turned Programmer


« Reply #19 - Posted 2013-02-05 21:02:02 »

They do look pretty neat! Any new content since yesterday?

Busy between school, work, life, games, programming and general screwing around.
If you'd like some pixel art for your game, send me a PM, i'll see what I can do.
Current project: http://elementalwarblog.wordpress.com/
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #20 - Posted 2013-02-05 21:27:30 »

 Angry
I've been trying to make parser that would convert PNG files into three-dimensional arrays (The first two dimensions would be the pixels x and y coords, and the third dimension would be that pixel's color channel (either R, G, B or A). I've had no luck yet and its getting really frustrating and confusing.M aybe some of you guys would have any suggestions for maybe a simpler method of doing this? or if anyone could tell me what i'm doing wrong.

Thanks in advance.

PS: I am still in Secondary School (High School) this is the reason why I may be slow to work on this project, but I do try my best to put some time in every day.
Offline cheatsguy

Junior Member


Medals: 3


Gamer turned Pixel Artist turned Programmer


« Reply #21 - Posted 2013-02-06 00:31:27 »

The png converter is way over my head, so good luck on that  Clueless .

As for being in highschool, so are plenty of people here. Good to know there are more of us getting into games, and I hope this project comes to fruition! I've experienced how difficult it is to keep up game development and school, so good job on that one Smiley

Busy between school, work, life, games, programming and general screwing around.
If you'd like some pixel art for your game, send me a PM, i'll see what I can do.
Current project: http://elementalwarblog.wordpress.com/
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #22 - Posted 2013-02-06 22:00:16 »

Quote
Wow this is awesome! Can I ask you where you learned LWJGL? I want to make a game similar to yours, but Its hard to learn opengl! Also, do you use VBOs to render your level?

I learned OpenGL from "TheCodingUniverse" on YouTube, you should check him out, his tutorials are pretty good. I'm also learning from pdf's of famous OpenGL books "OpenGL Superbible" and "OpenGL Programming Guide" these are really good books that cover beginner stuff as well as advenced functions of OpenGL.
But keep in mind that OpenGL can only do so much, a lot of making a game has to do with the programmers ability to solve problems, and a very creative mind is required. Using OpenGL isn't all that difficult, the hard part is solving problems yourself.

PS: Practise makes perfect Wink Also, I am using Display Lists for rendering.
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #23 - Posted 2013-02-09 23:50:24 »

Sorry for the lack of posting guys, I have been VERY sick over the last few days and I could not find the time nor energy to make new content, I do have an update though. I will try and release Alpha 0.1.1 soon, it will include a parser to read data from an XML file and use this data for the placement of walls in the level (I have decided to scrap the PNG decoder idea as it was too complex and too much hassle). As soon as the new update comes out I will work on making the game downloadable as a playable demo, or maybe an applet.

If anyone knows of some sort of method for putting an applet on a site for free, I would really appreciate it if could let me know (I dont want to be spending money monthly on getting a website hosted) if there was any website hosting companies that did free plans (very little storage ect.) that would be great!
Offline Sammidysam
« Reply #24 - Posted 2013-02-10 16:21:31 »

I feel like having just a download and not an applet is easier.  Many browsers disable Java these days anyway.  Mediafire.com is pretty easy to put in a .zip for people to download.  It's free and I've put a lot of space of files on there for people to download.
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #25 - Posted 2013-02-16 16:23:41 »



Finally, Dungeon Man is available for download Grin (Download Here: http://www.mediafire.com/?ibsxi5m8jkpcd9q)
Dungeon man Alpha 0.1.1 is available for download and includes a level editor(switch between editing and playing by pressing Backspace)

Upon opening the game, you will be asked to enter the name of a level to play, you can choose between 'maze' and 'smiley' by default, and you can make your own levels later on in the level editor.

NOTE: you MUST enter the level name correctly, or else an error will occur and the game will close without warning (Refer to Instructions.txt for more information)

Have fun, and please do not hesitate to make any suggestions or critisism of the game, it would really help me a lot

PS: If you are a budding game dev (like me) and want to know how I went about coding any part of the game, feel free to ask me and I'll try and help you out
Offline cheatsguy

Junior Member


Medals: 3


Gamer turned Pixel Artist turned Programmer


« Reply #26 - Posted 2013-02-18 13:53:57 »

Just got a chance to test it out, really nice so far! Didn't get time to test the level editor. Feels like when I used the citadel hack for goldeneye 64, you just walked all over the place Smiley for what has been implemented so far, this is looking very nice! Keep up the good work!

Busy between school, work, life, games, programming and general screwing around.
If you'd like some pixel art for your game, send me a PM, i'll see what I can do.
Current project: http://elementalwarblog.wordpress.com/
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #27 - Posted 2013-02-23 18:33:26 »

UPDATE:
Currently working on Version Alpha 0.1.2 (yaaay Grin)
This will basically add support for levels that are not of size 8*8, the update will also have a mini-map scaled according to the size of the map, as well as a scaled overview of the level in editor mode.

Again thanks for the interest guys (1500+ views wow!), all criticism and/or suggestions are well appreciated
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #28 - Posted 2013-02-25 23:01:50 »

0.1.2 is officially out Grin, download it here: http://www.mediafire.com/?8qji2shodjxi5fy
Basically I just made the editor interface a little more user-friendly, and also added support for levels that were not exactly 8x8 in size.

Enjoy, and as always, just ask in the replies if you would like to know any of my source code, I'd be happy to help Wink
Offline Mockle

Junior Member


Medals: 2
Projects: 2



« Reply #29 - Posted 2013-04-07 18:10:56 »

I would just like to announce that I have dropped this project (that would explain the lack of updates)
As I said before, I intended this project to be a learning curve for me and games programming, and I did learn a lot from it.
I may pick up this project again in the future, but to be honest, it is highly unlikely that I will do so.
Thanks a lot for the support and interest, and a special thanks to cheatsguy (http://www.java-gaming.org/index.php?action=profile;u=146276) for the textures.
Pages: [1] 2
  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.

atombrot (23 views)
2014-08-19 09:29:53

Tekkerue (22 views)
2014-08-16 06:45:27

Tekkerue (21 views)
2014-08-16 06:22:17

Tekkerue (12 views)
2014-08-16 06:20:21

Tekkerue (19 views)
2014-08-16 06:12:11

Rayexar (57 views)
2014-08-11 02:49:23

BurntPizza (37 views)
2014-08-09 21:09:32

BurntPizza (29 views)
2014-08-08 02:01:56

Norakomi (36 views)
2014-08-06 19:49:38

BurntPizza (66 views)
2014-08-03 02:57:17
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!