RepositoryJavaUSUnited States
JacksonHoggard

JacksonHoggard/voodoo2d

👹 2D Java Game Engine built in OpenGL

137stars
56forks
7issues
5views

Voodoo 2D

A lightweight engine to easily build complex cross-platform 2D games in Java.

Build Status MIT License

Main Features

  • Basic Game Infrastructure (GameLoop, Configuration, ...)
  • 2D Render Engine (GUI Components, Spritesheet Animations, Ambient Lighting, Particle System, ...)
  • 2D Sound Engine (support for .ogg)
  • 2D Physics Engine
  • Support for Tile Maps in .tmx format (e.g. made with Tiled Editor)
  • Player input via Keyboard/Mouse

Code:

Mesh mesh = Mesh.loadMesh("textures/player.png", 64); // Create new mesh with size of 64x64 pixels
GameObject gameObject = new GameObject(mesh); // Makes a new gameObject from mesh
Animation run = new Animation(gameObject, 0, 3, 6); // Creates new animation with frames 0 - 3 at 6 fps
run.play(); // Play the animation!
INPUT
if(window.isKeyPressed(GLFW_KEY_D)) { // Checks if "D" key is down
    run.play(); // Plays our animation!
COLLISION
aabb = new AABB(); // Make a new collision box
aabb.setCenter(0.5f, 0.0875f); // Set the center point of the boundary
aabb.setDistance(0.5f, 0.0875f); // Set the distance from the center to the edges of the boundary

Maven Dependency

<dependency>
  <groupId>com.github.jacksonhoggard</groupId>
  <artifactId>voodoo2d</artifactId>
  <version>1.0-DEVBUILD</version>
</dependency>

CONTRIBUTING

If you'd like to make a contribution, please refer to CONTRIBUTING.md or read the wiki page on how to set up the project

TROUBLESHOOTING

A game object is not drawing to the screen!

  • Make sure you placed the game object in the gameObjects list that will be passed into the render method of the renderer.
  • Check to see if the object has been instantiated properly.

Animations are not diplaying properly

  • Ensure that you have given the proper range of sprites to be displayed from the spritesheet (i.e. 0 - 3).
  • Remember that, when playing an animation, all other animations attached to that game object will be stopped.

Something else isn't working properly

  • Open up an issue! Someone will get to it as soon as possible.

Current Version

  • 1.0-DEVBUILD (Development Version)

Areas for improvements / involvement

  • GUI
  • Particle System
  • Scenes
  • Lighting options
  • Batched Rendering

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
4ian/GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.

29.5k
Dec 1, 2026
RepositoryJava
LWJGL/lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.

5.5k
Sep 10, 2026
RepositoryRust
kitao/pyxel

A retro game engine for Python

18.7k
Nov 28, 2026
RepositoryJava
gurkenlabs/litiengine

LITIENGINE 🕹 The Java 2D game engine.

840
Nov 29, 2026
RepositoryC#
OpenRA/OpenRA

Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.

17.9k
Nov 22, 2026
RepositoryPython
SFTtech/openage

Clone of the Age of Empires II engine 🚀

14.7k
Nov 22, 2026
RepositoryGo
hajimehoshi/ebiten

A dead simple 2D game engine for Go

13.7k
Nov 30, 2026
RepositoryC
fogleman/Craft

A simple Minecraft clone written in C using modern OpenGL (shaders).

11.2k
Apr 3, 2024
RepositoryGo
OpenDiablo2/OpenDiablo2

An open source re-implementation of Diablo 2

11.1k
Oct 21, 2021