Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/subsoap/defmath

A module with a set of math functions for Defold
https://github.com/subsoap/defmath

defold defold-game-engine gamedev lua math

Last synced: about 1 month ago
JSON representation

A module with a set of math functions for Defold

Awesome Lists containing this project

README

        

# DefMath
A module with a set of math functions for Defold

## Installation
You can use DefMath in your own project by adding this project as a [Defold library dependency](http://www.defold.com/manuals/libraries/). Open your game.project file and in the dependencies field under project add:

https://github.com/subsoap/defmath/archive/master.zip

Once added, you must require the main Lua module via

```
local defmath = require("defmath.defmath")
```
Then you can use the DefMath functions for example via

```
print(defmath.round_decimal(0.12345678,3))
```