Intro to STEM for Girls: Using JavaScript to Mod Minecraft

Post on 17-Jul-2015

54 views 1 download

Transcript of Intro to STEM for Girls: Using JavaScript to Mod Minecraft

tWelcome to Class!t

t

Welcome to class!

• What’s your name?

• How old are you?

• What made you want to take this class?

Getting to know you….

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

Has anyone done coding before?

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

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

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();

}

}

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??

Okay, let’s “mod” this code…

function DoSomething() {

var x = 123;

if (x == 456) {

student.ClapHands(2);

}

else {

student.StompFeet(4);

}

}

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?

• “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

Ready to learn some JavaScript?

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?

Want to Open Minecraft?

Physics in Minecraft

What did we learn last week?

What was your favoritething that you built?

What’s a Drone?

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