Fun with Shapes - download.microsoft.com

Fun with Shapes - download.microsoft.com

Microsoft Small Basic Playing with Shapes Estimated time to complete this lesson: 1 hour Playing with Shapes In this lesson, you will learn how to: Create games with the help of shapes. Create game elements by using various properties and operations of the Shapes. Fun with Shapes

So far, youve learned about drawing various shapes with the help of the Shapes object in the graphics window. Now its time to have some fun with shapes Do you know you can play with shapes and create games? As you know, you can use various operations of the Shapes object to draw, color, rotate, and animate shapes in the graphics window. Now you will learn how you can use different shapes to make games. Lets start with a very simple game that you can create by using the Shapes object in Small Basic.

Balancing the Ball The Game In this simple game, you balance the ball on a seesaw in the graphics window. The game tests a persons responsiveness. The timer displays how much time the user keeps the ball balanced on the seesaw. Notice how you can create different shapes with the Shapes object

to add colorful elements to the game. Balancing the Ball How to Play So how do you play this game? Steps to play the game: First, you drop the ball on the seesaw by pressing ENTER on the keyboard. After you drop the ball, you press the LEFT ARROW key and the RIGHT ARROW key on the

keyboard to balance the ball on the seesaw without dropping the ball. Balancing the Ball The Code Now lets understand the code for the game in detail You create a user interface for the game by using the GraphicsWindow object. You add a shape and move it by using different operations and

properties of the Shapes. You add event handlers and use different conditions for different actions. Hit the Right Shape The Game Now lets move on to a more complex game. In this game, you score points by using the mouse to select the correct shape from the shapes that appear in the graphics window. The objective of the game is to score points by clicking the correct shape.

Again, notice how we are using different types of colorful shapes by using the Shapes object. Hit the Right Shape How to Play So how do you play this game? Steps to play the game: Various shapes move across the screen. A shape name appears briefly, and the user must click the shape that

matches the shape name. The user scores points for clicking the correct shape. Hit the Right Shape The Code Now lets understand the code for the game in detail You create a user interface for the game by using the GraphicsWindow object. You add the text box and set the text in the text box by using different operations of the Controls object. You

add and move different types of shapes by using the Shapes object, and you add a timer by using the Clock. In addition, you set different conditions to carry out different actions. Lets Summarize Congratulations! Now you know how to: Create games by using shapes. Create game elements by using various properties and operations of the Shapes object.

Show What You Know Write a program to display a graphics window, and then perform the following steps: Create a slightly opaque flower in the graphics window by using various shapes. Create a separate panel that contains separate, corresponding shapes that you have used to create the flower. Drag each shape from the panel

to recreate the flower.

Recently Viewed Presentations

  • Parametric Shape Analysis via 3-Valued Logic

    Parametric Shape Analysis via 3-Valued Logic

    Admin. Compiler Project 50%. 4-4.5 practical exercises. Groups of 3. Final exam 50% . must pass
  • A group of Archipelago islands A coral island

    A group of Archipelago islands A coral island

    A deep, narrow valley with steep sides often carved by a river. Cape. A point or extension of land jutting out into water as a projecting point. Cascade. One of a series of steep usually small falls of water. Cataract....
  • ภาพนิ่ง 1 - University of Phayao

    ภาพนิ่ง 1 - University of Phayao

    Greenwichเป็นเมืองเล็กๆอยู่ตรงฝั่งตะวันออกเฉียงใต้ของลอนดอน เป็นเมืองที่มีชื่อเสียง เทคโนโลยีเรื่อง " การเดินเรือ "เริ่มต้นที่นี่เมื่อในอดีต ...
  • FastCat

    FastCat

    Times New Roman Rage Italic Default Design FastCat Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 ...
  • PowerPoint Template - Trane

    PowerPoint Template - Trane

    Improving part loadefficiencyis key to reduce building energyconsumption. Monthlytypicalload in comfort application. Selection conditions. ... Tracer UC800. Intuitive navigation throughcolortouchscreen display. Immediate, easy to read, chiller information.
  • Progress in developing large-area high resolution photo-detectors (LAPPD)

    Progress in developing large-area high resolution photo-detectors (LAPPD)

    Incom. has made great strides in making substrates- the 3-pt joint of the . multis. seems solved; some cleaning issues remain and are being worked on. Strong UHV test facilities have been constructed at SSL and ANL (this was a...
  • Diapositive 1 - sites.google.com

    Diapositive 1 - sites.google.com

    Classeur pédagogique du formateur Justifications Le formateur ne planifie pas le déroulement des modules Absence de préparation des séances de formation Gestion du temps des séances aléatoire L'EFP ne maîtrise pas l'origine des contenus Absence de fiches d'animation des séances...
  • Introduction to The Anglo Saxon Period & Beowulf

    Introduction to The Anglo Saxon Period & Beowulf

    Introduction to The Anglo Saxon Period & Beowulf. How does this image compare/contrast with the hero image you and your group created prior to viewing this and beginning Beowulf? (Other than the obvious of actually resembling a human and not...