@quenty/acceltween 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/acceltween@2.2.1...@quenty/acceltween@2.3.0) (2023-08-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * Use os.clock() instead of tick() in AccelTween clock state ([70d8d93](https://github.com/Quenty/NevermoreEngine/commit/70d8d933ad3cd37f8033833507156e5eb4546672))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/acceltween@2.2.0...@quenty/acceltween@2.2.1) (2022-10-16)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/acceltween
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2022 Quenty
3
+ Copyright (c) 2014-2023 James Onnen (Quenty)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/acceltween",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "AccelTween implementation for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "5fc8df6d4a62c0c774ebc78b275898f7f383935b"
31
+ "gitHead": "2547e660a0333034a5b20ddd6b23e343bc01f7c6"
32
32
  }
@@ -82,17 +82,17 @@ function AccelTween:__index(index)
82
82
  if AccelTween[index] then
83
83
  return AccelTween[index]
84
84
  elseif index == "p" then
85
- local pos, _ = self:_getstate(tick())
85
+ local pos, _ = self:_getstate(os.clock())
86
86
  return pos
87
87
  elseif index == "v" then
88
- local _, vel = self:_getstate(tick())
88
+ local _, vel = self:_getstate(os.clock())
89
89
  return vel
90
90
  elseif index == "a" then
91
91
  return self._accel
92
92
  elseif index == "t" then
93
93
  return self._y1
94
94
  elseif index == "rtime" then
95
- local time = tick()
95
+ local time = os.clock()
96
96
  return time < self._t1 and self._t1 - time or 0
97
97
  else
98
98
  error(("Bad index %q"):format(tostring(index)))
@@ -128,7 +128,7 @@ function AccelTween:_getstate(time)
128
128
  end
129
129
 
130
130
  function AccelTween:_setstate(newpos, newvel, newaccel, newtarg)
131
- local time = tick()
131
+ local time = os.clock()
132
132
  local pos, vel = self:_getstate(time)
133
133
  pos = newpos or pos
134
134
  vel = newvel or vel