From d1a24b08a1f7cea20d33765b89478daf948923c6 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Wed, 31 Jul 2024 05:56:15 +0700 Subject: [PATCH] Add README.org --- README.org | 8 ++++++++ quadtree.py | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 README.org 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)