Giter VIP home page Giter VIP logo

tiny's Introduction

Tiny

Tiny is a lua package made to be used with the LÖVE2D framework, to provide it with very simple game engine features, such as: Colliders, animations, sprites, state machines, vectors, etc.

Motivation

I wanted to have a layer in between the framework (in this case LÖVE2D) and the actual game code, trying to avoid repeating code over and over again, reducing boilerplate code and improving code clarity. I wanted to achieve all of this while keeping the package complexity down to the bare minimum.

For example, if I need realistic 2D physics simulation, I use LÖVE2D's physics module (Box2D), but if I just need very simple AABB collisions, I can use the tiny package and avoid the performance hit.

Repository

The src folder contains the following:

  • 3rdparty/: The tiny package uses Object-oriented programming everywhere, so it needs Class to be defined beforehand. This folder contains the Class module, copied from the HUMP package (Copyright 2010-2018 Matthias Richter), which I chose for OOP.
  • api/: This folder contains the API for this package. More on how to use this later.
  • assets/: This folder contains an asset pack made by Balmer used for the examples.
  • tiny/: This folder contains the tiny package.
  • main.lua: Creates a tiny.SceneManager, to demonstrate some of the features of the package in different scenes.
  • tiny_api.lua
  • util.lua: Utility script that contains functions that I often use.
  • Scene*.lua: Scene objects that will help to demonstrate features of the package.

tiny's People

Contributors

azarrias avatar

Watchers

James Cloos 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.