Presentation is loading. Please wait.

Presentation is loading. Please wait.

Game Programming Using Scratch. Scratch Scratch is an IDE (Integrated Development Environment) that allows users to create and run simple graphics/games.

Similar presentations


Presentation on theme: "Game Programming Using Scratch. Scratch Scratch is an IDE (Integrated Development Environment) that allows users to create and run simple graphics/games."— Presentation transcript:

1 Game Programming Using Scratch

2 Scratch Scratch is an IDE (Integrated Development Environment) that allows users to create and run simple graphics/games programs. Users create programs in Scratch using a procedural, object-oriented programming language that has very simple syntax.

3 Simple Development 1.Scratch requires very little typing in order to create programs. 2.Visual code creation using drag and drop.

4 Simplified Syntax 1.No missing semi-colon problems. 2.Code blocks can only fit together in pre- defined way.

5 Large library. 1.Over 100 predefined functions and limited ability to make more. 2.Functions cover vast majority of things your objects to be able to do in a graphics program.

6 Object-Oriented (1) Scratch is not true OO programming, but good example of basic concepts: o Creating programs that are composed of interacting objects. o These objects have associated properties and functions.

7 Object-Oriented (2) 1.Objects in Scratch are called "Sprites". 2.Properties of Sprites include: o Location o Look o User defined properties (variables). 3.Functions of Sprites include: o Move o Make Sound o Detect Collision

8 Procedural/Imperative Programming 1.Procedural languages need 3 things: Sequence -> A predefined order in which to process information. Selection -> The ability to make a choice. The "IF" statement. Repetition -> The ability to repeat an action. The "WHILE" statement.

9 Sequence All "scripts" processed from top down. 4 possible start conditions, 3 end.

10 Selection If, If-else and wait_until functions.

11 Repetition Variety of functions including repeat_until.

12 Benefits By developing a program in Scratch: Experience in OO paradigm. Experience in Procedural paradigm. Experience in program logic. Experience in development lifecycle. Experience in debugging. Plus you have a chance to make something that belongs to you.

13 Planning your game. Using Sketch you can develop simple games/animations/visual storyboards. Development is FAST FAST FAST. What's your story? Who are the characters? What's the conflict? What do you want your audience to feel? What objects would you need to create? What would their properties/functions be?

14 Checkout: /Projects/Games BugOnAPlate Tetris /Projects/Lists/ FruitCraftRPG RepeatAfterMe

15 Getting Started 1.Start the SCRATCH program. 2.Load program called "MissleCommand". 3.Enter "Presentation Mode". 4.Click the green flag. 5.Follow the instructions and play the game. (5 minutes)


Download ppt "Game Programming Using Scratch. Scratch Scratch is an IDE (Integrated Development Environment) that allows users to create and run simple graphics/games."

Similar presentations


Ads by Google