1 / 28

Welcome to the CRE Programming Club!

Welcome to the CRE Programming Club!. Robert Eckstein and Robert Heard. What is the CRE Programming Club?. First, we’re going to spend some time teaching you how to program. Next, we’re going to show you some techniques used to create video games.

Download Presentation

Welcome to the CRE Programming Club!

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 the CRE Programming Club! • Robert Eckstein and Robert Heard

  2. What is the CRE Programming Club? • First, we’re going to spend some time teaching you how to program. • Next, we’re going to show you some techniques used to create video games. • In 3 or 4 months, we want you to create a video game of your own. Doesn’t matter how simple or complex--just as long as you had fun building it.

  3. Some Rules • Standard rules for technology apply for all computers at CRE. Treat them with respect. • Obey the same code of conduct you use in the classroom. • Video games that you create for this club must be acceptable for all audiences. Mr. Heard and I will be the final judge of this.

  4. You Must Learn to Type! • Practice at home or at school! This is something that you will have to learn to be successful at any job, not just programming. • Keep typing the phrase “The quick brown fox jumps over the lazy dog” • We’ve also created a game that will help you learn to type. We’ll talk about it more later.

  5. Microsoft Small Basic • Microsoft Small Basic is a simple version of the BASIC programming language, mainly for kids. However, it’s still very powerful! • BASIC stands for Beginner’s All-purpose Symbolic Instruction Code. It has been around in one form or another since 1964. Children have learned BASIC (in one form or another) for the past 30 years.

  6. Microsoft Small Basic • Programmers have been busy creating Microsoft Small Basic for the past 4 years. It’s very easy to use, and best of all, it’s free! • You can download a copy for any Windows computer (XP or later) at: http://www.smallbasic.com/

  7. Why Am I Teaching This? • My children keep wanting to know how to create a website and a video game. • I started programming when I was 8. (I had to teach myself.) It’s time to pass the torch. • I was inspired by a code.org video called “What Most Schools Don’t Teach” (https://www.youtube.com/watch?v=dU1xS07N-FA)

  8. Using Small Basic • You write your Small Basic programs in an Editor window. • You can run various commands by clicking buttons on the Toolbar. • As you write code, you can find information about commands in the Help window.

  9. You can open and work with multiple Editor windows at one time. • The Editor window that contains the program you are currently working with is the active Editor window.

  10. Your First Program Now press that blue Run button...

  11. ...And This is the Results

  12. Intellisense • You’ll notice that a small window will appear as you start typing. Microsoft calls this Intellisense, and it will try to guess what you’re typing. • If you don’t want to type in the rest of those long words, just use the up and down arrows to choose what you want to type, then hit Enter.

  13. The End Program Button • Sometimes, programs don’t quite do what you want them to do, and you don’t get the “Press any key to continue…” at the bottom. So, how do you get back to the Small Basic editor? • Well, down at the bottom was a button that said End Program. Pressing this button will make sure that your program stops what it’s (not supposed to be) doing and quietly goes away.

  14. The End Program Button

  15. Choose the Save As button on the toolbar and save the program as “helloworld.sb” • Now, close down Small Basic by clicking the red X in the upper right. Now, let’s say it’s the next day and you want to reopen your program. Start Small Basic and click the Open button. Select the program to bring it back up. • In this way, programs are just like Microsoft Word documents... or pretty much any other document program.

  16. How About That Save Button? • It is your friend. Use it often. Pressing the Save button will allow you to save your program using the name is already has. If you haven’t saved anything yet, it’s going to ask you for a name just as if you pressed the “Save As” button.

  17. How About That Save Button? • Programmers save their work early and often. Why? Because they know that computers also have a tendency to break and end abruptly (in programmer’s terms we call that crashing), and if Small Basic or Windows or the whole computer crashes, well, you’ve just lost everything you typed since the last time you saved it.

  18. Import and Publish • Publish will allow you to save your program to Microsoft’s computers on the Internet. (Services like this go by the somewhat dreamy name of “cloud.”) When you do so, you’re going to get a six-letter-or-number code. Write that code down.

  19. Import and Publish • If you’d like Mr. Bob or Mr. Heard or anyone else to look at the BASIC code—maybe something’s not right with it, or you just want to show off what you did—all we have to do is press the Import button and enter that code. We get to see the BASIC that makes up the program, and we can run it.

  20. Other Things • Let’s make a few copies of that first line. Say we want two more copies of that line. • Select the line of text. Then press the Copy button. Put the cursor to the right of the text on line 1. Hit Enter, then press Paste. What happened?

  21. Other Things • Try clicking Paste again. What happened? • Uh oh. It didn’t go on its own line. Well, the good thing is that when we make mistakes, we can easily fix them, by pressing the Undo button. Actually, if we hit the Undo button by mistake, we can press the Redo button.

  22. Other Things • Correct the mistake and make three copies of the line. Save the program and run it.

  23. Import the Following... Play and Get Inspired! • TETRIS • JJZ543 (Typing Tutor) • STARGATES • ASTEROIDS • XDM133 (PacMan) • MDJ923 (Super Pong) • ZZD394 (1942)

  24. Next Time.... • We’re going to learn more about constants and variables.

More Related