Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


creyes

Member Since 26 Nov 2012
Offline Last Active Apr 17 2014 06:34 PM

Posts I've Made

In Topic: [Game Mechanics][Theoretical] Income/Resource Allocation in a unique, made-fo...

15 April 2014 - 09:37 AM

Capture the flag is something better suited for a fast-paced shooter.

 

I understand that point of view, but respectfully disagree. I think that a MOBA like game would create some pretty interesting CtF scenarios - CC the character that's running, drops the flag and then teamfight around it. Just because it isn't the norm doesn't mean it isn't a good idea.  

 

Regardless, I'd still like to know people's opinions on income allocation in this scenario


In Topic: PYTHON CARD GAME - objects, methods and design

03 December 2012 - 12:02 PM

First of all, I'd like to thank you @smr for all the help you gave - I learned a ton just be reading your posts. As for "picking an easy project" - that's sort of true. I definitely thought it would be easier but I'm glad it turned out to be more difficult because it's forced me to read about/I've learned a lot about oop and program design. Because of all that, I have all of the infrastructure done (can draw cards, play cards to each of the different zones etc etc)

I think my final question before I put this mini-project to bed for a while (until I learn a lot more about oop, and gui stuffs) is about data-storage. I know this is a much discussed topic but I haven't really found a solid answer. I'm pretty sure what I want to do is make an XML file similar to

[source lang="xml"]<card> <name>"Random Name"</name> <type>Ally</type> <subtype>Human Warrior</subtype> <attack>5</attack> <health>3</attack> <abilities>When this comes into play, gain 5 life</abilities></card>[/source]

But I can't seem to find any tutorials online about how to parse those into objects. I'd assume I make a prototype class before hand but my xml/python knowledge is zero. If someone can point me in the direction of a tutorial or if there's a better way to do this (sqlite maybe? then make all the class instances sql queries?) that'd be much appreciated!

In Topic: PYTHON CARD GAME - objects, methods and design

27 November 2012 - 11:04 AM

Thanks! that was incredibly helpful and exactly what I was looking for!

My follow up question is another design one with a little bit of implementation.

You bring up a good point that there should be some sort of "game state" class that everything interacts with like playing cards etc. I feel like this is also the place where EVERY RULES FUNCTION would go also (when ~ enters play do ~)... does that sound correct? In other words the "game state" object would contain all of the "rules objects (i've read that every rule should be made an object)" and then when a card "enters play" it checks the "game state" object and instantiates whatever rules that card has

thanks again, you've been a big help!

PARTNERS