-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeclare_balls.py
More file actions
37 lines (36 loc) · 1011 Bytes
/
declare_balls.py
File metadata and controls
37 lines (36 loc) · 1011 Bytes
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
## balls for triangle
balls = [
{
'speed': [0, 0],
'size': ball_size,
'color': (255, 255, 255),
'type': 'main',
'pos': [
circle_center[0] + circle_radius * math.cos(vertex_angles[0]),
circle_center[1] + circle_radius * math.sin(vertex_angles[0])
],
'target_index': 1
},
{
'speed': [0, 0],
'size': ball_size,
'color': (255, 255, 255),
'type': 'main',
'pos': [
circle_center[0] + circle_radius * math.cos(vertex_angles[1]),
circle_center[1] + circle_radius * math.sin(vertex_angles[1])
],
'target_index': 2
},
{
'speed': [0, 0],
'size': ball_size,
'color': (255, 255, 255),
'type': 'main',
'pos': [
circle_center[0] + circle_radius * math.cos(vertex_angles[2]),
circle_center[1] + circle_radius * math.sin(vertex_angles[2])
],
'target_index': 0
}
]