Monthly Archives: June 2008

Git tip: Fix a mistake in a previous commit

Here’s a handy tip that shows off one of the little conveniences that makes me love Git. In Subversion, if you made a mistake in one of your commits — too bad. At best, you might be able to edit the revision log, if your repository was configured to allow that (Sourceforge repositories aren’t). In [...]

Posted in Tips | Tagged | 6 Comments

Revision numbers considered harmful

When using Subversion for vertion control, I was always conscious of revision numbers when committing. It was as if there was a limited supply of revision numbers, and I didn’t want to waste them making tiny commits. So, I’d often bend over backwards to make sure the change was significant enough to be “commit-worthy”. It’s [...]

Posted in Misc | Tagged , | 2 Comments

Rubyweekend Post-mortem

What went right: The character art came out well. I was really happy with my original game concept, even though the actual game didn’t live up to it. The code is pretty clean, IMO. I got it to a playable state (altho not very fun). What went wrong: I spent too much time on the [...]

Posted in RubyWeekend | Tagged , , , | 2 Comments

Election Year: Zombies vs. Pirates!

Done! Here’s my entry for RubyWeekend #1! You can follow my previous entries in the zombies-vs-pirates rubyweekend section (they didn’t appear on the home page or in RSS feeds). Here’s the premise of the game: It’s another election year, and the two major political parties, the Zombie Party and the Pirate Party, have chosen their [...]

Posted in Projects, Ruby, RubyWeekend | Tagged , , | Leave a comment

Ninja Moderator

Posted in RubyWeekend | Leave a comment

Screenshot (vertical meters)

I added a VerticalMeter class, a subclass of Meter with a vertical orientation. I’m using it for the volume level, as you can see here: I’m also going to add a “Moderator Annoyance” meter – the ninja moderator gets more and more annoyed over time, and especially fast if the players are loud! When the [...]

Posted in RubyWeekend | Leave a comment

Rating increases with volume

I’ve made it so the player’s rating increases over time in proportion to your volume, which is in turn affected by mashing the space bar. So it’s almost a game! Now for the win / lose conditions.

Posted in RubyWeekend | Leave a comment

Start of day 3

About 10 hours and 40 minutes left as I write this. It’s starting to turn into an actual game now; you can mash the space bar to shout and increase your volume meter, and the computer player “AI” does the same (random chance per frame to shout; it looks pretty good, actually). There’s exponential decay [...]

Posted in RubyWeekend | Leave a comment

Meter Bars

I generalized the DemaMeter class into a Meter class, which implements behavior for drawing a progress meter / health bar / etc. widget. It takes a player and can track any attribute (given a symbol with the name). It can also take two colors, the background color and fill color. Then I made RatingMeter and [...]

Posted in RubyWeekend | Tagged , | Leave a comment

Game loop

I’ve got a proper game loop now, with event handling. It even goes through rounds and phases and stuff, although they’re not very interesting yet. The game looks the same as it did before, so I won’t bother with a screenshot. The internals have changed a ton, though: Implemented Game class, which sets up and [...]

Posted in RubyWeekend | Leave a comment