All Projects → edubart → Minilua

edubart / Minilua

Licence: mit
Single-file port of Lua, a powerful scripting language.

Programming Languages

c
50402 projects - #5 most used programming language
lua
6591 projects

Projects that are alternatives of or similar to Minilua

Phaservania
Small PhaserJS based Metroidvania-esque project.
Stars: ✭ 14 (-65.85%)
Mutual labels:  game-development
Phaser
Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
Stars: ✭ 30,918 (+75309.76%)
Mutual labels:  game-development
Mdframework
A multiplayer C# game framework for Godot 3.2 Mono.
Stars: ✭ 34 (-17.07%)
Mutual labels:  game-development
Beaverandfairies
Stars: ✭ 14 (-65.85%)
Mutual labels:  game-development
Factory Rise
Factory Rise is a 2D sandbox game, focused on building, developing industries and handling resources. The game is based on Oxygen Not Included, Terraria, Factorio and some Minecraft mods (EnderIO, Industrial Craft, BuildCraft, GregTech and Thermal Expansion), it also have a game progress similar to StarBound.
Stars: ✭ 21 (-48.78%)
Mutual labels:  game-development
Donerserializer
A C++14 JSON Serialization Library
Stars: ✭ 31 (-24.39%)
Mutual labels:  game-development
C Sharp Promise
Promises library for C# for management of asynchronous operations.
Stars: ✭ 870 (+2021.95%)
Mutual labels:  game-development
Phaser Node Kit
Rapid Game Development with PhaserJS and Node for Modern Browsers
Stars: ✭ 39 (-4.88%)
Mutual labels:  game-development
Ktx
LibKTX: Kotlin extensions for LibGDX games and applications
Stars: ✭ 913 (+2126.83%)
Mutual labels:  game-development
Cows Revenge
Casual platform game project for learning purposes
Stars: ✭ 33 (-19.51%)
Mutual labels:  game-development
Ecs
A simple and easy to use entity-component-system C++ library
Stars: ✭ 20 (-51.22%)
Mutual labels:  game-development
Space rocks
Asteroids-like game made with Godot Engine 3.0.
Stars: ✭ 20 (-51.22%)
Mutual labels:  game-development
Nativescript Flappy Bird
NativeScript implementation of Flappy Bird (basic). Demonstrates how to build games in NativeScript.
Stars: ✭ 31 (-24.39%)
Mutual labels:  game-development
Java Game And Application
Java Games and Application with awesome source code and better algorithm
Stars: ✭ 14 (-65.85%)
Mutual labels:  game-development
Svg World Map
🗺 A JavaScript library to easily integrate one or more SVG world maps with all nations (countries) and second-level political subdivisions (countries, provinces, states).
Stars: ✭ 38 (-7.32%)
Mutual labels:  game-development
Complete Unity 2018 Game Development
Explore techniques to build 2D/3D applications using real-world examples
Stars: ✭ 14 (-65.85%)
Mutual labels:  game-development
Imac Tower Defense
OpenGl 4.4 game made with Entity Component System
Stars: ✭ 28 (-31.71%)
Mutual labels:  game-development
Skyfire one
SkyFireONE is a full featured (FL/OSS) emulator for "World of Worcraft: The Burning Crusades" expansion. --- View Readme for further information. ---The Public Database can be downloaded on our forum.
Stars: ✭ 39 (-4.88%)
Mutual labels:  game-development
Scarab
A system to patch your content files.
Stars: ✭ 38 (-7.32%)
Mutual labels:  game-development
Sparky
Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Stars: ✭ 959 (+2239.02%)
Mutual labels:  game-development

MiniLua

This is Lua contained in a single header to be bundled in C/C++ applications with ease. Lua is a powerful, efficient, lightweight, embeddable scripting language.

Example Usage

#define LUA_IMPL
#include "minilua.h"

int main() {
  lua_State *L = luaL_newstate();
  if(L == NULL)
    return -1;
  luaL_openlibs(L);
  luaL_loadstring(L, "print 'hello world'");
  lua_call(L, 0, 0);
  lua_close(L);
  return 0;
}

Usage

Copy minilua.h into your C or C++ project, include it anywhere you want to use Lua API. Then do the following in one C file to implement Lua:

#define LUA_IMPL
#include "minilua.h"

By default it detects the system platform to use, however you can explicitly define one.

Note that almost no modification was made in the Lua implementation code, thus there are some C variable names that may collide with your code, therefore it is best to declare the Lua implementation in dedicated C file.

Optionally provide the following defines:

  • LUA_MAKE_LUA - implement the Lua command line REPL

Documentation

For documentation on how to use Lua read its official manual.

Updates

  • 03-Dec-2020: Updated to Lua 5.4.2.
  • 27-Nov-2020: Library created, using Lua 5.4.2-rc1.

Notes

This library tries to keep up with latest official Lua release. The header is generated using the bash script gen.sh all modifications done is there.

License

Same license as Lua, the MIT license, see LICENSE.txt for information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].