Lesson 1 of 0
In Progress

3-Game development using Block coding


What is block programming?

Block-based coding or programming utilizes a drag-and-drop learning environment, where programmers use coding instruction “blocks” to construct animated stories and games. It’s an entry-level activity, where kids can gain a foundation in computational thinking through visuals as opposed to coding that is based in text.

What do you mean by “blocks?”

When we mention “blocks,” it’s a way to describe the “chunks” or “pieces” of instructions a user is putting together in order to tell their creation what to do. 

For example, Scratch programming is block-based, and is one of the most popular options when it comes to kids coding languages. Blocks in Scratch are defined as:

Motion Blocks: Used to control movement, telling sprites (Scratch images) to move and turn in relation to the sprite itself, other sprites, or a certain position.For instance, with one single block, creators can tell a sprite to move forward 10 steps, or turn 15 degrees to the right. 

Looks blocks:

Used to change a sprite’s appearance, and can make a sprite say or think something, change costumes or backdrops, or even change the size or graphic effects of a sprite.For example, creators can tell their sprite to display a text bubble and say “hello!” for a 2-second duration.

Sound Block: 

Used to add sounds to a story or game, or edit sound effects like pitch, and even change the volume of different sounds. For example, a sound block can be used to start playing a “meow” sound, and then another sound block can be used to stop all sounds. 

Blocks provide a valuable learning experience, with kids quickly realizing that their programs will only do what they tell them to do, and will only run code in the order it was “written.”

What can you create with drag-and-drop block coding?

With block-based coding in a program like Scratch, kids can let their imaginations run wild, creating any number of sprites, and bringing those creations to life with animation and storytelling. 

For example, in Scratch, kids can make:

Clicker games where a player must click things, say like popping balloons, in order to earn points. And as each balloon is clicked, a new one of a different color pops up in a different part of the screen.

Chase games allow players to control a character who is “chasing” another character or object. For example, it can be an octopus trying to catch a fish swimming around randomly across the screen.

Pong games are just as the name suggests; the classic setup of a mouse-controlled paddle that is moved back and forth in an attempt to keep the bouncing ball from touching the ground. 

Make it fly games ask the player to use up and down arrows to control their sprite, which might be a bird who can move up and down to catch a bug scurrying across the screen.

Adventure games are a bit more advanced, and are built to have players collect objects as they progress through multiple game levels on different backgrounds.