Turn an original drawing into a game sprite
Give students a small design challenge: make an original character that someone can recognize on a tiny game screen. In this 20-minute MakeCode Arcade sprite lesson, students export their artwork as a PNG, compare two pixel sizes, check colors and transparency, and place their chosen image in a starter game.
Use the image converter alongside the student activity packet below. Arcade Image Converter is an unofficial tool and is not affiliated with Microsoft. Image conversion happens locally in the browser, requires no account, and uses the default palette. The converter creates image code; students still need a MakeCode Arcade project to display it.
Goals, grade levels, and timing
Plan this activity for grades 4–8 or an after-school coding club. Younger students can work with an adult or partner; high school students can extend the design constraints. These are suggested teaching arrangements, not a required age range.
By the end, students should be able to explain one change caused by reducing image size, identify a difference between a solid background and transparency, and support a sprite-size choice with evidence from their previews.
Allow 20 minutes after setup: four minutes to draw, two to export, four to compare sizes, four to investigate colors and transparency, four to test in a project, and two to discuss. Students should already know how to open a project and display a sprite. If they are new to the editor, teach that first or use a teacher-led demonstration for the final step.
Materials and teacher preparation
Prepare a browser with JavaScript enabled, access to the converter and MakeCode Arcade, and a school-approved drawing tool that exports PNG files. Students can share devices. Provide the activity packet, pencils, and a starter project containing one visible sprite. No game hardware is needed for this simulator activity.
Before class, test file selection, PNG export, clipboard access, and the starter project on the actual school devices. Use the default project palette. Save a backup of the starter project and practice replacing its image in JavaScript view. Have a simple original PNG ready for a demonstration if students cannot export files. Keep student names and personal photos out of the artwork.
Step 1: Draw an original character — 4 minutes
Ask students to invent a small creature, robot, or everyday object with a personality. Choose one feature that must survive conversion: two square eyes, a broad leaf, or an unusual hat. Use a clear outline and a few distinct colors. Avoid text, tiny decorations, and copied characters.
Start on a 32×32 canvas if the drawing tool supports pixel dimensions. Students can plan on the printed grid before drawing digitally. Leave space around the shape, but avoid a large empty border that would shrink the subject during conversion. Partners can take turns as artist and observer; the observer describes what makes the character recognizable.
Step 2: Export a PNG — 2 minutes
Save the editable drawing, then export a PNG where students can find it. If the drawing tool supports a transparent background, use it for the space outside the character. A white canvas is not automatically transparent. Simply changing a filename to end in .png does not change its format.
Open the converter and select the PNG. Compare the original preview with the saved drawing. The checkerboard marks transparent areas; it is not part of the artwork. Keep the source file because refreshing the converter clears the current image and there is no saved conversion history.
Step 3: Compare 16×16 and 32×32 — 4 minutes
Choose 16×16, keep Fit inside, and select Convert image. Record whether the chosen feature is recognizable. Then choose 32×32 and convert again, keeping the same source and other settings. Changing a control clears the previous result, so convert again before copying or evaluating new settings.
Use the comparison table to record a detail that survived, one that changed, and a reason to choose each size. A 32×32 image has four times as many pixel positions as a 16×16 image, but extra positions do not guarantee a better character. Reducing a drawing can remove thin lines; enlarging it cannot invent detail. Fit inside preserves proportions, while Stretch to fill can change the shape. Check the chosen version in the game rather than judging only the enlarged preview.
Step 4: Check the palette and transparency — 4 minutes
The converter uses 15 visible colors plus transparency. Compare one source color with its converted result. Similar source colors may become the same palette color. Ask students whether their character still has enough contrast. If the image changes color again in the game, check whether the project uses a custom palette; this converter does not change project palettes.
Keep Keep transparent pixels enabled for a transparent PNG. Begin with the default alpha cutoff of 127: pixels at or below that value become transparent, and pixels above it become solid. If faint edges disappear, try a lower cutoff and convert again. A higher cutoff removes more faint pixels. Neither setting erases a solid white background. Remove an unwanted solid background in the drawing tool, then export a new transparent PNG. In the output, a dot means transparency; f is visible black.
Step 5: Put the image in a starter game — 4 minutes
Choose the preferred size, convert once more if needed, and select Copy code. In the teacher-prepared project's JavaScript view, replace only the existing image expression in the sprite creation code with the complete copied expression. Include the opening img and both backticks. Keep the surrounding sprite creation call, variable name, and sprite kind intact.
Students should make this replacement with teacher guidance if they have not edited text code before. Run the simulator and check that the character appears, its important feature remains visible, and its background behaves as intended. The copied expression is an image value, not a complete game. If code editing takes longer than planned, demonstrate one student's image and finish individual imports in the next session.
Discuss the design — 2 minutes
Ask pairs to point to evidence: Which feature survived both sizes? What disappeared at 16×16? Did two colors merge? Where should the game background show through? Which size fits the character's role, and why?
Have each student finish this sentence: “I chose ___ because the preview showed ___.” Accept different choices when students can explain the tradeoff. Collect the comparison table as a record of observations rather than ranking the artwork by detail or drawing skill.
Extensions and ways to adapt
For additional support, offer a large grid, a limited set of labeled colors, and a three-shape character challenge. Let students explain choices aloud or dictate their observations. With one device, compare an original class drawing together while students predict changes on paper.
For an extension, revise just one feature and repeat the comparison with the same settings. Older students can compare how a broad outline and a one-pixel line survive reduction. Students who finish early can test their sprite against two game backgrounds and explain which gives clearer contrast. Keep animation as a later activity so the first session stays focused on one image.
Troubleshooting during class
If an image is rejected, confirm it is a real PNG or JPEG within the converter's source limits: 10 MB, 4096 pixels per side, and 16 million pixels total. Export a smaller copy if needed. If a subject looks tiny, crop excess margins in the drawing tool. If a feature disappears, simplify it or compare the larger output.
If copying is blocked, select the code field and use the device's Copy command. If the project reports an error, restore the backup and check the replacement boundaries with the teacher. Save the drawing and project before closing tabs. Keep file conversion, project saving, and school sharing rules separate: local image processing does not decide how students should submit their work.
Original Art to Arcade: Student Activity Packet
Name or class code: ____________________ Date: ____________________
Your challenge: Create an original character, compare two sprite sizes, and explain which version you would use in a game.
You will need: A pencil, these activity sheets, a browser, a PNG-exporting drawing tool, and your teacher's starter project. Work with a partner if you share a device.
Converter: https://arcadeimageconverter.org/
Lesson: https://arcadeimageconverter.org/sprite-lab
Arcade Image Converter is unofficial and is not affiliated with Microsoft. Conversion happens in your browser, needs no account, and uses the default palette. Keep your original file; refreshing clears the current image.
Task card: Make, compare, explain
- Draw — 4 minutes. Invent your own character. Use a clear shape and a few colors. Choose one feature that must stay recognizable.
- Export — 2 minutes. Save your drawing and export a PNG. Use a transparent background if your drawing tool supports it.
- Compare — 4 minutes. Convert the same file at 16×16 and 32×32. Keep the other settings the same. Record what you see.
- Check — 4 minutes. Compare the colors. Check empty areas and dark details. Use the transparency checklist below.
- Test — 4 minutes. With your teacher, copy the complete image code into the starter project. Run the simulator.
- Explain — 2 minutes. Choose a version and give evidence from your previews and game test.
My character is: __________________________________________________
The feature I want to preserve is: ___________________________________
Drawing grids: Plan your original character
16×16 grid — 16 squares across and 16 squares down
Each square represents one pixel. Use a solid mark or write a palette symbol in each square. Leave squares empty where the game background should show through. Label empty squares with a dot if that makes your plan clearer.
32×32 grid — 32 squares across and 32 squares down
Plan the same character with more pixel positions. Try to preserve its overall shape. Compare the two digital conversions from the same source file; these paper grids are planning spaces, not converter inputs.
Size comparison record
Source filename: ____________________ Resize mode: ____________________
Keep transparent pixels: On / Off Alpha cutoff, if enabled: __________
Use the same source and settings for both tests, changing only the output size. Select Convert image after each change.
| Observation | 16×16 version | 32×32 version |
|---|---|---|
| Can I recognize my chosen feature? | __________________ | __________________ |
| One detail that stays clear | __________________ | __________________ |
| One detail that changes or disappears | __________________ | __________________ |
| One color change I notice | __________________ | __________________ |
| How it looks in the game, if tested | __________________ | __________________ |
I chose __________ because I observed ________________________________.
One change I would make next: ________________________________________.
Palette card: Read the symbols
The default palette has 15 visible colors and one transparent entry. The converter writes a dot for transparency and symbols 1–f for visible colors. The hex values below identify the default colors; you do not need to type them during this lesson. Use the symbols and labels even when this sheet is printed in grayscale.
| Output symbol | Color label | Default hex value |
|---|---|---|
| . | Transparent: lets the background show through | Not a visible color; index 0 |
| 1 | White | #FFFFFF |
| 2 | Red | #FF2121 |
| 3 | Pink | #FF93C4 |
| 4 | Orange | #FF8135 |
| 5 | Yellow | #FFF609 |
| 6 | Teal | #249CA3 |
| 7 | Green | #78DC52 |
| 8 | Dark blue | #003FAD |
| 9 | Light cyan | #87F2FF |
| a | Purple | #8E2EC4 |
| b | Muted mauve | #A4839F |
| c | Dark purple | #5C406C |
| d | Pale beige | #E5CDC4 |
| e | Brown | #91463D |
| f | Black: stays visible | #000000 |
Remember: Black is not transparency. A white background is not transparency. A project with a custom palette may display these same symbols in different colors.
My source color: ____________________
Its converted symbol and color: ____________________
Does it still stand out from nearby pixels? Why? _______________________
Transparency troubleshooting checklist
I checked the original preview. A checkerboard means transparency; it is not part of my drawing.
My file is a PNG with transparent areas if I want the game background to show through. PNG files can also have solid backgrounds.
I enabled Keep transparent pixels and started with the default cutoff of 127.
I checked faint edges. At cutoff 127, alpha values of 127 or lower disappear; higher values become solid. A lower cutoff keeps more faint pixels. A higher cutoff removes more.
If I see an unwanted solid white box, I remove that background in my drawing tool and export again. The converter does not erase white automatically.
- I checked that visible black details use f and empty pixels use dots.
- I selected Convert image again after changing settings.
- I tested my chosen image in the starter game and saved my work.
The problem I saw: __________________________________________________
The one change I tried: ______________________________________________
What happened after converting again: ________________________________
Exit ticket
I chose the __________ version because _______________________________.
One thing I learned about pixels, colors, or transparency: ______________
____________________________________________________________________