Today’s exercise was Bob. You calculate responses from a non-verbal teen. You check for ending question mark all caps text and empty messages. I thought you got an award for finishing Bob but I guess not for Javascript.

Surprisingly no new swaps from the book to include file today.

I got through the first three examples in chapter 9: Sound in “Game Boy Coding Adventure”. I think I spent most of my time trying to get the makefile work as desired. The examples, as I have named them, are

  • simple: play a two tone sound (Game Boy boot coin sound)
  • frequency: play an a4 or c4 note when you click the B or A button.
  • dutycycle: Play a note with a duty cycle of 1/8, 1/4, 1/2, 3/4. The book is right 1/4, and 3/4 sound the same.

The frequency one made me wonder if I could play a little song. Back in the olden days I once had a lesson in school of how to play jingle bells in GW Basic. Since it would be hard to test/debug this in assembly I wanted to see if I could first do something similar with the Basic interpreter I made during a previous 100 days of code. Here is the admittedly awful result. I still might try to port it to Game Boy at some point.