I thought LuaJIT was a method compiler, my bad.
So the code that is inside the callback passed to coroutine.create will be compiled normally as long as i dont call yield, resume, etc in there?
Search found 15 matches
- Thu Feb 18, 2021 1:08 am
- Forum: Support and Development
- Topic: Does LuaJit compile functions called inside of a corountine?
- Replies: 3
- Views: 2847
- Wed Feb 17, 2021 11:20 pm
- Forum: Support and Development
- Topic: Does LuaJit compile functions called inside of a corountine?
- Replies: 3
- Views: 2847
Does LuaJit compile functions called inside of a corountine?
Or they are just completely ignored as wall as the coroutine?
- Tue Feb 16, 2021 12:42 pm
- Forum: Support and Development
- Topic: HUMP camera zoom smoothing?
- Replies: 9
- Views: 4631
Re: HUMP camera zoom smoothing?
why not just tween the parameter passed to camera.zoomTo function?
- Mon Feb 15, 2021 3:50 pm
- Forum: Support and Development
- Topic: editor + debug love2d
- Replies: 2
- Views: 3622
Re: editor + debug love2d
Nice tip.
Why use that instead of the love console?
Why use that instead of the love console?
- Fri Feb 12, 2021 1:22 am
- Forum: Support and Development
- Topic: body shape - bezier curve
- Replies: 2
- Views: 3242
Re: body shape - bezier curve
no, you'll need to transform the bezier into a polygon or chain shape and then attach the shape to a fixture/body
- Sun Feb 07, 2021 6:30 pm
- Forum: Games and Creations
- Topic: [WIP][First Game] car/platformer
- Replies: 1
- Views: 3260
[WIP][First Game] car/platformer
its a mix between a car game and a platformer.
it will probably be my graduation projet when finished.
it will probably be my graduation projet when finished.
- Tue Jan 12, 2021 11:48 am
- Forum: Support and Development
- Topic: is socket.http slow?
- Replies: 2
- Views: 4599
Re: is socket.http slow?
Well i should have tested it with another api before opening the thread, your example runs pretty fast in my machine too. I think the problem is json-server, for some reason it is slow when called from socket.http.
- Mon Jan 11, 2021 10:38 pm
- Forum: Support and Development
- Topic: is socket.http slow?
- Replies: 2
- Views: 4599
is socket.http slow?
I'm executing a simple GET with socket.http to my local api (json-server) and it's taking about 2 seconds to finish the request. Is this normal? local conn = require 'socket.http' print(os.time()) local r, s = conn.request(url) print(os.time()) the above code produces: 1610403955 1610403957 When i c...
- Fri Jan 08, 2021 11:21 pm
- Forum: Support and Development
- Topic: Making a progression bar
- Replies: 10
- Views: 10054
Re: Making a progression bar
Just load a few objects at every update() instead of loading the whole thing.
Or create a corountine that loads the map and do a resume()/yield() after loading some amount of objects, do that untill everything is loaded.
Or create a corountine that loads the map and do a resume()/yield() after loading some amount of objects, do that untill everything is loaded.
- Mon Dec 28, 2020 10:18 pm
- Forum: Support and Development
- Topic: How to make sure someone actually beated a level/course?
- Replies: 4
- Views: 5569
How to make sure someone actually beated a level/course?
There will be a leaderboard in my game and everytime someone beats a level, i make a request to the server, something like: POST 'api/course/cleared/LEVEL_ID'. But this is not safe since anyone could just send a fake call to the api passing any LEVEL_ID they want. My first idea was record every inpu...