Box2D
raylib
Our great sponsors
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.
Box2D
- Nebula is an open-source and free-to-use modern C++ game engine
-
Linear code is more readable
Why is 600 lines too long? How are you able to make that judgment call without first knowing what the algorithm is even doing? People setting arbitrary limits like this is what leads to convoluted spaghetti, instead of just taking things on a case by case basis. Here’s a function from the Box2D code running a particularly complex algorithm for solving contact velocities https://github.com/erincatto/box2d/blob/411acc32eb6d4f2e96fc... .
It’s 310 lines long. It reads very well, and it looks very maintainable. It has very clear comments explaining the reasoning behind the harder parts of the code. Would you reject this code because it’s pretty long? I wouldn’t.
There is no such thing as too long or too short. There’s overengineered and there’s underengineered and there’s a sweet spot in the middle that has the perfect amount of engineering with the least amount of complexity (preferably no additional complexity than the original problem warranted). Sometimes, the problem at hand is inherently a large algorithm and requires many lines of code. Don’t split it up! It just makes it harder for future maintainers who now have to figure out if the additional functions are actually being used elsewhere or if they’re just there to make the code “pretty”.
-
C++23: The Next C++ Standard
TIL Box2D must not be serious code because it doesn't use copious amounts of explicit temporaries[0].
And just for the record, I'm very glad Erin Catto decided to use operator overloading in his code. It made it much easier for me to read and understand what the code was doing as opposed to it being overly verbose and noisy.
[0]: https://github.com/erincatto/box2d/blob/main/src/collision/b...
-
Make a game engine in C++
For Physics Box2d can be used as a simple starting point.
-
Does anyone know any good open source project to optimize?
I suspect most C++ physics libraries like Box2D (https://github.com/erincatto/box2d) or Bullet3 (https://github.com/bulletphysics/bullet3) could really benefit a lot from SIMD.
-
what to start learning
for 2D physics have a look at Box2D it's amazing https://box2d.org/
- Where and how can I learn to make simulation programs? I like to be a simulation developer!
-
What would be the best library to build 2D simulations in python?
Do you mean drawing it or just the positions at each time step? Box2D has python bindings and would be ideal. https://box2d.org/
-
How can I create a physics simulation?
I mean... there is also Box2d... (https://box2d.org/) for 2d stuff as /u/Disembleergon mentioned.
raylib
-
Can't make my mind about which engine to use
libGDX is great, but I can understand if it's not for some people. This also applies to love2d, raylib and Monogame
-
Raylib Library For Video Games Programming as Senior Developer
Raylib library
user@linuxmint:~/raylib/raylib/src$ git clone https://github.com/raysan5/raylib.git raylib cd raylib/src/ make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED # To make the dynamic shared version.
-
Not only Unity...
RayLib (ZLIBL/C/Lua) https://github.com/raysan5/raylib
- New Vulkan Documentation Website
-
I want to make a game but I'm scared...
raylib (c/c++) reliable, good docs, more or less same idea as love2d plus 3d support, but more flexible, and can be used outside game development, like visualizing data. I suggest you pick this if you want to learn low level system language - c/c++
-
LÖVE: a framework to make 2D games in Lua
I love love2D. It's really a breath of fresh air. I've made many little games and prototypes with it. Lua is fun, and the doco is great.
If you're looking in that realm I also have to mention RayLib [1]. It might remind you of the XNA days, except it runs on many platforms and it actually works! (sic.)
Final plug is of course PICO8.[2] Very different style once again but so much fun!
-
Trying raylib, first time user, what should I know?
About the bindings, raylib already has bindings to +60 languages, you can take a look to the BINDINGS.md file or even send a Pull Request to add new bindings: https://github.com/raysan5/raylib/blob/master/BINDINGS.md
-
Raylib examples don't work?
brew install cmake git clone https://github.com/raysan5/raylib.git cd raylib cmake -B build cd build make
-
Quickly setting up a 3D scene?
https://www.raylib.com/ ?
What are some alternatives?
SFML - Simple and Fast Multimedia Library
Bullet - Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
SDL2 - SDL2 bindings to perl
bevy - A refreshingly simple data-driven game engine built in Rust
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
Chipmunk - A fast and lightweight 2D game physics library.
bgfx - Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
SDL - Simple Directmedia Layer
LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
love - LÖVE is an awesome 2D game framework for Lua.
Godot - Godot Engine – Multi-platform 2D and 3D game engine
vulkan-guide - Introductory guide to vulkan.