## Search found 222 matches

Sun May 02, 2021 7:46 pm
Forum: Games and Creations
Topic: Sierpinski triangle
Replies: 1
Views: 797

### Sierpinski triangle

Hi all!

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

### 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.
Thu Apr 29, 2021 9:35 am
Forum: General
Topic: [SOLVED] with making an OLD project work again
Replies: 8
Views: 1230

### 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.
Thu Apr 29, 2021 8:56 am
Forum: Support and Development
Topic: Pixilated circle
Replies: 9
Views: 1135

### 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...
Thu Apr 29, 2021 8:10 am
Forum: Support and Development
Topic: Pixilated circle
Replies: 9
Views: 1135

### 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/...
Wed Apr 28, 2021 8:22 pm
Forum: Support and Development
Topic: Pixilated circle
Replies: 9
Views: 1135

### Re: Pixilated circle

I want something like that

And I think that's possible to do it just with love.graphics.circle and than scale this picture up, where one pixel of original circle will be shown as 2x2 pixels square or 3x3 pixels square.
Wed Apr 28, 2021 4:25 pm
Forum: Support and Development
Topic: Pixilated circle
Replies: 9
Views: 1135

### Pixilated circle

Hi!

How I can make a circle that is one pixel wide and than scaled up?

I've tried with and without canvas, but pixel edges are not sharp.
Mon Apr 26, 2021 3:03 pm
Forum: General
Topic: [SOLVED] with making an OLD project work again
Replies: 8
Views: 1230

### Re: [HELP] with making an OLD project work again

What is love.math.random and different with math.random?
Mon Apr 26, 2021 1:44 pm
Forum: Support and Development
Topic: Require Help! - bad argument to pairs (table expected, got nil)
Replies: 4
Views: 971

### Re: Require Help! - bad argument to pairs (table expected, got nil)

Trying to make a script that moves a projectile across the screen when I hit 'r' on my keyboard function love.load() projectiles = {} width, height = love.graphics.getDimensions( ) for i = 1, 100 do local projectile = {} projectile.x = math.random(width) projectile.y = math.random(height) projectil...
Mon Apr 26, 2021 8:47 am
Forum: General
Topic: Favourite unique games
Replies: 12
Views: 2800

### Re: Favourite unique games

This reminds me of another one of mine( I have many "one of mines" ), RimWorld. It has an AI that creates procedural generated story that controls the tempo of the game. (It also has good NPC ai). I like RimWorld, but it needs too much time to play it. The first try of Factorio was about ...