Recent posts by ptdgames on Kongregate

Topic: Game Programming / Can someone explain to me why this works?

This post has been removed by an administrator or moderator
 

Topic: Game Programming / How Others Do It #2

This post has been removed by an administrator or moderator
 
Flag Post

Topic: Kongregate / Konguering Kongregate

You gotta play through a LOT of crappy games to get every badge on the site. My sympathies go out to you.

 
Flag Post

Topic: Game Programming / Software Architecture question for a Collectible Card Game

Just add one when they do:

enum abilities = {
FirstStrike = 1,
Banding = 2,
SharpTeeth = 4,
… etc …
Just keep adding to this list
}

Sorry for my C++/AS mashup, I’m coding in 3 different environments right now.

 
Flag Post

Topic: Game Programming / Yet another is this legal thread

Sound effects these days cost a buck or two for unlimited use. Just go buy them! www.sounddogs.com or google for “sound effect library”

 
Flag Post

Topic: Game Programming / Is this legal?

Catchy phrases like “are u mad bro” are most often protected under Trademark law, not copyright. Do a search here and see if they’ve registered it: www.uspto.gov

 
Flag Post

Topic: Game Programming / Software Architecture question for a Collectible Card Game

I don’t think you need to go crazy with sub classes and such. For instance, take MtG. You can define a card with (more or less) these fields:

name, image, etc.
card type: land, creature, artifact
card color: blue, white, red, green, black, artifact(?)
power/toughness:
abilities: landwalk, first strike, etc.
special proc: call this function for really odd cards that have a crazy ability
current status: ready, tapped, flipped, in deck, in hand

I don’t think you’ll get any benefit out of doing something like:
ShivanDragon → CreatureCard → BaseCard

because you’re going to end up with 3,000 sub-classes at some point. Keep it simple!

 
Flag Post

Topic: Kongregate / "Hey! Are you running an ad blocker?"

Why yes, yes I am. How nice of your game to ask.

 
Flag Post

Topic: Game Programming / AS2 Homing Missile

var angleToTarget:Number = math.atan2(myY – targetY, myX – targetX);
myX += mySpeed * math.cos(angleToTarget);
myY += mySpeed * math.sin(angleToTarget);

I might have reversed X and Y in the first line, you’ll have to test it and see.