Day 206

Time: 20:24

Commit

Fun, yet exhausting day. Just doing the 20 minutes. Found a GitHub client. More iterations until Commitopia comes to life.

Advertisements
Day 206

Day 205

Time: 21:31

Commit

As I mentioned earlier, I wanted to display playable demos for the committed state of each day in my blog. So you can play the game I had at day 3, or day 60, or whatever.

Today, I brainstormed how I want that to work. I call it Commitopia.

I’ll continue tomorrow.

Day 205

Day 203

Time: 43:05

Commit

Found a simplification.

The code originally stored boxcar locations on two independent axes (x and y). This is too complicated and was causing bugs as I introduced acceleration and speed.

I was able to greatly simplify when I realized the train track is essentially a number line wrapped into a circle. I can store a car’s location with a single number on this line and then later “unwrap” the location based on where along the track it is.

This made for very clean code that leaves no room for bugs. The location is a single value, not some arbitrary pixel location.

Next: I want to look into making the “chug” sound match frequency with the train’s speed.

Day 203

Day 202

Time: 35:01

Added an accelerate/decelerate effect to the train. It accelerates once every 10 frames. I’ve heard about counting frames from speedrunners and fighting game players, but now I truly know what that means 🙂

I’ll sync sound and make acceleration more incremental tomorrow.

Sidenote: Had some blog presentation improvement ideas today.

  1. Visual representation of my projects on a calendar.
  2. A counter of what day I am on.
Day 202