After R&D about blockly games and structures :
- To begin, I reviewed the implementation of slider speed in the turtle game.
- For the maze game, I conducted a test to implement slider speed. After a few tries, I successfully implemented it.
- Recognizing the need for a centralized custom slider speed with global configuration, I created a slider.js file in the src folder, which other games can utilize.
I will now explore ways to refactor the code. (Complete)
Challenges:
- Different formula for stepSpeed.
If we have different formula for stepSpeed (for example in music game) , we need to pass a config json into custom slider speed in each game instead a default formula.
make deps && make maze && make bird