Hardware Reference
In-Depth Information
screen.fill(cBackground)
background.fill(cBackground) # make background colour
#screen bounding box
pygame.draw.rect(background,(0,0,255), (0,0,;
800,screenHeight),walkIncrement*2)
block1(70,70, walkIncrement)
block1(230,70, walkIncrement)
block1(634,70, walkIncrement)
block1(468,70, walkIncrement)
block2(70,178, walkIncrement)
block2(634,178, walkIncrement)
block3(314,178, walkIncrement)
block3(314,412, walkIncrement)
block3(314,520, walkIncrement)
pygame.draw.line(background, blue, (playWidth/2, 0),;
(playWidth/2,100),walkIncrement) # centre bar
pygame.draw.line(background, blue, (0, 280),;
(155, 280),walkIncrement)#tunnel 1 left top
pygame.draw.line(background, blue, (playWidth-155, 280),;
(playWidth, 280),walkIncrement) # tunnel 1 right top
pygame.draw.line(background, blue, (0, 344),(155,;
344),walkIncrement)#tunnel 1 left bottom
pygame.draw.line(background, blue, (playWidth-155, 344),;
(playWidth, 344),walkIncrement) # tunnel 1 right bottom
pygame.draw.rect(background, cBackground, (0,285, ;
walkIncrement+1, 8 + pieMan),0) # clear tunnel sides
pygame.draw.rect(background, cBackground, (playWidth-;
walkIncrement,285, walkIncrement, 8 + pieMan),0)
pygame.draw.line(background, blue, (245, 178),(245,;
288),walkIncrement)
pygame.draw.line(background, blue, (555, 178),(555,;
288),walkIncrement)
pygame.draw.line(background, blue, (245, 258),(260,;
258),walkIncrement)
pygame.draw.line(background, blue, (540, 258),(555,;
258),walkIncrement)
pygame.draw.line(background, blue, (245, 350),(245,;
380),walkIncrement)
pygame.draw.line(background, blue, (555, 350),(555,;
continued
Search WWH ::




Custom Search