Girl ScoutsCadetteGrades 6-8

Coding for Good 2: Digital Game Design

Code a pixel avatar game

Design a pixel avatar, turn it into code with arrays, write an array for a game icon, plan a game scenario, then code a small game where your avatar moves with the arrow keys and collects the icon. Covers all five steps of the Cadette Coding for Good 2: Digital Game Design badge.

Time
About three hours, in two or three sittings
Steps
5 badge steps, 4 of them in Glassbox
You need
A computer or Chromebook with a mouse or trackpad and a keyboard with arrow keys. Printing is optional: every step works on screen. No account needed.

$5 for one scout: every step, the Glassbox activities that check the work, the printable lesson, and the certificate with a page of the scout's own work.

A finished pixel avatar game: a pixel-art character on a colored stage, catching icons drawn from arrays.

Badge requirements: the 5 steps

  1. 1Create an avatarPlan itAn avatar is the character that stands for the player in a game. Design yours as pixel art: a small grid where every square is one color.
  2. 2Use arrays to create imagesIn GlassboxComputers store pictures as lists of numbers or letters. Put your avatar into code: an array of 8 rows, one letter for each pixel.
  3. 3Write an array for an iconIn GlassboxNow write an array from nothing: an icon for something your avatar collects, like a coin, a heart, a seed or a water drop.
  4. 4Develop a game scenarioIn GlassboxEvery game has a scenario: who the player is, where they are, what they try to do and what makes it hard. Write yours, then make your avatar move.
  5. 5Play your gameIn GlassboxMake it a game: when your avatar touches the icon, score a point and send the icon somewhere new. Then play it, and watch someone else play it.
Glassbox: blocks on the left, the art.js file as blocks in the middle with the avatar's 8 rows, the game on the right.
Each step shows how Glassbox works, then opens it with a checklist that ticks as the work gets done.

Work on a computer. The apps need a keyboard and a bigger screen than a phone: a laptop, desktop or Chromebook. You can pay here and open the emailed link on the computer.

One scout

Unlock the kit, $5

  • All 5 steps, worked on screen, with a lesson you can print if you like paper
  • Glassbox activities that check the work as it is done
  • A numbered certificate with a page of the scout's own work: your avatar plan, your game scenario and your playtest notes

We email a link that opens the kit on any computer. No account needed. We keep the email only to send the kit and certificate links: privacy.

Have a discount code?
Leaders: unlock it for the whole troop

One payment and one code. Each scout types the code to unlock the kit on their own computer, and gets their own certificate at the end. Your pack page shows who has started and finished.

See a sample certificate (PDF) · Already paid? Find your link

Questions

What are the requirements for the Girl Scout Cadette Coding for Good 2: Digital Game Design badge?

The badge has 5 steps: 1. Create an avatar; 2. Use arrays to create images; 3. Write an array for an icon; 4. Develop a game scenario; 5. Play your game. This kit covers all 5, with activities that check the work as it is done.

Is there a printable version?

Yes. Once unlocked, the whole lesson prints, one step at a time, for a meeting or a table. Printing is optional: every step also works on screen, and a sample certificate PDF is on this page.

What does a scout need?

A computer or Chromebook with a mouse or trackpad and a keyboard with arrow keys. Printing is optional: every step works on screen. No account needed. About three hours, in two or three sittings.

Can a troop leader get it for the whole troop?

Yes. A troop pack is one payment and one code: up to 12 scouts for $20, or up to 30 scouts for $35. Each scout types the code on their own computer and gets their own certificate, and the leader's pack page shows who has started and finished.

Is this an official Girl Scouts product?

No. MYTEK Lab makes the kit, and Girl Scouts badge names and steps are used with permission of Girl Scouts of the USA. The troop leader awards the badge; the certificate shows the scout did the work, with a number the leader can check.

Girl Scouts badge names and steps are used with permission of Girl Scouts of the USA. This kit is made by MYTEK Lab; the badge is awarded by the troop.