Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.
/ PixelEngine Public archive

Pixel Engine is an open-source 2D game engine for C++ and Windows. This project is no longer actively worked on.

License

Notifications You must be signed in to change notification settings

J0shhT/PixelEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Engine

Pixel Engine is an open-source 2D game engine library for C++ and the Windows platform. Pixel Engine also comes with a level editor (coming soon) to create 2D levels that can be loaded by the engine's API. This is one of my first attempts at creating a game engine and this is mostly just a learning experience for me.

Libraries

Pixel Engine utilizes the following third-party libraries:

  • OpenGL (Open Graphics Library)
  • SDL (Simple DirectMedia Layer)
  • wxWidgets (wxWidgets GUI Library)
  • FMOD (FMOD Sound System)
  • gainput (gainput Input Library)
  • libcurl (The Curl Library)
  • RakNet (RakNet Networking Middleware)
  • GLUT (OpenGL Utility Toolkit)
  • GLEW (OpenGL Extension Wrangler)
  • GLM (OpenGL Mathematics)
  • SOIL (Simple OpenGL Image Library)
  • Boost (Boost C++ Libraries)

Setup for Visual Studio 2017

  1. Download the latest available SDK from here.
  2. Unzip and extract the SDK and place the PixelEngine folder in the base directory of your project where your .vcxproj file is located.
  3. Open your project settings and add in order: $(ProjectDir)PixelEngine, $(ProjectDir)PixelEngine\Include, $(ProjectDir)PixelEngine\Include\Dependencies, $(ProjectDir)PixelEngine\Include\Dependencies\wxWidgets\msvc, and $(ProjectDir)PixelEngine\Include\Dependencies\wxWidgets to your Additional Include Directories in C/C++ > General
  4. Add $(ProjectDir)PixelEngine and $(ProjectDir)PixelEngine\wxWidgets to your Additional Library Directories in Linker > General
  5. Add PixelEngine.liband glut32.lib to your Additional Dependencies in Linker > Input
  6. Change your C++ Language Standard to ISO C++17 Standard in C/C++ > Language
  7. Make sure your project is set to unicode mode by setting your Character Set to Use Unicode Character Set in General as well as adding UNICODE to Preprocessor Definitions in C/C++ > Preprocessor
  8. Compile the code example below. It should build successfully in both release and debug.
  9. Add all the contents in PixelEngine/Bin/ to wherever your built program is running from.

Code Example

The following code is the most basic Pixel Engine application and should compile and run successfully if everything was setup properly.

#include <PixelEngine.h>

void Main()
{
	Pixel::App* app = new Pixel::App();
	app->CreateWindow("Hello World!", 800, 600);
	Pixel::RenderService::Singleton()->Initialize();
	app->SetWindowVisible(true);
	app->StartGameLoop();
	delete app;
}

PixelMain(Main);

About

Pixel Engine is an open-source 2D game engine for C++ and Windows. This project is no longer actively worked on.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages