File simulatie/paths.py changed (mode: 100644) (index ffa389c..eea4fc9) |
1 |
1 |
#!/bin/env python |
#!/bin/env python |
2 |
2 |
|
|
|
3 |
|
n7 = [(30*17.5,1)] # WIP |
|
4 |
|
|
|
5 |
|
n8 = [(30*18,1),(30*17.5,165)] |
|
6 |
|
n8_1 = [(30*9+20,160),(30*12,160),(30*15,165),(30*16+10,165),(30*17.5,165)] |
|
7 |
|
|
|
8 |
|
e1_1 = [(30*17.5,165),] # WIP |
|
9 |
|
|
3 |
10 |
s1 = [(30*16,599),(30*15.8,500),(30*14,450),(30*11,390),(30*9,360)] |
s1 = [(30*16,599),(30*15.8,500),(30*14,450),(30*11,390),(30*9,360)] |
4 |
11 |
s1_1 = [(30*9,360),(30*9+10,310),(30*9+20,210),(30*9+20,150)] |
s1_1 = [(30*9,360),(30*9+10,310),(30*9+20,210),(30*9+20,150)] |
5 |
12 |
|
|
6 |
|
|
|
7 |
|
e7 = [(1,360),(30*6,340),(30*9,360)] |
|
|
13 |
|
w1 = [(1,255),(60,240),(30*6.5,150),(30*9+20,150)] |
|
14 |
|
w7 = [(1,360),(30*6,340),(30*9,360)] |
File simulatie/sim.py changed (mode: 100644) (index 176d93e..0b8f687) |
... |
... |
def drawSpoorlijn(): |
35 |
35 |
pygame.draw.lines(screen, (139,62,17), False, [(30*i,545-3.7*i),(30*i,565-3.7*i)], 2) |
pygame.draw.lines(screen, (139,62,17), False, [(30*i,545-3.7*i),(30*i,565-3.7*i)], 2) |
36 |
36 |
|
|
37 |
37 |
def drawStrook35(): |
def drawStrook35(): |
38 |
|
pygame.draw.rect(screen, (120,120,120), (30*16,599,5,5),10) |
|
39 |
|
pygame.draw.rect(screen, (120,120,120), (30*15.8,500,5,5),10) |
|
40 |
|
pygame.draw.rect(screen, (120,120,120), (30*14,450,5,5),10) |
|
41 |
|
pygame.draw.rect(screen, (120,120,120), (30*11,390,5,5),10) |
|
42 |
|
pygame.draw.rect(screen, (120,120,120), (30*9,360,5,5),10) |
|
|
38 |
|
pygame.draw.rect(screen, (120,15,62), (30*18,1,5,5),10) |
|
39 |
|
pygame.draw.rect(screen, (120,120,120), (30*12,160,5,5),10) |
|
40 |
|
pygame.draw.rect(screen, (120,120,120), (30*15,165,5,5),10) |
|
41 |
|
pygame.draw.rect(screen, (120,120,120), (30*16+10,165,5,5),10) |
|
42 |
|
pygame.draw.rect(screen, (120,120,120), (30*18-15,165,5,5),10) |
43 |
43 |
# pygame.draw.rect(screen, (120,120,120), (30*6,340,5,5),10) |
# pygame.draw.rect(screen, (120,120,120), (30*6,340,5,5),10) |
44 |
44 |
# pygame.draw.rect(screen, (120,120,120), (1,360,5,5),10) |
# pygame.draw.rect(screen, (120,120,120), (1,360,5,5),10) |
45 |
45 |
|
|