forked from Jeohang/PYPYGAME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMap.py
36 lines (35 loc) · 1.15 KB
/
Map.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import pygame as pg
import Action
import SQW
pg.init()
display_width = 800
display_height = 450
ourScreen = pg.display.set_mode((display_width, display_height))
rect_x = 80
rect_y = 80
arrow_r = pg.image.load("arrows\\arrow_r.jpg")
arrow_l = pg.image.load("arrows\\arrow_l.jpg")
arrow_d = pg.image.load("arrows\\arrow_d.jpg").convert_alpha()
arrow_u = pg.image.load("arrows\\arrow_u.jpg")
straight = pg.image.load("button\\straight.jpg")
left = pg.image.load("button\\left.jpg")
right = pg.image.load("button\\right.jpg")
action = pg.image.load("button\\action.jpg")
clear = pg.image.load("button\\clear.jpg")
run = pg.image.load("button\\run.jpg")
quit = pg.image.load("button\\quit.jpg")
option = pg.image.load("button\\option.jpg")
map1 = pg.image.load("maps\\map1.jpg")
map2 = pg.image.load("maps\\map2.jpg")
map3 = pg.image.load("maps\\map3.jpg")
left_f = pg.image.load("button\\left(50x50).jpg")
right_f = pg.image.load("button\\right(50x50).jpg")
action_f = pg.image.load("button\\action(50x50).jpg")
straight_f = pg.image.load("button\\straight(50x50).jpg")
a = 20
b = 25
current_x = 20
current_y = 25
map_list = [map1, map2, map3]
function_x = 610
function_y = 300