StarFall is a lively and challenging dynamic game developed with HTML5 Canvas and JavaScript. This project showcases the power of HTML5 Canvas for graphical rendering and animation, alongside JavaScript for handling game logic and event listening.
As a player, your task is to navigate a falling star through a series of obstacles. The game becomes more challenging as the further you progress - the falling star increases in speed. Simultaneously, the background music increases in tempo, creating an intensifying atmosphere as you dive deeper into the game.
One of the most noteworthy features of this game is the synchronization of game speed and background music tempo. The iOS WeChat mini-program audio API does not natively support dynamic adjustment of music playback speed. A unique solution was implemented to overcome this: multiple versions of the background music at different tempos were prepared in advance. The game seamlessly switches between these versions as the speed of the falling star increases, effectively simulating an accelerating music tempo and ensuring a smooth gaming experience across different devices.
Currently, this game is in the beta stage, hence to test it, you will need to contact me for adding your WeChat account to the whitelist.