Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
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 2063 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

Online 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 Kernel


Medals: 149
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
« 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.

 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (43 views)
2014-10-16 15:22:06

Norakomi (33 views)
2014-10-16 15:20:20

lcass (37 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (66 views)
2014-10-14 00:35:47

TehJavaDev (59 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45

BurntPizza (86 views)
2014-10-11 22:30:10
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!