## Search found 180 matches

Thu Apr 22, 2021 9:17 pm
Forum: Games and Creations
Topic: [WIP] Particle collisions (with cache)
Replies: 0
Views: 42

### [WIP] 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...
Thu Apr 22, 2021 12:25 pm
Forum: Support and Development
Topic: Love doesnt wanna accept my structure
Replies: 7
Views: 158

### 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 ...
Thu Apr 22, 2021 12:08 pm
Forum: Support and Development
Topic: Love doesnt wanna accept my structure
Replies: 7
Views: 158

### 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
Thu Apr 22, 2021 11:32 am
Forum: Support and Development
Topic: Love doesnt wanna accept my structure
Replies: 7
Views: 158

### Re: Love doesnt wanna accept my structure

{tileset = love.graphics.newImage("tiles_blue") map = map} Don't forget the comma! {tileset = love.graphics.newImage("tiles_blue"), map = map} Lua starts from 1: local currentLevel = 1 local row = 1 local collumn = 1 -- maybe column? :) local value = levels[currentLevel][row][co...
Thu Apr 22, 2021 12:30 am
Forum: Games and Creations
Topic: Neural Network: drones
Replies: 3
Views: 114

### Re: Neural Network: drones

Intriguing. They learn? I tried to write a nn in Love (twice) but couldn't get smart enough. Your bots get smart? Yes, at the start they are totally random, but you can press space to make the learning process much faster. On the screen it takes about 300k targets :) :ehem: Cheat: The max speed mus...
Wed Apr 21, 2021 7:00 pm
Forum: Games and Creations
Topic: Neural Network: drones
Replies: 3
Views: 114

### Neural Network: drones

Hi all!

I've made a small program with bots, that must take targets. Bots are using the neural network with Genetic Algorithm.
Tue Apr 20, 2021 3:44 pm
Forum: Support and Development
Topic: [SOLVED] Changing frequency while synthesising sine wave
Replies: 7
Views: 210

### Re: [SOLVED] Changing frequency while synthesising sine wave

How it works?
Mon Apr 19, 2021 4:02 pm
Forum: General
Topic: Using love for a battle demonstrator
Replies: 4
Views: 332

### Re: Using love for a battle demonstrator

Another bezier-clicker with zoom-to-mouse:
Mon Apr 19, 2021 2:40 pm
Forum: General
Topic: Using love for a battle demonstrator
Replies: 4
Views: 332

### Re: Using love for a battle demonstrator

Thanks for your answeer. I dug a little into love2d. For tooltips, I could draw a semi-transparent rectangle with some text inside, but maybe there already exists a library for tooltip, attached to objects ? For zooming in/out, there is the "love.graphics.scale" function. I also noticed t...
Sun Apr 18, 2021 7:49 pm
Forum: General
Topic: Using love for a battle demonstrator
Replies: 4
Views: 332

### Re: Using love for a battle demonstrator

- is it possible to use svg for objects ? I think almost all points: yes, but: Not direct svg, but you can make own parser for it. In this project I've used a map to make the svg, than I've saved it in absolute coordinates and saved as .lua table: https://love2d.org/forums/viewtopic.php?f=14&t=...