Commit 14eafdee authored by Julian Rudolf's avatar Julian Rudolf
Browse files

generate_graph commented out for docker file issue

parent f7e9700e
......@@ -906,11 +906,11 @@ def select_map():
p1_pos = pos1
p1 = selection_rect(green, 200, 200, p1_pos)
message_screen("Select the Map!", black, -350, "large")
message_screen("If different maps are selected, its random choice", grey, -300, "small")
message_screen("Use arrow keys to move selection", grey, -300, "small")
image_screen(map3_icon, pos1)
image_screen(map5_icon, pos2)
image_screen(map6_icon, pos3)
pygame.draw.rect(Display, black, (int(res_x / 2 + 220), res_y - 300, 100, 30), 8)
# pygame.draw.rect(Display, black, (int(res_x / 2 + 220), res_y - 300, 100, 30), 8)
pygame.draw.rect(Display, black, (int(res_x / 2 - 320), res_y - 300, 100, 30), 8)
p1_map = maps.map3
p1_map_filename = '../Shield/maps/map3.pickle'
......@@ -972,9 +972,9 @@ def select_map():
button("Fast", (int(res_x / 2 - 200), res_y - 300, 100, 30), red, light_red, action="speed65")
button("Medium", (int(res_x / 2 - 320), res_y - 300, 100, 30), yellow, light_yellow, action="speed45")
button("Slow", (int(res_x / 2 - 440), res_y - 300, 100, 30), green, light_green, action="speed25")
button("Long", (int(res_x / 2 + 340), res_y - 300, 100, 30), red, light_red, action="length20")
button("Medium", (int(res_x / 2 + 220), res_y - 300, 100, 30), yellow, light_yellow, action="length15")
button("Short", (int(res_x / 2 + 100), res_y - 300, 100, 30), green, light_green, action="length10")
# button("Long", (int(res_x / 2 + 340), res_y - 300, 100, 30), red, light_red, action="length20")
# button("Medium", (int(res_x / 2 + 220), res_y - 300, 100, 30), yellow, light_yellow, action="length15")
# button("Short", (int(res_x / 2 + 100), res_y - 300, 100, 30), green, light_green, action="length10")
map_select = button("Got the Map", (int(res_x / 2 - 60), res_y - 315, 120, 50), light_blue, very_light_blue, action="loading")
clock.tick(30)
pygame.display.update()
......@@ -1013,8 +1013,9 @@ def loading_screen():
image_screen(p1_snake[2], (-250, 0))
image_screen(p2_snake[2], (250, 0))
pygame.display.update()
set_snake_length(15)
modify_start_pos()
generate_graph(snake_length, map, map_filename)
#generate_graph(snake_length, map, map_filename)
Display.fill(white)
while loading:
for event in pygame.event.get():
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment