Search found 1179 matches
- Tue Nov 15, 2022 4:14 pm
- Forum: Support and Development
- Topic: Drawing the 'Negative' of a circle.
- Replies: 10
- Views: 1886
Re: Drawing the 'Negative' of a circle.
local function updateCurtainCanvas (x, y, radius) love.graphics.setCanvas (CurtainCanvas) -- black curtain love.graphics.setBlendMode( "alpha") love.graphics.setColor (0,0,0,1) -- black love.graphics.rectangle ('fill', 0,0, CurtainCanvas:getWidth( ), CurtainCanvas:getHeight( )) -- circle ...
- Tue Nov 15, 2022 3:49 pm
- Forum: Libraries and Tools
- Topic: setColor Hexadecimal snippet
- Replies: 8
- Views: 7531
Re: setColor Hexadecimal snippet
Simple function: local function setColorHEX(rgba) -- setColorHEX(rgba) -- where rgba = "#336699cc" local rb = tonumber(string.sub(rgba, 2, 3), 16) local gb = tonumber(string.sub(rgba, 4, 5), 16) local bb = tonumber(string.sub(rgba, 6, 7), 16) local ab = tonumber(string.sub(rgba, 8, 9), 16)...
- Tue Nov 15, 2022 12:20 pm
- Forum: Games and Creations
- Topic: KłełeAtoms - A multiplayer chain reaction game
- Replies: 8
- Views: 2849
Re: KłełeAtoms - A multiplayer chain reaction game
Is it possible to make a FullHD version? What exactly do you mean by that? A fullscreen mode, higher resolution textures or something completely different? Windowed high resolution 1920x1080 and (optional) 4K fullscreen, the window with a size about 400-600 pixels is too tiny. And why the window mu...
- Tue Nov 15, 2022 10:44 am
- Forum: Games and Creations
- Topic: KłełeAtoms - A multiplayer chain reaction game
- Replies: 8
- Views: 2849
Re: KłełeAtoms - A multiplayer chain reaction game
Is it possible to make a FullHD version?
- Tue Nov 15, 2022 9:19 am
- Forum: Support and Development
- Topic: Object Collision
- Replies: 11
- Views: 2432
Re: Object Collision
If the sequence is not important, then the fast removing is just: local i = 1 while tabls[i] do if tabls[i].valid then i = i+1 -- go to next else tabls[i], tabls[#tabls] = tabls[#tabls], nil -- erasing with the last end end Also it can be important to define what enemy is near to the bullet and remo...
- Mon Nov 14, 2022 7:12 pm
- Forum: Support and Development
- Topic: Animation easing?
- Replies: 2
- Views: 1074
Re: Animation easing?
Code: Select all
--update
px = px - dt*(distance_to_mouse/10)
- Sun Nov 13, 2022 7:50 pm
- Forum: Support and Development
- Topic: Combining two polygons into one polygon
- Replies: 7
- Views: 3795
Re: Combining two polygons into one polygon
So the result of the function must be a special structure with array of polygons as areas _and_ array of polygons as outline?
First draw all polygons (triangulated for concave) and than render all outlines.
First draw all polygons (triangulated for concave) and than render all outlines.
- Sun Nov 13, 2022 7:47 pm
- Forum: Support and Development
- Topic: Make bullets follow player?
- Replies: 6
- Views: 2250
Re: Make bullets follow player?
Maybe change the countdown based on player speed or add the player speed to all bullets?
- Sun Nov 13, 2022 7:41 pm
- Forum: Games and Creations
- Topic: GMSweeper - A simple minesweeper game
- Replies: 18
- Views: 8200
Re: GMSweeper - A simple minesweeper game
Yes, such games must have events just on mouse movement, click (or release) mouse buttons. Ok, you can also update the timer on every second.
- Sat Nov 12, 2022 8:46 pm
- Forum: Support and Development
- Topic: Combining two polygons into one polygon
- Replies: 7
- Views: 3795
Re: Combining two polygons into one polygon
But how Löve can accept polygons with holes?