简体   繁体   中英

Creating a 2D Sprite Based Game in C++ without OpenGL, Vulkan, etc

This might not be the best place to pose this question. Just a warning. Anyways, continue. I was wondering if there is a way to make a simple 2D game purely using the command prompt without any graphics libraries like OpenGL and Vulkan, as I have already made a fairly adequate real-time game engine with OpenGL and Vulkan. Just for a little bit of extra information, I am on Windows and have a fairly large understanding of most advanced C++ topics. Are there any API functions where I can draw pixels directly to the console? I have seen that used before but didn't fully understand how to use it.

By "2D sprite-based", I'm guessing you want to have actual raster graphics and not ascii graphics (ie text-based )

If you're going to do this, you need to have a way to interface with the integrated graphics hardware or card.

On Windows, there is the GDI.

I would get started with this link. Microsoft GDI

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM