Author Topic: Dragon Mage  (Read 6763 times)

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Dragon Mage
« on: December 08, 2010, 11:27:15 pm »
Dragon Mage

I've started a new project because this one has a name now.  It's also a new link.
This has some new graphics and context sensitive movement.  There are still things to do to do but at least the context sensitive movement mostly works except for defend.  The monsters die, but the players don't yet.  There's no health bar.  I need more spells and and I'll probably just use one attack for the dragon to make the game run faster so there will only be choices for spells.
click here->Fireside 7 Games<-

Offline paulscode

  • double
  • *****
  • Posts: 863
    • View Profile
    • PaulsCode.Com
Re: Dragon Mage
« Reply #1 on: December 09, 2010, 12:53:40 am »
It's coming along nicely.  I got a random ArrayIndexOutOfBoundsException while playing (it didn't crash the game or anything, just showed up in the console.  Here is a chunk of the output around when the exception occurred:
Code: [Select]
loop number 0   12,0
loop number 1   11,0
loop number 2   10,0
loop number 3   9,0
testPathShort is true
entering chooseEnemy
hit =  5.565666579945678
player hit  0
near found
leaving changeplayer
attack clicked
hit =  22.096750349835162
Change player distance =3
leaving changeplayer
attack clicked
hit =  23.72917188413617
enemies turn
leaving changeplayer
leaving changeplayer
Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(Unknown Source)
at org.me.hello.WebPlayer.checkForObject(WebPlayer.java:1088)
at org.me.hello.WebPlayer.mouseMoved(WebPlayer.java:550)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
girl pos = 9,0map 3
eye pos = 13,1map 4
start 13,1
end 9,0
loop number 0   12,0
loop number 1   11,0
loop number 2   10,0
loop number 3   9,0
testPathShort is true
entering chooseEnemy
hit =  20.8883898288259
player hit  0
near found
leaving changeplayer

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Dragon Mage
« Reply #2 on: December 09, 2010, 01:18:33 am »
OK thanks.  I thought I got that, but apparently not.  ;D
click here->Fireside 7 Games<-

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Dragon Mage
« Reply #3 on: December 29, 2010, 08:42:20 pm »
Albeit it's actually "only" a new name for that "strategy game", i decided to add it to the projects page as a new project.

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Dragon Mage
« Reply #4 on: December 29, 2010, 11:16:39 pm »
OK, thanks.  It is sort of new since there was such a long hiatus, and the code has needed to be reworked along with graphics. I put a link back but it won't mean much until I get far enough to post it on my index page as a playable game. 
click here->Fireside 7 Games<-

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Dragon Mage
« Reply #5 on: January 06, 2011, 10:12:03 pm »
Update.  There are more monsters(same). The dragon dies but the girl doesn't yet.  Some test sounds done with AudioClip.  Everything has a 4 space range.  There's a health spell along with weaken.  The choice for the dragon attack was eliminated and it breathes fire if it's one space away from an enemy.  Comments and crits are welcome.   A monster won't attack if it's behind a tree, in case anyone is wondering about that.  I'll probably make modifications to that.
« Last Edit: January 06, 2011, 10:15:02 pm by fireside »
click here->Fireside 7 Games<-