, .
Visual Basic . , . , , . , .
, :
. =
. [1 [...]]
; , ; , ; ; , .
, , - . Move. , .
, . Draw ( ), Move ( ) ChangeColor ( ), . , (, , ) (, , ), .. .
- " " , () - . (, . .) , , - ( , . .), . , , , . , , .
, .. (), "" () (). . 1 .
.1.
, -, Round.
Round :
|
|
R ;
X, Y ;
Color .
Round:
Draw ;
Move ;
ChangeColor .
, -. Head, Body, a Foot. Round. , (R, X, Y, Color) (Draw, Move, ChangeColor) .
, . , . , .
, . - , -, Round, . , , . Eyes (), , Round, Blink (). Eyes , Round.
, . . Round, . . Eyes, Blink, , .. Eyes Round , , Blink. Eyes Round, , Round ( ) Eyes. , Eyes ( Round.
, -, -. . 1.
, .
(), . (), , .
, (, ), , (, , ). , , - (, ), .
|
|
1. Eyes Round
Round | |
R | |
X | |
Y | |
Color | |
Draw | |
Move | |
ChangeColor | |
Eyes | |
R | |
X | |
Y | |
Color | |
Draw | |
Move | |
ChangeColor | |
Blink |
Rect, Round, X Y , a R ( ). ( ). , , Round, .
Round , .. , . :
;
Left ;
Height ;
Width .
. , ( ) , .
= 80,
Left = 20,
Height = 40,
Width = 60.
Left + Width = 80,
Height = 40.
, ( , ): (20, 80), (80, 80), (20, 40), D(80, 40).
Round Rect . , . .. , Rect Draw , , Draw , Rect, , .
, Rect Draw. , Round, Draw , Rect . .. Draw , . . . 2.
Rect | Draw | |||
Round |
2. Draw Rect
Round