function love.load()
love.window.setMode(500,500)
love.graphics.setLineStyle("rough")
end
function love.draw()
mx,my = love.mouse.getPosition()
love.graphics.setLineWidth(0.1)
love.graphics.line(0,0,mx,my)
end
Might be helpful to provide an example of what you are trying to accomplish. There are fair few wand types in Noita, so it may depend on what effect you're trying to emulate.
im not trying to create any wand, im just confused how did they render every pixel on the screen , and simulate them to create diffrent lines and effects, if you know how just give me a very simple example.
Okay, so you are not asking about lines, but how to make an engine that simulates every pixel on the screen, and apply effects on top of it? You'd effectively have to make something similar to a voxel engine, but limit it to singular pixels for rendering. That's quite a broad subject, but the creators of the game did a talk at GDC, if you are interested.
That's particles. You draw particles that are 1-pixel wide on screen, and animate them in your code by simulating physical forces like "magnetism" etc. so the points converge to the shapes that you're trying to form.
The fastest way to draw point particles in LÖVE is with a custom Mesh object created with the "points" draw mode, where each flying vertex is drawn as a pixel on screen, and you animate the points by manipulating the vertex coordinates.
It's also an advanced use, and I have no idea how dedicated you are at learning new things.