Instead of creating the objects at every levels, we can re-use the ones created in the previous level. If there are not enough, we'll need to create the difference, if there are too much, we can either remove the last ones or not display them
Description
For now, at each level, we delete the existing elements (walls, holes...) and create them again for a new level.
It takes time to create and delete the elements (especially with slow computers/tablets). The aim is to have a pool of elements that will be created at start of the activity and that we can use to do the elements instead of creating all of them at each level.
We have to find a compromise between the number of elements created at start (no need to create 100 walls at the beginning, it will take too much time too) and the number of elements we may need for the next level to avoid to have to wait too much for the creation of the level.
@jjazeix Hi, I was trying to run the Balancebox activity but am getting a error as "module Qtsensors not found". I have installed the libqtsensors5-dev and libqtsensors5 package on Ubuntu but still am getting the same error. Can you please help me with this issue?
@dekumar I can't test but it seems there is also a package qml-module-qtsensors, can you check if installing it solves your issue?
@jjazeix Thanks! I was able to resolve the issue by installing qml-module-qtsensors package.