Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


ChaoSXDemon

Member Since 26 Apr 2011
Offline Last Active Jun 18 2012 09:53 PM

Topics I've Started

[Java] Youtube Lessons

31 May 2012 - 12:34 PM

Hey guys, I just made a new channel dedicated to Computer Science. I am starting with Java since it is nice and clean. I will be including other languages and things like OpenGL and/or DirectX so stay tuned. Thanks :)

Channel: http://www.youtube.com/user/DeepComputerInsights

Java RPG Stats System

28 May 2012 - 07:58 PM

I have been thinking this for a while and I'm not sure if there is already a solution out there. I did not find anything from Google. What I am wondering is how can I create a system that is easy to use for RPG games that uses stats for characters. It is not simply "Str", "Dex" and use some number to scale "attack" or "attack speed", but instead, a system that would nicely integrate effects into the game that is EASILY EXTENDABLE. Effects are things such as "decrease 10 hp per frame" or "increase 1.5 mana per frame". I'm thinking that each Entity in the game would keep at least two list of effects. Each effect maybe once time applied or per frame applied. During each frame, we simply loop through these lists and apply each effect. We remove the ones that are applied once and keep the ones that are applied over time. Anyone got any good polymorphic object oriented design?

Thanks,
CXD

Getting Resources in a Jar File

06 February 2012 - 05:33 PM

While loading any resources in a developing environment (ie run from Eclipse or BlueJ or w/e you use to edit your Java including CMD / Shell), it is easy. You can use relative path or absolute path. However, it seems when I export my game into a jar file, the path is not returned properly even if I call getClass().getResource("/").getPath(). I am GUESSING that it has to do with the fact that my classes (.java files) are inside packages. Specifically, they are in "sf/core/" folder (package sf.core). I have been searching (Google) and have yet to find any solutions. The getResource() always return null and calling getPath() will cause a NullPointerException. Anyone know of this problem?

Thanks,
CXD

PARTNERS