CS 110 Intro to Computer Science Starting to
- Slides: 16
CS 110: Intro to Computer Science Starting to Program From Scratch Core Issue Programming Concepts scratch is a new programming language that lets you create your own interactive stories, animations, games, music, and art. Supporting Issues Programming Logic Prepared by Fred Annexstein University of Cincinnati Some rights reserved 007 1
Beginning Programming Download Scratch! from scratch. mit. edu 2
Varieties of Computer Languages Interpreted <!DOCTYPE html PUBLIC "-//W 3 C//DTD XHTML 1. 0 Transitional//EN" "DTD/xhtml 1 -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 0000 00111101 11111100 01110100 00111101 0000 0100000000 00000000 100100000000 010100000111 001100001011 00000001011 00000011 00001010 00000000 00 3
The Scratch Interpreted Environment 8 Categories of Programming Objects 4
Scratch Programming Elements Looks: Control: Sound: 5
6
Boolean Expressions and Boolean connectives Sensing: Numbers: 7
Conditionals: If then else statements: 8
Basic Repetition: Loops 9
Using Program Variables 10
Programming the Movement of a Sprite 11
Programming the Movement Multiple Sprites: Threads 12
Programming Events 13
Game Programming: “Knock the Kitty in Hole” Basic Design: 1. Start the game with 0 score and pick random location at top to drop the Kitty 2. Use a touching mouse? sensing event to grab kitty and knock into hole. 3. Use a touching hole? sensing event to add to score and drop another kitty. 14
Game Programming: “Knock the Kitty in Can” 15
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. 16
- Vignette mutuelle 110/110
- 110-000-110 & 111-000-111
- English science and blank are my favorite subject
- Chapter 1 introduction to forensic science and the law
- Thinking of starting a business
- Victorian scrapbook
- Qualities starting with n
- Pony motor starting method diagram
- Overlap in starting air system
- Presentation starting speech
- Kamasutra standing positions
- Starting materials for cellular respiration
- Thesis statement starting words
- Funnel paragraph example
- Rules for letter writing
- Connectors of contrast
- Growth or decay