Sure! Here's an example implementation of the game you described:
😀
In this implementation, you can control the emoji using the arrow buttons (`←`, `→`, `↑`, `↓`). The `C` button transforms the emoji into a dragon and vice versa. Pressing the spacebar throws fire (console log in this case) when the dragon is active.
Please note that this is a basic implementation and may require further enhancements according to your specific requirements.