Categories Dev Diary

WizardJam Day 1 – Humanity in a Handful of Words.

So, like a game of Munchkin, my program starts as a level 1 program with no class (heh, heh).   Unlike Munchkin, however, this game will be done in under 2 weeks.

I technically started late at night Thursday, but it was about midnight, so I’m calling it.  This was basically what I had after my first early bit of coding: takes some input, checks it  all for validity:

image.png.88ee64473c7934b7e44173fcec053672.pngLiberty is clearly a fashionable young lady, I guess.

I created what I think will be a pretty solid, and slightly expandable, function for testing input validity.  Gonna be doing it a lot and I don’t want to violate DRY:

image.png.9b138a92a3f96346a05b332c5cc9f012.png

I suppose I should be talking more about the game design, and less about the particulars of coding and how I’m trying to solve those challenges.  But that’s really all I’m thinking about at the moment.  Can’t rise above the trees to see the forest, yet.

Tonight, I implemented my first class!  Not the first class of the game, the first one I’ve ever written.  The “Sim” class, obviously enough.  (I think.  Unless I decide to change how I’m structuring it.)

Reducing all of humanity down to a dozen things.

I think this will be my solution to the Sim classes:

class NPC(Sim):
def __init__(self,first, last, age, gender,f,r,fwb):
super().__init__(first, last, age, gender)
self.befriendable = f
self.romanceable = r
self.seduceable = fwb

 

Player has a few more varied choices, but this is basically what I’m use for NPC’s:

Name, age, gender.  And then – Can you make friends?  Can you go on dates?  Can you WooHoo? (based on Sims mods, that’s the only thing people are worried about anyway.)

Currently, I’m thinking of using an 11 point scale: 0 – 10 for varying levels of friendship, and -1 for a hard “No”.  (children would be -1 romance, people the player hates could be a -1 befriendable, etc.)

I’m thinking about something similar for the player’s career tracker as well.

I will also mention that I’m writing using PyCharm, and I really like it, so if you’re wondering about the editor colors, that’s what it is.  It gives a lot of nice tips for me as a beginner.

About the author