当前位置:网站首页>Scratch Programming flying birds Development Notes 0604

Scratch Programming flying birds Development Notes 0604

2022-06-09 21:44:00 pyhui2020

Upload background

 Insert picture description here

 Insert picture description here

Remove white
Other reservations

Notification of the start of the game

Click on the red flag to create a random background image
 Insert picture description here

 Insert picture description here
 Insert picture description here

By the way, remove the protagonist kitten

 Insert picture description here

Add floor

 Insert picture description here
Resize

 Insert picture description here

Let the game move from the beginning

 Insert picture description here

The problem is

 Insert picture description here

terms of settlement

 Insert picture description here
effect

 Please add a picture description

Add pipe

Upload character pictures

 Insert picture description here
Select pipe

 Insert picture description here
The pipe is very small

 Insert picture description here
Picture bigger , Place on the right

 Insert picture description here

Keep copying yourself

 Insert picture description here
effect

 Please add a picture description

Let the pipe fluctuate up and down

Change the vertical direction of the pipe

First find the maximum and minimum values

Let the body display temporarily for a while to see the position

 Insert picture description here
 Insert picture description here

Write random code

 Insert picture description here
effect

 Please add a picture description

The pipe disappears when it touches the left

First measure the leftmost x The data of

 Insert picture description here
Judge to reach the leftmost and deal with

 Insert picture description here
effect

 Please add a picture description

Finally, remove the display block of the main body

 Insert picture description here

Birds come on stage

Import role
Guide a bird

 Insert picture description here

The picture is a little big

 Insert picture description here

smaller

 Insert picture description here

Let the birds fly

Add a new shape

 Insert picture description here
 Insert picture description here

Write code to make birds fly

 Insert picture description here

effect

 Please add a picture description

The bird sinks and the space takes off

Create two new variables
Velocity and acceleration

 Insert picture description here
Set the value change of two variables

 Insert picture description here

effect

 Please add a picture description

Score and sound of gold coins

Upload a sound to the pipeline object

 Insert picture description here
Add score variables

 Insert picture description here

Measure the abscissa of the pipeline

 Insert picture description here

Write code to repeatedly monitor scores

 Insert picture description here

The sound of collision and death

Import death sound

 Insert picture description here

Death detection code

 Insert picture description here

effect

 Please add a picture description

solve bug

Pipe stop

 Insert picture description here

Ground stop

 Insert picture description here

Settlement page

Introduce controls

 Insert picture description here

Hide at start show at end

 Insert picture description here

Score initialization and display hide

 Insert picture description here

effect

 Please add a picture description

原网站

版权声明
本文为[pyhui2020]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206092107067481.html