jakubg1 / OpenSMCE

Game engine which allows creating a broad range of marble popper games.
MIT License
14 stars 11 forks source link

Add a better option for removing spheres in a group #121

Open jakubg1 opened 10 months ago

jakubg1 commented 10 months ago

Add a new function, SphereGroup:destroySpheresList(positions), which takes a list of any arbitrarily chosen spheres, instead of having just a function for a single sphere and a function for a number of consecutive spheres. The group would be divided and speeds correctly applied, instead of iterating through spheres and removing them one at a time from somewhere else. This poses problems with correct speed applying depending on which spheres lie on each end of a gap due to them being applied in the middle of the sphere destruction process.