Sure! Here's an example of a simple game where you can control a knight using arrow keys on a smartphone. The game is implemented as a single HTML file with JavaScript enclosed in script tags.
To use this code, save it into an HTML file (e.g., `game.html`) and also make sure to have an image file named `emozi_hamuster.png` in the same directory, which will be used as the pictogram for the knight. You can use any image you like for the knight.
When you open the HTML file on a smartphone, you will see a knight on the screen. You can then control the knight's movement by tapping the arrow keys on the on-screen keyboard.
Please note that this is just a basic example to get you started with a knight-controlling game. You can expand upon this code to add more game elements, levels, objectives, and so on, based on your specific requirements and game design.