Search found 417 matches

by darkfrei
Tue Nov 17, 2020 9:15 pm
Forum: Games and Creations
Topic: Particles
Replies: 5
Views: 4241

Re: Particles

Would you care to share what the "more complex rules" are? All particles have same mass by this simulation. See Gravity simulation for various masses: https://love2d.org/forums/viewtopic.php?f=14&t=89764 This rules are not mine, just my implementation of them; There is 3x9 = 27 types ...
by darkfrei
Tue Nov 17, 2020 9:06 pm
Forum: Games and Creations
Topic: [WIP] N-Ring, 2D racing or cars
Replies: 3
Views: 7354

[WIP] N-Ring, 2D racing or cars

Right now just the track, with zoom and grid.
by darkfrei
Sun Nov 15, 2020 5:58 pm
Forum: Games and Creations
Topic: Particles
Replies: 5
Views: 4241

Re: Particles

New version, a lot of changings.

Image
particles-1-03.love
(3.67 KiB) Downloaded 184 times
by darkfrei
Sat Nov 14, 2020 10:41 pm
Forum: Games and Creations
Topic: Particles
Replies: 5
Views: 4241

Particles

Small project about particles, that can attract and repel each other. Based on the Gravity, but here is more complex rules.

Yes, it looks like some fishes.
by darkfrei
Thu Nov 12, 2020 9:17 pm
Forum: Support and Development
Topic: Zoom
Replies: 1
Views: 2288

Re: Zoom

Try this one
by darkfrei
Thu Nov 12, 2020 11:44 am
Forum: Support and Development
Topic: Can someone help me with this piece of code?
Replies: 4
Views: 3251

Re: Can someone help me with this piece of code?

With this preset is much better:
Image
Image
So, your spritesheet cannot be right cropped, it's too small. Also, you can make the 9x3 tiles, not 7x4-1.
by darkfrei
Wed Nov 11, 2020 10:38 pm
Forum: Games and Creations
Topic: Gravity simulation
Replies: 0
Views: 3930

Gravity simulation

Hi!

I've made small simulation of gravity. No collisions, but you can simulate up to 1000 bodies with up to 14 fps. Such big simulation need about half million of interactions with each other body.

By default only 30 bodies, relative huge gravitational constant.
by darkfrei
Tue Nov 10, 2020 3:51 pm
Forum: Support and Development
Topic: Scaling and camera offset
Replies: 4
Views: 3963

Re: Scaling and camera offset

Why the WASD is reversed?

Why not exponential zoom?

Code: Select all

camscale_factor = (1+dt*zoomspeed) 
-- or camscale_factor  = 1/(1+dt*zoomspeed) 
camscale = camscale * camscale_factor
by darkfrei
Mon Nov 09, 2020 11:19 am
Forum: Support and Development
Topic: Zoom to Mouse
Replies: 4
Views: 4136

Re: Zoom to Mouse

Small library with zoom to mouse and move window with mouse.