realpvz / blockly-games

Games for tomorrow's programmers.

Home Page:https://blockly.games/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slider speed in bird and maze games

After R&D about blockly games and structures :

  1. To begin, I reviewed the implementation of slider speed in the turtle game.
  2. For the maze game, I conducted a test to implement slider speed. After a few tries, I successfully implemented it.
  3. 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.

Getting started

make deps && make maze && make bird

About

Games for tomorrow's programmers.

https://blockly.games/

License:Apache License 2.0


Languages

Language:JavaScript 83.1%Language:HTML 8.8%Language:Python 4.4%Language:CSS 2.4%Language:POV-Ray SDL 0.6%Language:Makefile 0.6%Language:Shell 0.0%