Search found 217 matches

by darkfrei
Tue May 04, 2021 7:05 am
Forum: Support and Development
Topic: Coordinates for lines vs points (and pixel grid alignment for points)
Replies: 20
Views: 2453

Re: Coordinates for lines vs points (and pixel grid alignment for points)

It's interesting, that Lua has no integer data type, but there is small different:

Code: Select all

a = 10 
b = 100/10 -- looks like 10
print(a) -- prints 10
print(b) -- prints 10.0
print(tostring(a==b)) -- prints true
Somehow 10.0 will be same as 10, but it prints it in other way.
by darkfrei
Mon May 03, 2021 9:22 am
Forum: General
Topic: Using love for a battle demonstrator
Replies: 10
Views: 1989

Re: Using love for a battle demonstrator

yes, you ar right, I am ready to do it, now that I have all the tiles. the zoom level 13 weights 1.2Go. Do you think love2d can load such a big image ? My laptop has 16Go of RAM. It will be nice to load only needed images, cut big image to something like 4096x4096 pixel chunks, load what you see an...
by darkfrei
Mon May 03, 2021 7:35 am
Forum: General
Topic: Where do noob artists hang out?
Replies: 1
Views: 488

Re: Where do noob artists hang out?

I saw a lot of images on https://www.deviantart.com/

Sometimes you can find nice backgrounds, tilesets.
by darkfrei
Mon May 03, 2021 7:28 am
Forum: General
Topic: Using love for a battle demonstrator
Replies: 10
Views: 1989

Re: Using love for a battle demonstrator

If they are really huge, on zoom level 5 you can load image for zoom level 4 and 6, not other. By moving to the zoom level 4 you are need to unload zoom level 6 and load zoom level 3. Thanks for your answer, I do not understand exactly what you say. Tile images are about 1K size, of course there ar...
by darkfrei
Sun May 02, 2021 8:46 pm
Forum: General
Topic: Using love for a battle demonstrator
Replies: 10
Views: 1989

Re: Using love for a battle demonstrator

If they are really huge, on zoom level 5 you can load image for zoom level 4 and 6, not other.
By moving to the zoom level 4 you are need to unload zoom level 6 and load zoom level 3.
by darkfrei
Sun May 02, 2021 7:46 pm
Forum: Games and Creations
Topic: Sierpinski triangle
Replies: 1
Views: 611

Sierpinski triangle

Hi all!

Here is my try to make the Sierpinski Triangle.
by darkfrei
Sun May 02, 2021 5:39 pm
Forum: Games and Creations
Topic: Particle collisions (with cache)
Replies: 2
Views: 986

Re: [WIP] Particle collisions (with cache)

The last version, all collisions work as expected.

Here can be better static resolution: move circles back to the collision, calculate the rest dt and move particles in the new direction. Same as continuous collision detection.
by darkfrei
Thu Apr 29, 2021 9:35 am
Forum: General
Topic: [SOLVED] with making an OLD project work again
Replies: 8
Views: 1045

Re: [SOLVED] with making an OLD project work again

Note that love.math.random(255)/256 never gives 0 or 1.

Maybe you are need love.math.random(0, 255)/255 instead.
by darkfrei
Thu Apr 29, 2021 8:56 am
Forum: Support and Development
Topic: Pixilated circle
Replies: 9
Views: 958

Re: Pixilated circle

Setting the default filter to nearest does not affect already created textures even if you do it in every frame. The correct solution was posted already, you just need to read more carefully. You are right, thanks! function love.load() scale = 32 width, height = love.graphics.getDimensions( ) canva...
by darkfrei
Thu Apr 29, 2021 8:10 am
Forum: Support and Development
Topic: Pixilated circle
Replies: 9
Views: 958

Re: Pixilated circle

I've made "nearest" and "rough", but this result is totally not what I've expected. function love.load() width, height = love.graphics.getDimensions( ) scale = 32 circle = {x=0.5, y=0.5, d=2} buffer = 0.5 buffer_limit = buffer canvas = love.graphics.newCanvas(width/scale, height/...