Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (669)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
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  
  Melancors Cave  (Read 3446 times)
0 Members and 1 Guest are viewing this topic.
Offline Chili

Senior Newbie

Projects: 1

« Posted 2013-07-25 00:25:32 »

This 2D adventure game was started 8 years ago as a Game Maker project. I neglected it because (Game Maker sucks!! and) the whole design sucked, as it was screen-based, and the screens were small and a lot.
Recently I started getting into Java2D, and I really like the possibilities - and I can't complain about performance either. For my purposes anyway.
Within a few weeks of learning Java from scratch, I realized that this project may be plenty of fun to try, and surprisingly, everything has worked really nice so far.

After loading up the map from my old binary file, the program creates a few sets of different cave walls. Each wall part is then scanned for transparency, and polygons are created for collision detection. The cave map is large enough to get lost in, and there are eight different sets of graphics. Most of them are taken from LostGarden, but three are mainly generated by code.

I don't see much sense in uploading an exe, because you really wouldn't see much more than in the above image. I will, however share any code if interest arises. And I AM willing to include dynamic lighting in the end.

Once filled with detail, this cave will be worth exploring. For comparison, here's what this used to look like under Game Maker. The gameplay was going to be along the lines of "Sacred Armour of Antiriad". Beginning above ground, the player was supposed to have no idea of the cave's size and be amazed by all the stuff it reveals, as the journey becomes more difficult and spectacular towards the bottom.

Offline ReBirth
« Reply #1 - Posted 2013-07-25 01:04:58 »

Tinkerbell, is that you? >:O

Offline Drenius
« Reply #2 - Posted 2013-07-25 18:05:21 »

It looks quite interesting, but what is it?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Damocles
« Reply #3 - Posted 2013-07-25 18:59:14 »

Very Athmospheric.

Offline Chili

Senior Newbie

Projects: 1

« Reply #4 - Posted 2013-07-25 23:42:05 »

Would it help if I just changed her hair and dress? Just kidding. She's just a placeholder, we are keeping copyright violations off the forum.
Offline Nate

« JGO Bitwise Duke »

Medals: 166
Projects: 4
Exp: 14 years

Esoteric Software

« Reply #5 - Posted 2013-07-26 12:36:49 »

Reminds me of a boy and his blob. Smiley

Offline Chili

Senior Newbie

Projects: 1

« Reply #6 - Posted 2013-07-30 14:26:32 »

I wouldn't post here if I wasn't determined to develop this into a game you can play. At this point I am redesigning the world map, and pretty much everything in it. The appeal of this game (if any) will lie in the amount of details, or else it will get boring very quickly to run through a maze of dull walls. For example, small spiders populating the cave have a lot of code for crawling, hanging from web threads, jumping from one wall to another, and catching on fire when hit by flames. But these spiders are really only decoration and not inended as a gameplay element. There won't even be many of them to see.

It took me almost a week, just to get the wall-crawling right. I hope my speed of progress will increase, or else it will be another 8 years til finish  Emo
Offline mproncace

Senior Newbie

Medals: 1

« Reply #7 - Posted 2013-07-31 09:29:05 »

Don't get discouraged, man. Some things take longer to get down than others, and you'll find that you'll become quicker at getting things done as you gain experience and become more familiar with the language.
Offline Chili

Senior Newbie

Projects: 1

« Reply #8 - Posted 2013-08-17 17:00:22 »

My collision detection system works so far at last. I didn't think it would be this complicated really... am I the only idiot to base my 2D collisions on shape intersection checks? Because it seems fast and efficient, I may just stick with it.
Online BurntPizza

« JGO Bitwise Duke »

Medals: 479
Exp: 7 years

« Reply #9 - Posted 2013-08-17 17:10:41 »

My collision detection system works so far at last. I didn't think it would be this complicated really... am I the only idiot to base my 2D collisions on shape intersection checks? Because it seems fast and efficient, I may just stick with it.

Go with what works, if it's not the current bottleneck then it's probably fine.
Most 2D collision detection is done with simple shapes, either circles (just a distance check really) or AABBs (basically reactangles). Your method seems to be using arbitrary polygons, no? That should also be fine, as long as the number of polygons you check for collision each frame is reasonable. If you find your code checking 10,000+ polygons each frame, then I suggest looking for a culling method (like don't check polygons that are outside of the visible area, etc.).

Good luck and neat prototype so far!  Wink
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (34 views)
2016-04-18 14:18:53

KaiHH (34 views)
2016-04-18 08:35:41

KaiHH (66 views)
2016-04-15 12:43:58

theagentd (64 views)
2016-04-14 02:16:17

theagentd (72 views)
2016-04-14 02:15:43

IanParcs (66 views)
2016-04-12 03:51:16

IanParcs (35 views)
2016-04-12 03:50:03

IanParcs (32 views)
2016-04-12 03:49:54

IanParcs (27 views)
2016-04-12 03:49:52

IanParcs (36 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 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‑
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!