1 / 9

Computer Game Development Laboratory Scratch Modules

Welcome to. Computer Game Development Laboratory Scratch Modules. www.build-it-yourself.com. Series and Parallel Execution Put on your socks. Then Put on your shoes. Take a shower. At the same time, Brush your teeth. www.build-it-yourself.com. Iteration Breath. www.build-it-yourself.com.

shim
Download Presentation

Computer Game Development Laboratory Scratch Modules

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Welcome to Computer Game Development Laboratory Scratch Modules www.build-it-yourself.com

  2. Series and Parallel ExecutionPut on your socks. Then Put on your shoes.Take a shower.At the same time,Brush your teeth. www.build-it-yourself.com

  3. IterationBreath. www.build-it-yourself.com

  4. Conditional StatementsIf there is candy on the plate, keep eating!If not, ask for more! www.build-it-yourself.com

  5. VariablesThe score in a game. www.build-it-yourself.com

  6. MessagesWhen you are hungry, call the pizza shop. Broadcasting messages allows communication between sprites and the stage. For example you may want to change a background color or costume when the space bar is pressed. www.build-it-yourself.com

  7. Modular Programming1) Create solutions quickly.2) Edit solutions quickly.3) Make solutions more reliable. Spaghetti Code Ordered Code www.build-it-yourself.com

  8. Program Structures1) Sequence vs. Parallel2) Iteration3) Conditional Statements4) Variables5) Messages6) Modular Programming In many ways, a computer works just like your brain! www.build-it-yourself.com

  9. Program Guidelines Make descriptive names for all Scratch projects, costumes, sprites, variables, messages. Modularize the code. Break down code into simple, reusable, functional building blocks. Set up logical hand shaking rules so one module can easily drive another module. Initialize costume and variable states when the program starts. (position, size, show, value …) Avoid forever loops or make sure you stop a forever loop when it is no longer needed. Use ‘Repeat Until’ so big projects with many forever loops will not overload your processor. Document how your program works. Add code comments. www.build-it-yourself.com

More Related