openfl / starling

Known as the "Cross-Platform Game Engine", Starling is a popular Stage3D framework for OpenFL and Haxe
Other
236 stars 67 forks source link

PDParticleSystem.initParticle should use local var textureWidth #85

Closed MatseFR closed 6 years ago

MatseFR commented 6 years ago

right now textureWidth is set but not used, lines 201-202 should be

particle.scale = startSize / textureWidth; particle.scaleDelta = ((endSize - startSize) / lifespan) / textureWidth;

necessary if texture is null :)

MatseFR commented 6 years ago

This was fixed with #89