Sure! Here's an example of a pixelated Harry Potter adventure game based on the first movie. Please note that this is a simplified version for illustration purposes, and you can expand on it to create a more comprehensive game.
To use this code, save it as an HTML file (e.g., harry_potter_game.html) and open it in a web browser on your smartphone. The game canvas will display the pixelated Harry Potter character, and you'll be able to control its movement by touching and dragging on the screen.
Please note that you'll need to provide your own image of a pixelated Harry Potter character (replace 'emozi_himawari.png' with the path to your image file). Additionally, you'll need to implement the functions to handle player movement and any other game mechanics you'd like to include in your game.