Search found 100 matches
- Mon Jan 18, 2021 9:07 pm
- Forum: Support and Development
- Topic: [Solved]Rotating and drawing object to target correctly
- Replies: 5
- Views: 182
Re: Rotating and drawing object to target correctly
The least you can do if you want some help it to explain what you want to do, your message is very disrespectful ...
- Sun Jan 17, 2021 12:07 pm
- Forum: Support and Development
- Topic: LoveFrames and scaling
- Replies: 1
- Views: 100
Re: LoveFrames and scaling
Use 2 canvas, one where you draw you game that will be upscaled and one where you draw you UI stuff that will stay the same. game_canvas = love.graphics.newCanvas() ui_canvas = love.graphics.newCanvas() function love.draw() love.graphics.setCanvas(game_canvas) -- draw game love.graphics.setCavas(ui_...
- Tue Jan 12, 2021 5:37 pm
- Forum: Libraries and Tools
- Topic: Syntax sugar for Lua
- Replies: 2
- Views: 262
Re: Syntax sugar for Lua
Yeah, as I said you should use hex values as workaroundivan wrote: ↑Tue Jan 12, 2021 4:51 pmHi. I appreciate the work you put in but I noticed that the lib is based around string.gsub.
It will not work correctly with something like:Just a heads up, and keep working at it!Code: Select all
var = "var++" print(var)
- Tue Jan 12, 2021 4:37 pm
- Forum: Libraries and Tools
- Topic: Syntax sugar for Lua
- Replies: 2
- Views: 262
Syntax sugar for Lua
I made a small Lua preprocessor that provide some sugar syntax for lua. The code is here : https://github.com/4v0v/m0nk3y Stuff it allow to do : -- var = var + 1 var++ -- var = var + 5, there is also -=, *=, /=, ^=, %=, ..= var += 5 -- if cond then elseif cond2 then end if cond then elif cond2 then ...
- Sat Jan 02, 2021 11:06 am
- Forum: General
- Topic: Optimization Stuff
- Replies: 40
- Views: 15454
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...
- Sat Jan 02, 2021 5:08 am
- Forum: General
- Topic: Optimization Stuff
- Replies: 40
- Views: 15454
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 collection. Lua is slo...
- Thu Nov 26, 2020 4:55 am
- Forum: Support and Development
- Topic: How to make smooth camera movement?
- Replies: 6
- Views: 1963
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...
- Sun Aug 16, 2020 8:54 pm
- Forum: Games and Creations
- Topic: I need feedback about the graphics of my prototype
- Replies: 11
- Views: 6505
Re: I need feedback about the graphics of my prototype
Look very nice !
- Tue Jul 28, 2020 4:56 pm
- Forum: General
- Topic: Löve beginner tutorial [Youtube] All 6 episodes are out!
- Replies: 9
- Views: 3673
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 ?
- 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: 2063
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.
I saw a löve project that did exactly some times ago that but I can't find it.