chapter 5 : how to program

8
7 Chapter 5: How to program? It was around 12 am in the night and bella woke up by a loud beeeezzz sound..... .bella looked around and found quba with a Big pot of honey....quba was screaming like “Yahoooo...i’ve won the game and scored 2000 points”.........Quba was so happy and she brought a very big pot of honey for Bella to share her happiness..Bella started laughing seeing quba’s madness on computer..She understood quba is so passionate about computer and thought to give her more lessons though it was night. Yahooooooo…Wake up Bellaaa…I’ve won the game …here is a a big pot of honey for you..

Upload: baabtracom-no-1-supplier-of-quality-freshers

Post on 15-Jan-2017

222 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Chapter  5 : How To Program

7

Chapter 5: How to program?It was around 12 am in the night and bella woke up by a loud beeeezzz sound..... .bella looked around and found quba with a Big pot of honey....quba was screaming like “Yahoooo...i’ve won the game and scored 2000 points”.........Quba was so happy and she brought a very big pot of honey for Bella to share her happiness..Bella started laughing seeing quba’s madness on computer..She understood quba is so passionate about computer and thought to give her more lessons though it was night.

Yahooooooo…Wake up Bellaaa…I’ve won the game …here is a a big pot of honey for you..

Page 2: Chapter  5 : How To Program

7

You can do much more changes in your game like

Change the colour of the bird Change the speed of the bird Changing the score for each word Change the number of life you have Let’s see how to do all these things by changing

the code of our game

1. Changing colour of birdFor changing the colour of bird there is a simple code,

Why not ? Anything is possible by computer programming…I will teach you some simple codes so that you can change the game

The Game was awesome..But I didn’t like the color of the bird... I like red colour more.... I wonder if I can change the colour of the bird, it would be awesome, right?

Page 3: Chapter  5 : How To Program

7

Just play around and find out how to give the above colours to the bird. It is awesome, isn’t it?Note : This language support only 8 coloursss, so you cannot give any other colour that is not mentioned above

2. Changing Speed of birdFor changing the speed of bird, Try below code

RED

ORANGE

bird.color = red

BLUE

PINK

VIOLET

GREEN BROWN

YELLOW

bird.speed = 500

Page 4: Chapter  5 : How To Program

7

Play around with different speed, But it is not recommended to use very high speed or very lower speed. Always play with a moderate speed

3. Changing point for wordsFor changing the point for each word you create, try below

word.point = 200

Page 5: Chapter  5 : How To Program

7

4. Changing number of life’sCurrently you have 5 lifes in the game, For changing it you can try below

game.life = 3

Page 6: Chapter  5 : How To Program

7

See, How wonderful it is? You are getting high scores even without much effort!....But you should not do this to win the game, okey?...Hey my mom is calling..i got to go

Ohhhh..The time gone sooo fast…ok see u