25
tWelcome to Class!t t Welcome to class!

Intro to STEM for Girls: Using JavaScript to Mod Minecraft

Embed Size (px)

Citation preview

Page 1: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

tWelcome to Class!t

t

Welcome to class!

Page 2: Intro to STEM for Girls: Using JavaScript to Mod Minecraft
Page 3: Intro to STEM for Girls: Using JavaScript to Mod Minecraft
Page 4: Intro to STEM for Girls: Using JavaScript to Mod Minecraft
Page 5: Intro to STEM for Girls: Using JavaScript to Mod Minecraft
Page 6: Intro to STEM for Girls: Using JavaScript to Mod Minecraft
Page 7: Intro to STEM for Girls: Using JavaScript to Mod Minecraft
Page 8: Intro to STEM for Girls: Using JavaScript to Mod Minecraft
Page 9: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

• What’s your name?

• How old are you?

• What made you want to take this class?

Getting to know you….

Page 10: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

Who’s played Minecraft before?Who’s heard of Javascript?

Has anyone done coding before?

Page 11: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

What’s something YOU would love to change about Minecraft?

“mod” (short for “modification”) n. – an alteration to video game code, allowing the game to work in ways other than originally intended.v

Page 12: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

JavaScript n. – a powerful computer programming language, commonly used to create video games, websites, and smartphone app’s

Page 13: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

Blah blah blah…Let’s look at some code!

function DoSomething() {

var x = 123;

// Let’s say “x” is equal to 123

if (x == 456) {// If x equals 456…

student.ClapHands();

}

else {

student.StompFeet();

}

}

Page 14: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

BUT WAIT!!!??!??!

function DoSomething() {

Let’s say “x” is equal to 123

If x equals 456 Then

Students should clap their hands…

Else

Students should stomp their feet…

}

How many TIMES should we clap hands or stomp feet?

When should we stop??

Page 15: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

Okay, let’s “mod” this code…

function DoSomething() {

var x = 123;

if (x == 456) {

student.ClapHands(2);

}

else {

student.StompFeet(4);

}

}

Page 16: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

Minecraft Mod Demo

https://www.youtube.com/watch?v=LGHk1NiiUCM&feature=youtu.be&t=1m29s

Questions:

Did you notice they were building the castle block by block?What’s one improvement you’d like to see them make to this mod?What’s one thing YOU might want to build in Minecraft?

Page 17: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

• “As you learn Javascript you will be able to create cooler stuff in Minecraft - not just buildings. You'll be able to add new rules and items to the game - even create mini-games for you and your friends.”

• Walter Higgins (Creator of ScriptCraft)

• Here are some other ideas:

https://www.youtube.com/user/walterhiggins0303/videos

Page 18: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

Ready to learn some JavaScript?

Page 19: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

Class Guidelines

• How to ask for help if you’re having trouble?

• Who should you ask for help?

• Should you ever just give up?

• Is it okay to play Minecraft while I am teaching?

Page 20: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

Want to Open Minecraft?

Page 21: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

Physics in Minecraft

Page 22: Intro to STEM for Girls: Using JavaScript to Mod Minecraft
Page 23: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

What did we learn last week?

What was your favoritething that you built?

Page 24: Intro to STEM for Girls: Using JavaScript to Mod Minecraft

What’s a Drone?

What are some issues we run intowhen using Drones to build?

Page 25: Intro to STEM for Girls: Using JavaScript to Mod Minecraft