Giter Site home page Giter Site logo

lrichyl / defengine Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 34.59 MB

A simple OpenGL based 2d game library, with batching support and simple input and collision detection.

License: GNU General Public License v3.0

C++ 95.86% Batchfile 0.09% GLSL 1.49% Makefile 2.38% Lua 0.18%
game-development gamedev opengl

defengine's Introduction

DefEngine

A simple OpenGL based 2d game engine/libray, with batching support and simple input and collision detection.

Level Editor

A simple level editor based on layers, you can choose between 5 diferent layers, 0 being the background and 5 the foreground. The first entity on the list allows you to place static collision regions which are rendered as black semi-transparent squares.

  • You can change between layers using the Q and E keys.
  • You can move the camera with the arrow keys and zoom in and out with the mouse wheel.
  • Tiles and entities cam be removed by right clicking on them.
  • To go in and out of test mode press Space bar.

The blue area represents the editable area of the level.

DefEngine editor

Command console

To save and load levels you can open the console by pressing the backtick key ` key while on edit mode. The current commands are:

  • save_new LEVEL_NAME (Save a new level called LEVEL_NAME)
  • save (Save the progress on the current level)
  • load LEVEL_NAME (Load a level named LEVEL_NAME. The level is looked up at the levels folder)
  • new (Generates a new blank level)
  • exit (Terminates the program)

DefEngine console

OpenAl dependencies

  1. Go to this website: https://www.openal.org/downloads/
  2. 'Select OpenAL 1.1 Windows Installer (zip)'
  3. Download will start, extract it and run the installer.
  4. Done.

Build guide

This engine needs to be build using mingw32 (not mingw64) and requires make. If make is install just run the make command. In case of any issues run the command 'premake5 gmake2' to re-generate the makefiles, then run the make command.

defengine's People

Contributors

lrichyl avatar panicjoker03 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.