-
Notifications
You must be signed in to change notification settings - Fork 0
/
cars.kv
51 lines (50 loc) · 1.74 KB
/
cars.kv
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<Cars>:
bottom_body_position: self.road_center - self.GAP_SIZE - 25
top_body_position: self.road_center + self.GAP_SIZE + 50
canvas.before:
Rectangle:
# Car one
size: 144, 67
pos: self.pos[0], self.bottom_body_position
texture: self.car_body_texture
tex_coords: self.lower_car_tex_coords
Rectangle:
# Truck
size: 144, 75
pos: self.pos[0], self.top_body_position
texture: self.truck_body_texture
Rectangle:
# Suv
size: 144, 70
pos: self.pos[0] + 60, self.bottom_body_position -90
texture: self.suv_body_texture
Rectangle:
# Truck 2
size: 144, 75
pos: self.pos[0], self.bottom_body_position - 190
texture: self.truck_two_texture
Rectangle:
# Car 3
size: 144, 67
pos: self.pos[0] - 40, self.top_body_position + 90
texture: self.car_three_texture
Rectangle:
# Truck 3
size: 144, 75
pos: self.pos[0], self.top_body_position + 190
texture: self.truck_three_texture
Rectangle:
# Suv
size: 144, 70
pos: self.pos[0] + 60, self.top_body_position + 290
texture: self.suv_two_texture
Rectangle:
# Suv 1
size: 144, 70
pos: self.pos[0], self.bottom_body_position - 280
texture: self.suv_one_texture
Rectangle:
# Car 4
size: 144, 70
pos: self.pos[0], self.bottom_body_position - 370
texture: self.car_four_texture