Skip to content

Cherv81/lgameframework

 
 

Repository files navigation

lgameframework

Game development framework for Lua

Gitter Discord

Create a Project

Getting Started
API Documentation

Install

Windows

Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
https://www.microsoft.com/en-us/download/details.aspx?id=13523

Visual C++ Redistributable for Visual Studio 2015
https://www.microsoft.com/en-us/download/details.aspx?id=48145

macOS

brew install luajit physfs sdl2 devil freetype sdl_sound chipmunk assimp

Run

./lgf

About

Overview

lgf is a replacement for LÖVE built on LuaJIT and the FFI library. It implements a subset of LÖVE's API, while omitting LÖVE-specific features.

Framework versus game engine

While LÖVE advertises itself as a game engine/framework, lgf is strictly a framework. It only simplifies the collective libraries below in to an easy-to-read set of modules for graphics, audio, event, filesystem, keyboard, mouse, physics, sound, timer, and window usage. It does not provider higher-level constructs such as UI, keyboard and mouse bindings, entities, or level loading.

Features

  • SDL2 for window creation, OpenGL function loading, and event handling
  • Modern OpenGL (OpenGL 3.3/4.0+ Core Profile)
  • DevIL for loading a wide variety of image formats
  • FreeType for rendering text
  • SDL_sound for decoding several popular sound file formats
  • OpenAL for rendering 3D sound
  • PhysicsFS for abstracting access to various archives
  • Chipmunk for 2-dimensional real-time rigid body physics
  • Assimp for loading various 3D file formats

Libraries

  • lphysicsfs
    LuaJIT FFI bindings for PhysicsFS
  • lsdl
    LuaJIT FFI bindings for SDL 2.0
  • lopengl
    LuaJIT FFI bindings for OpenGL
  • lkazmath
    LuaJIT FFI bindings for kazmath
  • lclass
    Lua with Classes
  • ldevil
    LuaJIT FFI bindings for DevIL
  • lfreetype
    LuaJIT FFI bindings for FreeType
  • lsdl_sound
    LuaJIT FFI bindings for SDL_sound
  • lopenal
    LuaJIT FFI bindings for OpenAL
  • lchipmunk
    LuaJIT FFI bindings for Chipmunk
  • lassimp
    LuaJIT FFI bindings for Assimp

License

The MIT License

Copyright (c) 2017 Planimeter. http://planimeter.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Game development framework for Lua

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 50.3%
  • Lua 49.5%
  • Other 0.2%