[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Back to this thread again ! .. Hello ! Could you give me a
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 7
Thread images: 1
File: paccman.png (13 KB, 835x488) Image search: [Google]
paccman.png
13 KB, 835x488
Back to this thread again ! ..

Hello !
Could you give me a hint how can i create text next to the array ? Is it something with goto x/y ?
>>
there are specific console APIs

SetConsoleCursorPosition


You'll need to get a handle and then call that API after you changed the cursor position
>>
>>54462674
i thought about creating line that will count the score (points / lifes that are left etc.) and place it next to the pacman gameboard. My friend told me that i should focus on gotoxy
>>
>>54462597
check out pdcurses/ncurses
>>
>>54462707
will do
>>
>>54462706
Using APIs is faster for what you want to do, the only drawback is the portability really. Also if you want to update your console content multiple times per second, rewriting the whole buffer will be slow and will cause blinking.
>>
>>54462597
Don't ask me, Michael
Thread replies: 7
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.