GuillemBarroso / CLing

2D survival game using command line
MIT License
3 stars 1 forks source link

Fix delete and Selection object #65

Closed GuillemBarroso closed 1 year ago

GuillemBarroso commented 1 year ago

Fix #61.

Some bugs have been fixed. Still trying to fully fix the fact that we keep pressing the backspace for a bit after the delete event has passed. This results in deleting one more character after deleting the selection. The fix, for now, is to add a small delay when deleting characters, so the user has time to release the backspace key.

A Selection object has been implemented with proper unit testing.