an introduction to coding

14
An introduction to (coding) { Scripting in GML }

Upload: iain-bruce

Post on 12-Feb-2017

88 views

Category:

Education


0 download

TRANSCRIPT

Page 1: An introduction to coding

An introduction to (coding) {

Scripting in GML}

Page 2: An introduction to coding

Introduction

Page 3: An introduction to coding

What is coding?

Coding is a way of telling the computer to do something.

Simply put, it is a set of written instructions, for example;

If (lives==0)

{

GameRestart=True

}

Page 4: An introduction to coding

What do we use coding for?

Websites

Games

App development

Programming

Hardware development support

The list goes on and on

Page 5: An introduction to coding

Why do you need to learn coding?

We live in a digital world; much of our everyday lives are spent interacting with the “web of things” and coding is the magic that makes all of these things work.

Whether you want to work as a programmer or not, understanding what code is will give you a better understanding of how the world around you is working.

Page 6: An introduction to coding

How important a skill is coding if you want to work in the games industry? Why is this?

Page 7: An introduction to coding

Programmers are the people who write code. What skills does a good programmer need?

Attention to detail (otherwise things will go wrong)

Patience (it takes a lot of patience to figure out where you went wrong, and how to fix it)

Curiosity (programmers always need to learn new languages)

Creativity (for figuring out a solution to a new problem or implementing your ideas in new ways)

Page 8: An introduction to coding

What coding language does GameMaker use?

GameMaker has its own programming language, GML, created by the programmer Mark Overmars.

Games be made completely using GML.

Page 9: An introduction to coding

In todays lesson

You will be using GML to create a lives and score system, rather than using the drag and drop system we used for the top down shooter.

Page 10: An introduction to coding

By the end of the workshop, you

MUST code simple lives & score systems in Game Maker Language

SHOULD code the destruction of an object in Game Maker Language

COULD experiment with your code to change how the lives, score and collision systems work in your game level.

Page 11: An introduction to coding

Task 1

Log onto Moodle and open up the week 2 tutorial for the platformer series.

Watch the video and learn how to code the lives and score system.

Apply this knowledge to your platformer level.

Play with the code; see what works and what doesn’t.

I will come and look over your levels as you’re building them!

Page 12: An introduction to coding

Task 2

Page 13: An introduction to coding

End of lesson quiz

What is coding?

What problems did you encounter?

How could you work towards solving these problems?

Hands up who added their lives system?

Hands up who added a score system?

Hands up who added a simple enemy?

Hands up who had more than three lives?

Page 14: An introduction to coding

Programming is an amazing skill.Where can learning programming take you?