added changelog and contributing details
parent
6466719a23
commit
8c168c9c38
|
@ -0,0 +1,10 @@
|
|||
|
||||
# 1.0
|
||||
|
||||
- Some interpolation methods implemented.
|
||||
- Tween object implemented.
|
||||
- /between command registered to display interpolaton debug info.
|
||||
|
||||
# (recent commits)
|
||||
|
||||
- Made the interpolation hud use less space on screen.
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
# Contributing
|
||||
|
||||
Any contribution would be good to improve the api.
|
||||
|
||||
New easing functions can be implemented, same as new tween logic or any other feature correlated to this topic.
|
||||
|
||||
## Important !
|
||||
|
||||
Make a post in the [Issues](https://github.com/GianptDev/between-api-minetest/issues) panel first to explain with details about the new feature.
|
||||
|
||||
Make sure to write any changes in [CHANGELOG.MD](/CHANGELOG.md) before commit.
|
||||
|
||||
If you want to implement more easing function make a description to explain what the easing look like, see other interpolation functions as an example.
|
8
init.lua
8
init.lua
|
@ -26,7 +26,7 @@ BeTweenApi = {
|
|||
|
||||
local player = minetest.get_player_by_name(player_name)
|
||||
local index = 0
|
||||
local start, finish = 32, 400
|
||||
local start, finish = 32, 256
|
||||
local scale = { x = 2, y = 2}
|
||||
|
||||
local visual = {
|
||||
|
@ -79,7 +79,7 @@ BeTweenApi = {
|
|||
hud_elem_type = "text",
|
||||
text = tostring(_),
|
||||
position = { x = 0, y = 0 },
|
||||
offset = { x = 460, y = y },
|
||||
offset = { x = finish + 32, y = y },
|
||||
alignment = { x = 1, y = 0 },
|
||||
number = 0xFFFFFF,
|
||||
style = 1,
|
||||
|
@ -361,8 +361,8 @@ minetest.register_chatcommand(
|
|||
"between",
|
||||
{
|
||||
description = "Toggle the debug hud of this api to the calling player.",
|
||||
func = function (name, _)
|
||||
|
||||
func = function (name, param)
|
||||
|
||||
if (BeTweenApi.debug.player_huds[name] == nil) then
|
||||
BeTweenApi.debug:show_functions(name)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue