Search found 217 matches

by darkfrei
Wed Apr 28, 2021 8:22 pm
Forum: Support and Development
Topic: Pixilated circle
Replies: 9
Views: 958

Re: Pixilated circle

I want something like that
Image

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.
by darkfrei
Wed Apr 28, 2021 4:25 pm
Forum: Support and Development
Topic: Pixilated circle
Replies: 9
Views: 958

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.
by darkfrei
Mon Apr 26, 2021 3:03 pm
Forum: General
Topic: [SOLVED] with making an OLD project work again
Replies: 8
Views: 1045

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

What is love.math.random and different with math.random?
by darkfrei
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: 848

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...
by darkfrei
Mon Apr 26, 2021 8:47 am
Forum: General
Topic: Favourite unique games
Replies: 12
Views: 2389

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 ...
by darkfrei
Sun Apr 25, 2021 6:51 pm
Forum: General
Topic: Favourite unique games
Replies: 12
Views: 2389

Re: Favourite unique games

Of course Factorio :)
by darkfrei
Fri Apr 23, 2021 9:11 pm
Forum: Games and Creations
Topic: Particle collisions (with cache)
Replies: 2
Views: 986

Re: [WIP] Particle collisions (with cache)

Second version:

Added collision detection (red).
by darkfrei
Thu Apr 22, 2021 9:17 pm
Forum: Games and Creations
Topic: Particle collisions (with cache)
Replies: 2
Views: 986

Particle collisions (with cache)

Hi all! I've made some easy simulation about moving particles, it was very interesting to unterstand how to use cache grid to make such simulations faster. The first version without collisions, but squares show where I need to check this collisions :) Yellow: no collision, green: two circle bodies i...
by darkfrei
Thu Apr 22, 2021 12:25 pm
Forum: Support and Development
Topic: Love doesnt wanna accept my structure
Replies: 8
Views: 1236

Re: Love doesnt wanna accept my structure

You can use the cycles as: local levels = {} -- or level? :) for y = 1, 16 do levels[y] = {} -- you are need to define empty table here for x = 1, 16 do -- your code here, for example value 0, 1 or 2: levels[y][x] = math.random (0, 2) end end Wait I don't understand, I have the table predefined, I ...
by darkfrei
Thu Apr 22, 2021 12:08 pm
Forum: Support and Development
Topic: Love doesnt wanna accept my structure
Replies: 8
Views: 1236

Re: Love doesnt wanna accept my structure

You can use the cycles as:

Code: Select all

local levels = {} -- or level? :)
for y = 1, 16 do
  levels[y] = {} -- you are need to define empty table here
  for x = 1, 16 do
    -- your code here, for example value 0, 1 or 2:
    levels[y][x] = math.random (0, 2)
  end
end