Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (524)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
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  
  Here be Dragn  (Read 2299 times)
0 Members and 1 Guest are viewing this topic.
Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Posted 2013-01-01 19:39:17 »

This is the ongoing development of my LD25 game that I submitted lately, which is going to turn into a development platform for something that actually works and is complete. I found this forum while hunting solutions to common problems, such as a gc every 10 seconds, ConcurrentModificationExceptions, and java Clip chaos. These issues are tempting me away from java, though the posts I've read here have helped change my perception of how stuff can be written differently and still work.



https://www.dropbox.com/s/lisuyi2qx4nkj7l/dragnsv5.jar
Online Jimmt
« League of Dukes »

JGO Kernel


Medals: 138
Projects: 4
Exp: 3 years



« Reply #1 - Posted 2013-01-02 05:36:39 »

Very cool, good work on the rotation of the dragon's body, makes a unique evasion experience.
I would recommend some sort of feed back when killing an enemy (a blood spurt, etc.)
Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Reply #2 - Posted 2013-01-03 01:05:51 »

I've added a small particle system for blood. It homes in on another object moving away in a line, so the motion of the particle is vaguely curved. This is cool because the particle system can start in a random orientation. I want to make it stamp graphics on the background at some point.

I worked hours on the Clip stuff to get it working in Eclipse but when I export it to a jar I now have no music because of stupid mark/reset issues from the zip inputstream.. Which incidentally AudioClip handled perfectly fine! I'm so annoyed!  Angry I think I should just convert it back and ditch it. Its Java, it should work and it isnt which is bothering me. I've tried loading just a resource instead of a stream, loading a stream and wrapping it in a buffered reader, and I was going to try a byte array stream, though I couldnt figure out how many bytes to stick in the blank array to get the raw data.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline StumpyStrust
« Reply #3 - Posted 2013-01-03 01:38:10 »

Try TinySound on here. I use it and it works wonders.

Starting is one line

Loading music is one line

Playing music is one like

Supports .ogg

And if you arn't loading music it is amazingly fast.

Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Reply #4 - Posted 2013-01-03 20:56:04 »

I just found out that I was experimenting with the resource url loader in my music class, but not my clip handling class and the error was happening in the first so the second wasnt being called and thats where I thought the error was.. :S

Thanks for the hint to try TinySound. It seems to simplify the interfaces quite a bit.. It did not like my au's though it might be worth going back to it for some high quality ogg later.

Soooo... I spent almost two days on it and apart from some minor pretties and music loop (finally) it's mostly the same. :/

https://www.dropbox.com/s/dtizdh216gpilxz/dragns5a10.jar

Next stop light things. I read an article about it on here which sounded cool. http://www.java-gaming.org/topics/realistic-lighting-in-a-2d-game/20161/view.html

Then I need to seperate my image string identifier into an object identifier and a current image frame identifier so I can do both collisions and animation.

Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Reply #5 - Posted 2013-01-06 14:10:10 »

Been working on some of the code behind the scenes since last time.. Mainly:
  • Experimented with lighting and decided it looked better as a shadow layer, so did that instead.
  • Use real double buffering with a buffer strategy.
  • Changed object type identifier to static int types instead of using the image string name field. This is a bit quicker and means that I can have an animator class which switches the correct image out to animate.
  • Experimented with swapping out the gamestate object for dragon death, it works but needs to be delayed with a "you broke your dragon" animation.. I could always switch out with a different gamestate for a highscore/continue level or reinitialise a different field of battle for staged play.

Stuff I want to do:
  • Add animation.
  • Make my AIs state based. The reason for this is that I want an event when the behavior switches from one state to another, not all the time.
  • Finish Warrior attack.
  • Maybe add another character or dragon breath.
  • Declare complete and move on to something else.
Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Reply #6 - Posted 2013-01-12 15:38:00 »

Build for last post details:

https://www.dropbox.com/s/llbuqg5otlcjmf8/dragns5a11.jar

I'd like to work on animation though I dont feel like resources at the moment, and I've got another idea I'd like to work on.
Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Reply #7 - Posted 2013-01-22 22:37:24 »

I think I've got to the point in this project where I dont want to play anymore, and as I usually put a lot of gameplay hours into testing, development isnt as interesting.

Last alterations:
  • Dragged out the dragon death. This could do with a fade to black, or maybe a greyed out screen. Sad music. Something!
  • Made the AI State based. This means that when I switch between states I can play a sound effect or maybe change other things. This would be more relevant if there was a 3d animation on the objects or something other than distance to target.
  • I made the warrior AI use the statebased method and tweaked it. I also added a poor signal for the sword attack (its a modified arrow that returns and it vanishes when hit).

https://www.dropbox.com/s/9ddsy8euhqo3u82/dragns6a2.jar
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 (57 views)
2014-11-26 15:22:04

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

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

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

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

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

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

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

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

digdugdiggy (52 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!