diff --git a/README.org b/README.org new file mode 100644 index 0000000..e4cb2ac --- /dev/null +++ b/README.org @@ -0,0 +1,8 @@ +#+OPTIONS: toc:nil + +* gaming-pads +** About +This is a project to study the fundamentals of game programming. +** License +gaming-pads is licensed under the terms of the MIT license. For more information, +see the included LICENSE file. diff --git a/quadtree.py b/quadtree.py index 390342f..799dfc5 100644 --- a/quadtree.py +++ b/quadtree.py @@ -94,10 +94,10 @@ def rect_values(r: Rect): def init(): for n in range(num_balls): - # px = random.randrange(ball_r, screen_width - ball_r) - # py = random.randrange(ball_r, screen_height - ball_r) px = random.randrange(ball_r, 50) py = random.randrange(ball_r, 50) + # px = random.randrange(ball_r, screen_width - ball_r) + # py = random.randrange(ball_r, screen_height - ball_r) angle = random.uniform(0, 360) vx = math.cos(angle) * ball_speed * random.uniform(1, 3) vy = math.sin(angle) * ball_speed * random.uniform(1, 3)