1 / 7

Starting to Program From Scratch

CS110: Intro to Computer Science. Starting to Program From Scratch. Core Issue Programming Concepts. Today we look at scratch, a new programming language that lets you create your own interactive stories, animations, games, music, and art. Supporting Issues Programming Logic

thuong
Download Presentation

Starting to Program From Scratch

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. CS110: Intro to Computer Science Starting to Program From Scratch Core Issue Programming Concepts Today we look at scratch, a new programming language that lets you create your own interactive stories, animations, games, music, and art. Supporting Issues Programming Logic Control and Conditionals Game Design Prepared by Fred Annexstein University of Cincinnati Some rights reserved 007

  2. Beginning Programming • Download Scratch from http://scratch.mit.edu • You may want to use the .zip archive saved to dir \temp rather than the installer.

  3. Varieties of Computer Languages Interpreted <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> <title>Hello, World!</title> </head> <body> Hello, World! </body> </html> Compiled int main(int argc, char * argv[]) { printf("Hello world!"); exit(0); } 10000011 00000001 00010001 00000000 00111101 11111100 01110100 00111101 00000000 01000000 00000000 00000000 00000000 00000000 00000000 00000000 10010000 00000000 00000000 00000000 01010000 00000000 00000111 00110000 00001011 00000001 00001011 00000011 00001010 00000000 00000000 00

  4. Getting Started in Scratch Interpreted Environment 8 Categories of Programming Objects Use Help Screens to Find what you need http://llk.media.mit.edu/projects/scratch/help/ Find Conditionals and Boolean Expressions Find Loops

  5. Game Programming: “Knock the Kitty in Hole” Basic Design: Start the game with 0 score and define its duration (10 seconds) Pick random location at top to drop the Kitty Use a touching mouse? sensing event to grab kitty (broadcast event), and if mouse released continue to kitty drop. Use a touching hole? sensing event to test if kitty is in hole and add to score. Then go back to step 2 to drop another kitty.

  6. Game Programming: “Knock the Kitty in Can”

  7. Project to turn in: • Modify the Game above to include another sprite into the action. • Turn in your project by saving the scratch program and uploading to Bb. • Final Homework project: Due Thursday Nov 29. • Create your own game or story animation in Scratch.

More Related