Search found 34 matches
- Tue Jan 11, 2022 8:08 am
- Forum: Libraries and Tools
- Topic: parallax: add parallax scrolling to your camera
- Replies: 1
- Views: 3954
parallax: add parallax scrolling to your camera
parallax is a camera utility library for LÖVE that adds parallax scrolling when used with a camera library. parallax is not a camera system! It lets you add parallax layers to your camera (e.g., gamera ). https://github.com/idbrii/love-parallax Web demo parallax-demo.love https://user-images.githubu...
- Sat Jan 08, 2022 11:10 pm
- Forum: General
- Topic: How to go about daily random numbers
- Replies: 27
- Views: 12863
Re: How to go about daily random numbers
What about this: local d = os.date("!*t") -- utc date local rng = love.math.newRandomGenerator(d.yday, d.year) -- call rng for each random number when building a level: local num = rng:random(1, 1000) It's not really random, because you easily generate numbers for any date in advance. Why ...
- Fri Jan 07, 2022 7:38 am
- Forum: Libraries and Tools
- Topic: PEEKER - Multi-threaded screen recorder for LOVE, made in LOVE, for LOVE.
- Replies: 2
- Views: 6437
Re: PEEKER - Multi-threaded screen recorder for LOVE, made in LOVE, for LOVE.
IDK yet how I will support Windows as it seems to be a pain there, any suggestion is welcome :) Works on Windows for me. I had already installed ffmpeg with scoop to work with Screen2Gif. However, I noticed a bug: if someone used it on macos, and called Peeker.stop(true), it'd delete their captures...
- Fri Jan 07, 2022 6:02 am
- Forum: Libraries and Tools
- Topic: OpenGL events in Love for RenderDoc
- Replies: 8
- Views: 7716
Re: OpenGL events in Love for RenderDoc
Oh yeah, that was meant to be another entry in the table. Shouldn't that latter example (the commented out one) be: function GL:Call(name, fun, ...) -- this works too, since it's functionally equivalent to the above. self:PushEvent(name) fn(...) self:PopEvent() end GL:Call = function(name, fun, ...)...
- Thu Jan 06, 2022 8:15 am
- Forum: Support and Development
- Topic: How to get the final position after multiple graphical operation
- Replies: 15
- Views: 8187
Re: How to get the final position after multiple graphical operation
This thread shows up first in search results for finding world position from transform stack, so I thought I'd add: 11.0 added love.graphics.transformPoint and love.graphics.inverseTransformPoint . That means pgimeno's helpful functions can be reduced to aliases of these functions: local function lo...
- Tue Jan 04, 2022 5:43 pm
- Forum: Libraries and Tools
- Topic: GamepadGuesser: display the right art for gamepads
- Replies: 7
- Views: 6161
Re: GamepadGuesser: display the right art for gamepads
This is pretty cool! Is it to be used for something like control tutorials (the image it makes)? Yeah, or button hints in UI (show B button next to a back label to indicate how to leave a menu or A button below dialogue to show you can advance), or quick time events, or in-world UI for interactions...
- Tue Jan 04, 2022 5:18 pm
- Forum: Libraries and Tools
- Topic: OpenGL events in Love for RenderDoc
- Replies: 8
- Views: 7716
Re: OpenGL events in Love for RenderDoc
That's really cool! You could even add a wrapper func to make adding markers around functions easier: Call = function( self, name, fun, ... ) self:PushEvent( name ) fn(...) self:PopEvent() end function love.draw() GL:Call( "gameplay", mygame.draw, mygame ) -- calls mygame:draw() GL:Call( &...
- Tue Jan 04, 2022 7:08 am
- Forum: Support and Development
- Topic: Check gamepad type
- Replies: 6
- Views: 2940
Re: Check gamepad type
I actually just wrote that! See here: GamepadGuesser: display the right art for gamepads.if gamepad is xbox, then game should display xbox controls, if ps then ps controls, and so on
also i want that
- Tue Jan 04, 2022 6:39 am
- Forum: Libraries and Tools
- Topic: GamepadGuesser: display the right art for gamepads
- Replies: 7
- Views: 6161
Re: GamepadGuesser: display the right art for gamepads
This is my first library posted here, so let me know if I can improve how to bundle up a module.
I hope this library is helpful!
I hope this library is helpful!
- Tue Jan 04, 2022 6:37 am
- Forum: Libraries and Tools
- Topic: GamepadGuesser: display the right art for gamepads
- Replies: 7
- Views: 6161
GamepadGuesser: display the right art for gamepads
Guesses what a gamepad should look like and provides a default set of art that matches the input gamepad. https://github.com/idbrii/love-gamepadguesser Requires love2d 11.3+ (for getGamepadMappingString ). I recently added SDL_GameControllerDB to a project, wrote some code to pretty print my control...