From c3e21426e7c1b81c7a8a4f10124e47ae62166c96 Mon Sep 17 00:00:00 2001 From: Alex Clink Date: Wed, 17 Nov 2021 23:51:15 -0500 Subject: [PATCH] Increase center no-spawn area --- src/asteroids.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asteroids.cr b/src/asteroids.cr index 3e7f78f..5648d7c 100644 --- a/src/asteroids.cr +++ b/src/asteroids.cr @@ -51,7 +51,7 @@ class Asteroids < Game end def generate_asteroids - center_size = Vector2.new(20.0, 20.0) + center_size = Vector2.new(50.0, 50.0) center_pos = Vector2.new((width.to_f / 2.0) - (center_size.x / 2.0), (height.to_f / 2.0) - (center_size.y / 2.0)) @asteroid_count.times do