Pixel Paint Version 2
Posted: Thu Dec 23, 2010 10:25 am
I did a little bit extra with this today and am just using it as a learning experience really.
I have version 2 for download, I have come up with a better way to detect keypresses (which is independent of the normal key repeat rate) Which allows you to increase or decrease the rate yourself. This version also allows multiple key presses at the same time, I have worked on the flicker a little bit also. And lastly, I have added a NES control pad to show what you have pressed.
For the keypresses, I have set a flag when the key is pressed and then the flag is only cleared when the key is then released. A timer is then called to update the graphics dependent upon what is stored within the flags.
Once again, the keys are:
H = UP
N = DOWN
B = LEFT
M = RIGHT
A = PAINT PIXEL
ScreenShot: Exe File Download:
I have version 2 for download, I have come up with a better way to detect keypresses (which is independent of the normal key repeat rate) Which allows you to increase or decrease the rate yourself. This version also allows multiple key presses at the same time, I have worked on the flicker a little bit also. And lastly, I have added a NES control pad to show what you have pressed.
For the keypresses, I have set a flag when the key is pressed and then the flag is only cleared when the key is then released. A timer is then called to update the graphics dependent upon what is stored within the flags.
Once again, the keys are:
H = UP
N = DOWN
B = LEFT
M = RIGHT
A = PAINT PIXEL
ScreenShot: Exe File Download: