Search found 126 matches

by 4vZEROv
Sat Jan 02, 2021 11:06 am
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 48160

Re: Optimization Stuff

This game is made with love2d, is reasonably-scaled and use garbage collection. I do not consider Asteroids (or any clone thereof) to be of any reasonable scale. It is, quite literally, one of the simplest games ever made. You didn't understand my message, it's a reasonable scale love2d game. Lua i...
by 4vZEROv
Sat Jan 02, 2021 5:08 am
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 48160

Re: Optimization Stuff

I'm new to the community; could you link me to one you think fits that description to study? I note that you downgraded your adjective from "giant" to "reasonably-scaled"... https://github.com/a327ex/BYTEPATH This game is made with love2d, is reasonably-scaled and use garbage co...
by 4vZEROv
Thu Nov 26, 2020 4:55 am
Forum: Support and Development
Topic: How to make smooth camera movement?
Replies: 6
Views: 5593

Re: How to make smooth camera movement?

When you want to smoothly set a value to a target value you want to use linear interpolation (aka. lerp). function lerp(a, b, x) return a + (b - a) * x end -- or a better version framerate independant function lerp(a, b, x, dt) return a + (b - a) * (1.0 - math.exp(-x * dt)) end In your case the hump...
by 4vZEROv
Tue Jul 28, 2020 4:56 pm
Forum: General
Topic: Löve beginner tutorial [Youtube] All 6 episodes are out!
Replies: 9
Views: 8881

Re: Löve tutorial series [Youtube]

Nice, you have good editing skill so it's not boring to hear. Also the small lengh is good. What do you use to edit your videos ?
by 4vZEROv
Mon Jul 27, 2020 9:49 am
Forum: Support and Development
Topic: Is there anything like a version manager for Löve?
Replies: 5
Views: 3839

Re: Is there anything like a version manager for Löve?

You could make a batch file that read the love.version variable inside your projects & launch the good version of löve accordingly.
I saw a löve project that did exactly some times ago that but I can't find it.
by 4vZEROv
Thu Jun 25, 2020 5:21 pm
Forum: Support and Development
Topic: Help with Particle System
Replies: 2
Views: 2086

Re: Help with Particle System

https://love2d.org/wiki/love.graphics.newParticleSystem

Also there is a new software that can help you create particle systems here : https://love2d.org/forums/viewtopic.php?f=5&t=88860
by 4vZEROv
Thu Jun 25, 2020 5:15 pm
Forum: Support and Development
Topic: Help for converting units in Love2D
Replies: 1
Views: 1873

Re: Help for converting units in Love2D

The love.physics module is a binding of Box2d. https://love2d.org/wiki/love.physics In box2d the distance is in meters, not in pixel. love.physics.getMeter() return how much pixel equals 1 meter inside the box2d world. If you don't want to use Box2d, just set an arbitrary global number as the number...
by 4vZEROv
Sat Jun 20, 2020 11:30 am
Forum: General
Topic: Access variables in different files
Replies: 2
Views: 3794

Re: Access variables in different files

When you write require('file') you are essentially pasting all the content of the file at the place of the require line. Also you can see here : https://love2d.org/wiki/love.run where the love.load() function is really called inside the love2d game loop. If you want to use a global variable in the f...