Skip to content

How do i made notepad in graphics canvas? #2671

Closed Answered by AsertCreator
koteProgrammist asked this question in Q&A
Discussion options

You must be logged in to vote

first, do not cram all your code into one file. it's already very big and i'm guessing you have troubles navigating it. do you have only one class? if so, split it and put into multiple files.

second, use KeyboardManager class to get info on key presses. unlike Console class which waits for next key press, KeyboardManager will not block your code. therefore, canvas would not stop rendering.

third, implement line wrapping if you didn't. it would be very hard to use notepad without ability to make multiple lines or wrapping them.

and fourth, have fun learning things in Cosmos, there is a documentation where all APIs are written.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by koteProgrammist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants