Closed jamespeilunli closed 3 years ago
closes #19 Fixes the lag issue caused by ruby2d drawing all the squares initialized with Square.new. It fixes this by putting the square instances in a matrix and calling .remove on each item in that matrix when a new frame is drawn.
Square.new
.remove
closes #19 Fixes the lag issue caused by ruby2d drawing all the squares initialized with
Square.new
. It fixes this by putting the square instances in a matrix and calling.remove
on each item in that matrix when a new frame is drawn.