Exemple #1
0
def display_high_score(screen, highscore_list):
    location = 2
    inputask.update_text(screen, "High Scores", location-1, 30)
    for user in highscore_list:
        location +=1
        #message = user[]
        inputask.update_text(screen, "Top " + str(location-2) +" : "+user.name + ",  "+ str(user.score) , location,22)  
Exemple #2
0
def display_instructions(screen):
    location = 1
    fontsize = 22
    Tower_Placement = "How to play: Click anywhere on the map area to add defense towers"
    Enemy_waves = "How enemies move: they come out in batches randomly from the border of the map"
    Enemy_kill = "How enemies kill: they only kill when they are next to the tower"   
    Game_money = "How to earn gold: kill enemies to earn gold and spend gold to build towers"
    Game_win = "How to win: kill as many enemies as possible to achieve higher score"
    
    Enemy_grow = "Watch out! Enemies come out later with more HP and more killing power (also worth more gold!)"

    inputask.update_text(screen, "Instructions" , location,30)
    inputask.update_text(screen,  Tower_Placement, location+2, fontsize)
    inputask.update_text(screen,  Enemy_waves, location+4, fontsize)
    inputask.update_text(screen,  Enemy_kill, location+6, fontsize) 
    inputask.update_text(screen,  Game_money, location+8, fontsize)
    inputask.update_text(screen,  Game_win, location+10, fontsize)
    inputask.update_text(screen,  "Have Fun!!!!! But....", location+12, fontsize)
    inputask.update_text(screen,  Enemy_grow, location+14, fontsize)

    pass