Search KoopaTV!

Translate

Tuesday, December 6, 2016

Hour of Code 2016, and Justin Trudeau's Bad Breakout

By LUDWIG VON KOOPA - Breakout... the game. Well, the balls are everywhere like they're zits, too.

While we're not fans of Canadian Prime Minister Justin Trudeau (both from a political standpoint, and because of geopolitical tension), we are fans of initiatives such as code.org's Hour of Code, which is an annual event being held this week. Code.org is primarily focused on the United States, but, hey, Canada can join in, too.

So when Canada's prime minister makes...a game... of some sort... to promote the Hour of Code, well, the world pays attention, and Gamasutra writes a short article about it. (But they're silent when the prince of Koopa Kingdom makes games...)

Justin Trudeau Hour of Code code.org hockey breakout twitter tweet
See the tweets for yourself here.

Coding is easy, eh? The kids taught him, eh? CHECK OUT THE GAME HE MADE, EH? EH? EHHHH? (...I put all of those “eh”s in there BEFORE I realised I was talking about a Canadian, just saying.) Fine. I will.

Here are the rules of Justin Trudeau's hockey-themed ball-bounce game:
  • At the beginning of the game, a hockey puck (ball) spawns and bounces towards you.
  • You control a hockey stick with the right and left arrow keys. The stick moves at a constant velocity with no acceleration.
  • If your stick hits the puck, the puck bounces off of it.
  • If the puck hits a wall, it'll bounce off that.
  • If the puck lands at the goal at the centre of the top of the playing field, you'll score a point and one new puck will spawn.
  • If you miss a puck and it goes through the bottom of the playing field, your opponent (the SYSTEM) will get a point, and spawn two new pucks. 
Simple, right? Well, if those are the only rules, then maybe you see a problem. If you don't, this should illustrate it:

Justin Trudeau Hour of Code code.org breakout hockey balls flood
Eventually, the screen will just be black, and I assume the game crashes at some point.

It's inevitable that, eventually, you'll miss a puck. And once there are two, since your hockey stick can only be at one place at a time (and it's not the fastest thing), you'll miss another even if you tend to the other. Then they'll continually increase, and never lower in count. It's therefore inevitable you'll end up with a puck-ridden mess.

Of course, identifying bugs and glitches is a big part of game development, as is beta-testing. I'm sure Mr. Trudeau identified this problem, since it takes a matter of seconds for the problem to manifest itself. Identifying problems is one big part... and solving problems is another big part. Mr. Trudeau didn't bother to do that.

For most programmers, the bulk of the programming work happens when trying to fix things, rather than writing it for the first time! Any coding lesson plan that has you skip over that is not very complete.

One way to prevent a zillion pucks on the screen is to set a variable equal to the total number of pucks on the screen, and only have a new puck spawn if the total number of pucks on screen is less than whatever arbitrary threshold you choose.

Blockly Hour of Code code.org bounce ball game Justin Trudeau
The totality of Justin Trudeau's code. Notice there's nothing controlling the total population of new balls.

I surmise that the reason two pucks spawn upon missing is to punish you and increase the difficulty for failure. Trudeau created a very powerful and, quite frankly, unstoppable feedback loop, or slippery slope. Once you miss one puck, you might as well stop playing. That's not commendable game design. The game should get more difficult when you've proven to be SUCCESSFUL. Imagine if you're playing the game for the first time and just trying to get used to the controls, and you miss a puck... and suddenly they're multiplying like crazy.

That's not a good first impression for a player, so they probably won't play again. I only did to make this review.

Don't play it. Justin Trudeau's breakout game (is that what it even is? That's how Gamasutra described it, anyway) is a bad game, and not even fun. I think it's shameful that Trudeau blames the kids who taught him, and then has the hubris to declare that coding is easy while showing off this mess of a game. However, this experience is still a useful introductory lesson for new coders in what NOT to do, and that's important when learning!


KoopaTV.org is possibly just a fan of code.org because they share a top-level domain. Stay tuned this month for the release of KoopaTV's brand-new videogame, which the staffers are lazily beta-testing to ensure it doesn't have issues like Justin Trudeau's!


KoopaTV promoted the Hour of Code back in December 2013 through the lens of American bipartisan agreement and then neglected to mention it since.
Microsoft has teamed up with code.org with some Minecraft: Education Edition action.
KoopaTV's 2016 game, The Wonderful 1237, doesn't have Trudeau-level issues, at least. You can play it here!
One of the minigames in The Wonderful 1237 is based on breakout. Play a demo of it here! It's more fun than Justin Trudeau's game.
Justin Trudeau's American counterpart isn't participating in coding, but he will try to fund a lot of it for the future of the country's jobs.

6 comments :

  1. So what do you think of the original Kid Icarus that starts out difficult then gets easy overtime?

    ReplyDelete
    Replies
    1. I got it on the Wii's Virtual Console because I've heard so many things about the game and how everyone wanted a new Kid Icarus game...

      ...I never got past World 1's fortress, and I tried a lot. I did not have an enjoyable experience with it at all!

      Delete
    2. I had the 3D Classics version (free with preordering Uprising) which either saves after every world or after every section, I do not recall. But it made life easier with that system rather than the password system.

      Gameboy sequel is a bit better with the difficulty spread.

      Delete
    3. To be honest.

      Not really.

      Gameboy sequel was not as aggravating in comparison.

      Delete

We embrace your comments.
Expect a reply between 1 minute to 24 hours from your comment. We advise you to receive an e-mail notification for when we do reply.
Also, see our Disclaimers.

Spamming is bad, so don't spam. Spam includes random advertisements and obviously being a robot. Our vendor may subject you to CAPTCHAs.

If you comment on an article that is older than 60 days, you will have to wait for a staffer to approve your comment. It will get approved and replied to, don't worry. Unless you're a spambot.