2 digi girlz small basic

Post on 07-Nov-2014

2.237 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Using Small Basic - Author Lynn Langit

TRANSCRIPT

Small BasicGames + Programming

== Fun

Goals

What, who, why, when/where, how

Make a turtle move

Turtle square

Turtle spirograph

Extra credit – play with fractal, change values

Next steps (learn more)

Environment

EditorInstant Help

Intellisense

Ribbon

Stopping a running

program

Buttons

File Buttons

• New, Open, Save

Web Buttons• Import, Publish

Clipboard Buttons

• Cut, Copy, Paste, Undo, Redo

Program Buttons

• Run

Don’t forget to save your

program Use this a lot!

This is how you make a turtle draw a line

using code.

When things go

wrong

Errors Popup

This is how you draw a square

Going Faster

Variables

Loops

Calculate Angle

Polygon

This is how you draw a

spirograph.

This is how you draw a cool

shape.

Learn More…

Watch the Small Basic site on DevLabs

Sync

Change Colors

Colorful

Background

Pong

Paddle

Ball

Score

PaddleName: paddleColor: BlueWidth: 120Height: 12

Add Paddle

Color and size of paddle

BallName: ballColor: RedWidth: 20Height: 20

Add Ball

Color and size of ball

Move the Paddle

Initialize Values

Initialize Ball Position, Delta, Score and Size

Move the Ball

Bounce the Ball – Left and

Right Wall

Bounce the Ball – Top

Wall

Bounce the Ball – Paddle

If ball hits the paddle, increase

the score

Score

Print Score, when you update it

Full Game!

Add Sounds!!

Add a background

Get Microsoft Software for FREE

For high school and college students - DreamSpark

For startup businesses - BizSpark

For everyone / Express editions – VS and SQL - here

top related