olcPixelGameEngine
asteroids-demo
Our great sponsors
olcPixelGameEngine | asteroids-demo | |
---|---|---|
43 | 5 | |
3,714 | 36 | |
- | - | |
4.2 | 0.0 | |
16 days ago | over 1 year ago | |
C++ | C | |
GNU General Public License v3.0 or later | The Unlicense |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
olcPixelGameEngine
-
Best C++ Game Framework
If you want something simple (single file to drop in a project) with a nice easy C++ API for 2D graphics there is OneLoneCoder's Pixel Game Engine.
-
I'm struggling
And if you want to try making a small game with rudamentary graphics, but not go full OpenGL/DirectX, take a look at OLC pixel game engine. It's a one header graphics library that will allow you to draw simple shapes, text, etc. perfect for prototyping or making very simple games. Eventually you'll want to try making Pong to take your training to the next level, so this will be perfect for that.
-
Easiest way to do 2d graphics
For a beginner I’d recommend the One Lone Coder Pixel Game Engine olcPixelGameEngine It is a single header library, works in Windows, Mac and Linux. The author also has some great game programming videos on his YouTube channel OLC YouTube
-
C++ 2D Game Development 9 - Networking
The source code is public and under the license of the olcPixelGameEngine found at: https://github.com/OneLoneCoder/olcPixelGameEngine
- LumoclastFW 10 - Networking System
-
How can I make graphics games using cpp?
All you need is here. Just put the .h file in your project and you're done.
But if you just want to create Tetris or Soduko I would actually recommend OLC pixel game engine. It's the absolute simplest graphics library you could possibly imagine. Just include one file and you're good to go, it takes less than 10 minutes to get something up on the screen. You can't create anything complex with it of course, but you just need to draw simple shapes and text on the screen so it's perfect for that.
- I have a decade+ old pc x32. And these are my options to work for the next weeks. I chose SFML.
-
Looking for a 2d graphics framework for my needs
SFML isn't bad. But I had a lot of issues with it. If you want a super lightweight engine with basically only a minimal amount of functions and can get stuff drawn on the screen fast then I'd say Pixel Game Engine. Just a single .h file and you are good to go. There are extensions for it for more functions like game pad support. C++ only and it doesn't hold your hand or get in the way. https://github.com/OneLoneCoder/olcPixelGameEngine
- C++ for graphic programming
asteroids-demo
-
Intermediate level systems programming projects/textbook recommendations?
A game: you could learn how to use a cross-platform library like SDL or you could write your own from scratch. Here's a really simple example of a video game implemented for windows using nothing but native API calls. If you're using linux, it would be a fun exercise to convert that to X11 calls.
-
space-shooter.c: A cross-platform, top-down 2D space shooter written in C using only system libraries
I've never used WASAPI, just DirectSound (example), so I can't say much. I managed to get this WASAPI example to work with Mingw-w64 on Windows, though not Wine:
-
To program basic 1980's style 2D games, and basic non-native UI interface-forms (including positioning text on screen), which graphics library would you recommend?
Asteroids (guide to source)
-
Can I make games in C?
Source: https://github.com/skeeto/asteroids-demo Source guide/walkthrough: https://idle.nprescott.com/2021/understanding-asteroids.html
What are some alternatives?
raylib - A simple and easy-to-use library to enjoy videogames programming
SDL - Simple Directmedia Layer
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
raygui - A simple and easy-to-use immediate-mode gui library
LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
The-Forge - The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
entt - Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more
bgfx - Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
gzdoom - GZDoom is a feature centric port for all Doom engine games, based on ZDoom, adding an OpenGL renderer and powerful scripting capabilities [Moved to: https://github.com/ZDoom/gzdoom]
magnum - Lightweight and modular C++11 graphics middleware for games and data visualization
MonoGame - One framework for creating powerful cross-platform games.