May 24, 2022, 03:46:19 PM MT
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Welcome to Hero Mages!
Home
Help
Search
Calendar
Login
Register
Hero Mages
>
Developer Diaries
>
Ask a Developer
>
new characters
Pages: [
1
]
Print
Author
Topic: new characters (Read 4164 times)
maltross
Posts: 56
new characters
«
on:
August 31, 2010, 02:02:49 PM MT »
how much time does it take to code a new character for the game?
Logged
Ross Przybylski
Administrator
Posts: 1051
D20Studios, LLC
Re: new characters
«
Reply #1 on:
September 01, 2010, 10:00:00 AM MT »
That's an excellent question, maltross. The time it takes to code a new character will vary greatly upon that character's abilities and whether or not they mesh with existing game rules.
I've programmed the game such that characters themselves are separate from abilities. So the character code is basically just a text file that defines the basic attributes (Strength, Defense, Life), which abilities the character possesses, the name of the character, and the names of the character's art and sound files. Changes to this file can be made in a manner of seconds.
Coding of the abilities is where the development time comes in. If the ability is one that can be constructed using variations of existing abilities, then it can be constructed quickly. If the ability introduces a new rule concept - for instance- the Minotaur's charge ability that relies on directional facing - the coding can take significantly longer.
Logged
Manager of D20Studios, LLC
maltross
Posts: 56
Re: new characters
«
Reply #2 on:
September 01, 2010, 11:18:54 AM MT »
interesting. I'm taking an intro to object oriented programming atm, and think i would like to take the flash programming class as well.
Logged
Ross Przybylski
Administrator
Posts: 1051
D20Studios, LLC
Re: new characters
«
Reply #3 on:
September 01, 2010, 11:34:13 AM MT »
That's great - I highly recommend object oriented programming skills for game developers. This is why my characters are so easy to work with at high level. Each character class extends a previously created object that defines the base level methods and properties. For instance, most Hero Mages objects start with the base class of HM_GridObject and move up in complexity to HM_Attacker, HM_Unit, HM_Guardian, etc. until the upper most level of the custom character class itself.
Likewise, actions within the game are built from pre-existing classes, HM_TargetingAction -> HM_Spell -> HM_AttackSpell -> HM_Blizzard
Not only does this make future additions much easier to implement, it also means that if I need to make a global change to all attack spells, I can do so in a single location and have the new traits carried to all the child classes.
Logged
Manager of D20Studios, LLC
Pages: [
1
]
Print
Jump to:
Please select a destination:
-----------------------------
Hero Mages Community Boards
-----------------------------
=> Announcements
=> Battle Blog
=> Bugs & Support
=> Events
=> Feature Requests
=> Game Balance
=> General Chat
=> Meeting Place
=> Strategy & Tactics
=> Suggestions & Comments
-----------------------------
Developer Diaries
-----------------------------
=> Ask a Developer
=> Game Design
=> Starting a Game Company
=> Upcoming Features
-----------------------------
Off Topic
-----------------------------
=> General Discussion
Home
Announcements
Version Log
About the Game
Background Story
How to Play
Heroes & Creatures
Expandable Content
Magical Spells
Videos
F.A.Q.
Acknowledgements
Contact Us
Forums
Resources
Loading...