summaryrefslogtreecommitdiffhomepage
path: root/examples/textures_particles_trail_blending.lua
diff options
context:
space:
mode:
authorghassanpl <[email protected]>2016-08-06 20:46:15 +0200
committerghassanpl <[email protected]>2016-08-06 20:46:15 +0200
commit1950085893f16d653f16ec0a0c991678e8c3cf53 (patch)
treee6f4ec40f983f50e427e19a49e7519fa1a51448c /examples/textures_particles_trail_blending.lua
parent82a0fae678a0f4b761bd5369222c956ffe173d31 (diff)
parent306945fe147ea7742880635e77a5c2656f6e1fdc (diff)
downloadraylib-1950085893f16d653f16ec0a0c991678e8c3cf53.tar.gz
raylib-1950085893f16d653f16ec0a0c991678e8c3cf53.zip
Merge branch 'develop' of https://github.com/raysan5/raylib into develop
Diffstat (limited to 'examples/textures_particles_trail_blending.lua')
-rw-r--r--examples/textures_particles_trail_blending.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/textures_particles_trail_blending.lua b/examples/textures_particles_trail_blending.lua
index 38036bcf..d2c2518e 100644
--- a/examples/textures_particles_trail_blending.lua
+++ b/examples/textures_particles_trail_blending.lua
@@ -11,7 +11,6 @@
MAX_PARTICLES = 200
--- Particle structure with basic data
-- Initialization
-------------------------------------------------------------------------------------------
local screenWidth = 800
@@ -56,7 +55,7 @@ while not WindowShouldClose() do -- Detect window close button or ESC
mouseTail[i].active = true
mouseTail[i].alpha = 1.0
mouseTail[i].position = GetMousePosition()
- i = MAX_PARTICLES
+ break
end
end
@@ -90,7 +89,7 @@ while not WindowShouldClose() do -- Detect window close button or ESC
if (mouseTail[i].active) then
DrawTexturePro(smoke, Rectangle(0, 0, smoke.width, smoke.height),
Rectangle(mouseTail[i].position.x, mouseTail[i].position.y,
- smoke.width*mouseTail[i].size, smoke.height*mouseTail[i].size),
+ smoke.width*mouseTail[i].size//1, smoke.height*mouseTail[i].size//1),
Vector2(smoke.width*mouseTail[i].size/2, smoke.height*mouseTail[i].size/2),
mouseTail[i].rotation, Fade(mouseTail[i].color, mouseTail[i].alpha)) end
end