Hello, World! Hello, World! Varieties of Computer Languages Compiled int main(int argc, char * argv[]) { printf("Hello world!"); exit(0); }"> Hello, World! Hello, World! Varieties of Computer Languages Compiled int main(int argc, char * argv[]) { printf("Hello world!"); exit(0); }">
Download presentation
Presentation is loading. Please wait.
1
1 Starting to Program From Scratch scratch is a new programming language that lets you create your own interactive stories, animations, games, music, and art. Prepared by Fred Annexstein University of Cincinnati Some rights reserved 007 Supporting Issues Programming Logic CS110: Intro to Computer Science Core Issue Programming Concepts
2
2 Beginning Programming Download Scratch! from scratch.mit.edu
3
3 Interpreted <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> Hello, World! Hello, World! Varieties of Computer Languages 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
4 The Scratch Interpreted Environment 8 Categories of Programming Objects
5
5 Scratch Programming Elements Looks: Control: Sound:
6
6
7
7 Boolean Expressions and Boolean connectives Sensing: Numbers:
8
8 Conditionals: If then else statements:
9
9 Basic Repetition: Loops
10
10 Using Program Variables
11
11 Programming the Movement of a Sprite
12
12 Programming the Movement Multiple Sprites: Threads
13
13 Programming Events
14
14 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.
15
15 Game Programming: “Knock the Kitty in Can”
16
16 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.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.