pixel
pixel copied to clipboard
Improve typing example
I have seen this wonderful example: Typing text on the screen, but still needs some improvement:
- show cursor(this is done in this example: https://github.com/faiface/pixel-examples/tree/master/typewriter)
- move the cursor when the mouse button or arrow keys clicked
- delete character when pressed
backspace
ordelete
key - show line numbers, just like a code input field, like below:
![image](https://user-images.githubusercontent.com/16718108/136421573-b0c47b7b-ddce-43e0-a00e-ccbf2f34b460.png)
I found games of Codemonkey, there is a code text field on the right half of screen, like below:
![image](https://user-images.githubusercontent.com/16718108/136491870-cf09bd67-6e0c-4578-a66a-5657be8460a1.png)
Codemonkey's games are written in js and html, maybe easy to support such a widget, can Pixel support one?