Year: 2016
Box2D and the animated physics
This post is to give my solution to a problem I had during the development of my personal 2D game engine. The engine uses Box2D as a physics system that allow us in a very easy way to create bodies and update them without knowing only basic physics. The problem …
SDL2 controller implementation
This tutorial will show how to implement a controller in your application using SDL2. The controller input has two categories, the BUTTONS and the AXIS. The buttons have an state of 0 is the button is not pressed and 1 if the button is pressed. For the axis we can …
SDL2 Mouse implementation
In this tutorial we are going to see how to implement a full functional mouse using SDL2. The SDL mouse header gives us a lot of possibilities, from detect the position outside the created window to manage the movement of the mouse. I’m going to center this tutorial in the …
Simple SDL2 keyboard key status
Welcome to this tutorial where we are going to see how to implement a simple keyboard key status using SDL 2. This tutorial will help us to check the status of a key (triggered, pressed or released).