コード例 #1
0
map.addenemy(Scobot(1200,450,20,30))
"""
#scoreboard = ScoreBoard(gamearea)
#map.addenemygroup(ScobotGroup(1000,300,5))
#colidegroup = pygame.sprite.Group(collidable)

#group containing player and platforms
#platformsandplayer = pygame.sprite.Group(platform1, platform2, ship)
#enemies sprite group
#enemies = pygame.sprite.Group(alien1)
#shootLoop = 0
#bullets = []
run = True
totalscore = 0
xoffset = ship.calculatexoffset(screen,gamearea)
yoffset = ship.calculateyoffset(screen,gamearea)
win.blit(view, (0,0))
ship.draw(win)
#mainloop

#testcount = 0
while run:
    clock.tick(27)

    #testcount += 1
    #print("Running",testcount)

    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            run = False