JoC #33: Playing Breakout! Collision detection

      Finagles’ 8th Rule: Teamwork is essential; it allows you to blame someone else.

Today, we’re finally getting our breakout game into a playable state! Yes!!

See how to implement functionality to recognise when the ball hits a block, and make the block disappear. This is really the centrepiece of our program – from now on, everything else is detail.

Download video

Concepts discussedcollision detection, removing an object from the world

Download (scenario as of beginning of this episode): breakout-v7.zip

JoC #9: Snakes on a plane!

      Satisfaction lies in the effort, not in the attainment; full effort is full victory.
            — Mahatma Gandhi

Things are start to heat up in our scenario: Snakes are chasing Trick (the turtle) over the plane. (That’s, of course, ‘plane’ as in ‘flat bit of ground’, not as in ‘flying thing’).

Download video

Concepts discussedHmm, don’t know. Creating yet another class. Copy-and-paste coding – is that a concept?

JoC #7: Lettuce is good for you!

      The person who knows HOW will always have a job, but the person
      who knows WHY will always be his/her boss.
          — Anonymous

Trying a different presentation style for a change (in an attempt to speed things up a bit), today we’ll do a quick run through first, followed by some explanation.

And what we’re doing is giving our turtle something to eat. Have a look.

Download video

Concepts discussed: creating a new class, if statement, collision detection, saving the world (yes, really.)