@quenty/particleengine 3.3.0 → 3.3.1-canary.238.2c4d310.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,14 @@
|
|
|
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
|
+
## [3.3.1-canary.238.2c4d310.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/particleengine@3.3.0...@quenty/particleengine@3.3.1-canary.238.2c4d310.0) (2021-12-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/particleengine
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/particleengine@3.2.0...@quenty/particleengine@3.3.0) (2021-12-18)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/particleengine
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
## Particle Engine
|
|
2
2
|
<div align="center">
|
|
3
|
-
<a href="http://quenty.github.io/
|
|
3
|
+
<a href="http://quenty.github.io/NevermoreEngine/">
|
|
4
4
|
<img src="https://img.shields.io/badge/docs-website-green.svg" alt="Documentation" />
|
|
5
5
|
</a>
|
|
6
6
|
<a href="https://discord.gg/mhtGUS8">
|
|
7
|
-
<img src="https://img.shields.io/
|
|
7
|
+
<img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
|
|
8
8
|
</a>
|
|
9
9
|
<a href="https://github.com/Quenty/NevermoreEngine/actions">
|
|
10
10
|
<img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/build.yml/badge.svg" alt="Build and release status" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/particleengine",
|
|
3
|
-
"version": "3.3.0",
|
|
3
|
+
"version": "3.3.1-canary.238.2c4d310.0",
|
|
4
4
|
"description": "Adds GUI based particle engine to Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"AxisAngles"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/loader": "
|
|
30
|
-
"@quenty/remoting": "
|
|
31
|
-
"@quenty/table": "
|
|
29
|
+
"@quenty/loader": "3.1.2-canary.238.2c4d310.0",
|
|
30
|
+
"@quenty/remoting": "3.3.1-canary.238.2c4d310.0",
|
|
31
|
+
"@quenty/table": "2.1.1-canary.238.2c4d310.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "2c4d310b84afd0570d89667dc5d4aa69a0ef304a"
|
|
37
37
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
--[=[
|
|
2
|
+
Legacy code written by AxisAngles to simulate particles with Guis
|
|
3
|
+
|
|
4
|
+
@client
|
|
5
|
+
@class ParticleEngineClient
|
|
6
|
+
]=]
|
|
3
7
|
|
|
4
8
|
local require = require(script.Parent.loader).load(script)
|
|
5
9
|
|
|
@@ -56,7 +60,7 @@ function ParticleEngineClient:Init(screen)
|
|
|
56
60
|
return self
|
|
57
61
|
end
|
|
58
62
|
|
|
59
|
-
|
|
63
|
+
-- Removes a particle
|
|
60
64
|
function ParticleEngineClient:Remove(p)
|
|
61
65
|
if self._particles[p] then
|
|
62
66
|
self._particles[p] = nil
|
|
@@ -151,7 +155,7 @@ function ParticleEngineClient:_updatePosVel(p, dt, t)
|
|
|
151
155
|
p.Velocity = p.Velocity + (p.Gravity + wind)*dt
|
|
152
156
|
end
|
|
153
157
|
|
|
154
|
-
|
|
158
|
+
-- Handles both priority and regular particles
|
|
155
159
|
-- @return boolean alive, true if still fine
|
|
156
160
|
function ParticleEngineClient:_updateParticle(particle, t, dt)
|
|
157
161
|
if particle.LifeTime - t <= 0 then
|