Module 2: Week 3¶
Teaching for All - Programming¶
-–

-–
Assignments¶
- Task 1: Design and implement a simple game or quiz using a block programming language. It is recommended that the quiz/game can be used in the classroom.
- Task 2: Include in your learning diary the code and several screenshots of your application. You can even include a video. Include also the programming platform.
Process¶
- I have some experience with coding, so I went with option 2, which was to create a simple game. I don’t, however, have a lot of experience with code blocks or the two languages you can switch to (JavaScript & Python) in the MakeCode editor. I ended up where I usually do, confused as to why a supposed-to-be-straight-forward action isn’t working or isn’t available as a block.
- I had used MakeCode Arcade with students before, so I decided to use it as my platform. I can do some basic things with it, and felt pretty sure I’d be able to make a quick game.
- I went to the asset library in MakeCode to get some ideas for what to create and saw the plate sprite with a bunch of food sprites. This made me think of a falling objects game where you had to catch some things and not others. I decided on a game where you have to catch healthy food choices on the plate and avoid unhealthy foods by letting them fall past you. The player would get points for catching the healthy foods and lose points for catching the unhealthy ones. I imagined this game could be used in a science or health class to teach about nutrition.

- The first snag I hit was in getting the player movement to work correctly. I was attempting to put the controls straight into the “forever” block, but it was only responding intermittently. I tried a couple other blocks that could create movement controls, but they weren’t working either. I eventually decided to go ahead and create a function for player movement, which ended up working. Some of these options can be seen in the first screenshot above.
- After that, I started to set up the food sprites. I created a function to make a food and another to animate it, as well as some instructions for what to do when the food and the plate overlap, which included generating and displaying a score.

- This is when it got weird again. While the fruit functions were active, the player movement stopped working. When I removed the fruit functions, the player movement started working again, even though they are in separate functions and don’t share any variables with one another, at least not that I could tell.
- I was troubleshooting this for quite a while, when I probably should have moved on to a different sort of game just to get something that worked correctly. For now, The strawberry falls out of the sky every 7.5 seconds. When you catch it with the plate, which isn’t moving right now, the score increases by one and the strawberry sprite is destroyed.
- The current code is stored in the image below - I’d love any advice on what might be going wrong here!

Reflection¶
- Remember to include the code and pictures of the generated application in your learning diary.
- When you design a DF learning activity, how do you take into account diversity? Could you describe one learning situation in which you did not take into account diversity in planning? How did you solve the situation?
- What aspects would you need to take into consideration if you have kids with a) learning disabilities, b) physical disabilities, c) emotional disabilities when preparing your DF activities?
- Do you think your school is ready to a change in mindset? Why? How can you get support from other stakeholders?
- What are the challenges and opportunities of integrating programming in your classes?
Tools¶
- Tools or software used
- References or tutorials followed