MinecraftU / 2021-computer-adventures

Repository for our 2021 Computer Adventures Ruby project!
0 stars 0 forks source link

Fix lag #27

Closed jamespeilunli closed 3 years ago

jamespeilunli commented 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.