0
Make screen in C++
I want to make a snake game in C++ but anybody can tell me how to make screen in console, I searched on Google it shows me something like buffer screen plz tell me how can create screen
5 Respostas
+ 1
I'm guessing you mean create screen as graphics.
I don't think one can do that with it since C++ alone doesn't support specific keyboard inputs, you will need a input library to do it.
0
why make a snake game on console when you can use SDL or SFML to make that game like a real man today!
0
I basically create console based application so I need to know how can be create screen in console it's also be beneficial for practicing purpose
0
Shubham Singh Bhadauriya you can look at/use ncurses/curses library at least available for unix-based systems: there should be at least an alternative in ms(-dos) world...
https://en.m.wikipedia.org/wiki/Ncurses
http://www.cs.ukzn.ac.za/~hughm/os/notes/ncurses.html
https://www.linuxjournal.com/content/getting-started-ncurses
however, this will not work in sololearn code playground context, as sololearn compile/run scripts on server sides, preventing real interactivity ^^
- 1
U need to learn double linked list data structures