Set up your Ascii Game in C/C++ (NCURSES & WINDOWS.H)

preview_player
Показать описание
Set up your ascii game the right way!

#ascii #game #c #cpp

Time codes:
0:00 intro
0:21 ncurses.h
3:37 example
5:38 windows.h
7:20 example

Code:

Music used:
lukrembo - afternoon (royalty free vlog music)

Ghostrifter Official - Hot Coffee☕ [Lofi Study Music]

lukrembo - butter (royalty free vlog music)
Рекомендации по теме
Комментарии
Автор

Hey in the example that I've shown, I've completely forgotten to free the memory allocated for the map before exiting the game (bad practice). So I've just updated the code.

doubleprogram
Автор

but how to install ncurses in windows please someine ?

exik_twitch
Автор

hey! in the setconsolesize function, the arguments represent the width and height in pixels or number of characters of the console?Also do you know a way to shrink or expand the size of the characters in pixels giving the illusion of higher or lower resolution? Also wanted to thank for this video!

exy
Автор

Please note `getch()` has been deprecated for decades, serves no benefit, and harms new users who may not have the library. `getchar()` or a `scanf` function is more appropriate.

We should limit the scope of the ncurses library to those functions specific to ncurses (meaning: getch is available in ncurses, but it has nothing to do with how ncurses work, and using it will create a dependency on something obsolete. That makes the code less easily portable. Cheers.

thisisreallyme
Автор

есть ли у тебя телеграмм, есть пару вопросов друг !

smileboy
welcome to shbcf.ru