Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/subsoap/defmath
- Owner: subsoap
- License: cc0-1.0
- Created: 2017-08-19T06:30:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T21:43:29.000Z (about 6 years ago)
- Last Synced: 2024-11-02T14:33:24.578Z (about 2 months ago)
- Topics: defold, defold-game-engine, gamedev, lua, math
- Language: Lua
- Size: 29.3 KB
- Stars: 19
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-defold - DefMath
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))
```