block3_lesson2-554x368.jpg

Dinosaur Run

8-10 yrs old

11-13 yrs old

Computer Science

Technology

Running Out of Time: Dinosaur Run. Creativity in Coding – Events and Variables

22
avatar Submitted By: Minecraft Education

September 3, 2020

Skills

  • Creativity
  • Critical Thinking

Learning Objectives

  • Create programs that include sequences, events, loops, and conditionals. 1B-AP-10
  • Decompose (break down) problems into smaller, manageable subproblems to facilitate the program development process. 1B-AP-11

Guiding Ideas

Today students will be investigating and becoming more familiar with Events. Events are what causes things to happen. Students will need to overcome coding challenges to get to the Time Travelling Device.

Coding objectives:

By the end of Lesson 2, students should be comfortable

- Using different events

- Making the right coding choice depending on the circumstances

- Combining different events.

 

Student Activities

Coding Practice – Creativity, Player Validation, and Special Effects

Coding activities: (30 min)

Activity 1: Dinosaur Sneak

The students should use On User Sneak or On Chat Command with Enhancements to give themselves the whatever enhancement they want to use to sneak past the dinosaur. They will need to use the sneak function from Minecraft to get by. You can enable Sneak by holding down the Shift Key& W on the keyboard for students using PCs, or for iPads using the Sneak function on the in-game joystick.

Activity 2 - 4: Navigating the Temple

The students can use the On User Walk or On Chat Command or On Start events to give themselves the necessary enhancements to navigate the 3 obstacles in the temple. Where they will need to get creative is with the duration of the enhancements. The default timing on the duration is approximately 10 seconds.

Activity 5: Powering the Gate

The Time Travelling Device cannot be powered without some help. To make this happen lightning is going to strike the gold blocks that are placed around. Students need to use the event On Player Walk, as soon as the player begins moving rain will fall. As the player moves to each of the gold blocks, lightning will strike. Once all the gold blocks have activated lightning the TTD will light up and the game will announce “Activity Complete”.

Performance Expectations

Ask the students about the skills that they have learned during the lesson, to reinforce the concepts.

1. Q. What is an Event?

A. the change in the state of an object—this change is brought about as a result of some sort of user interaction, for example, when a block is placed something else happens, or when the Start is activated.

2. Q. What do the purple blocks of code do? (apply effects)

A. Enhancement that allow the student to have extra abilities for varying amounts of time and strengths.

3 Q. On Player Walk is a what?

A. Event trigger/ Event Handler.

4. Q. What events did you use to solve the puzzles in this lesson?

A. The answers will vary.

 

Skills

  • Creativity
  • Critical Thinking