Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ - RPG

Name: Anonymous 2010-10-29 15:44

Lets program a roleplaying game together. Each post must contain either a new function or an edited version of an old function in psudocode. I will start:

int dealDamage(int hp, int damage){
    return hp - damage;
}

Name: Anonymous 2010-10-31 11:04

struct Weapon
{
    unsigned int id; // hash of the name
    int damage; // damage it does to other players
    /*
     * 0 = melee
     * 1 = projectile
     * 2 = special
     */
    char type;
    int ammo; // -1 for melee weapons
};

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List