Search found 873 matches

by vrld
Thu Jul 14, 2016 11:18 am
Forum: Support and Development
Topic: The Better GUI framework for Love
Replies: 7
Views: 6122

Re: The Better GUI framework for Love

Let's see how SUIT fits your requirements: - Easy to Pick Up I'd argue SUIT is easier to use than other libraries, but because it's an immediate mode gui (imgui) you might need to unlearn some stuff first. - Themeable It's not (yet) fully documented, but you can change the look of every widget. The ...
by vrld
Wed Jul 13, 2016 8:52 pm
Forum: Support and Development
Topic: hump.camera and SUIT - mouse position problems.
Replies: 4
Views: 4011

Re: hump.camera and SUIT - mouse position problems.

Ikroth wrote:If you just need the mouse position, you can use camera:mousePosition. It's aware of how the camera is translated.
You also need to tell SUIT the mouse position with suit.updateMouse():

Code: Select all

suit.updateMouse(cam:mousePosition())
Or you can draw the UI outside the cam:attach()/cam:detach() pair.
by vrld
Fri Jul 08, 2016 2:48 pm
Forum: Libraries and Tools
Topic: ImGui LÖVE module
Replies: 169
Views: 239717

Re: ImGui löve module

Sorry for hijacking the thread to promote my libraries, but SUIT is a pure Lua imgui library. ocornut's imgui lib offers way more widgets than SUIT does. However, most (all?) of the traditional widgets can be implemented using just a few the basic imgui building blocks: buttons, sliders, and inputs....
by vrld
Fri Jul 08, 2016 2:33 pm
Forum: Support and Development
Topic: Hump & transition image effects
Replies: 14
Views: 10988

Re: Hump & transition image effects

Timer.after(3, function() Timer.tween(3, color, {0,0,0}, 'in-out-quad') end) Maby I misunderstood how this works, - Am I right in thinking that the number you are supplying to Timer.after is a value that reflects the time since the program started? You do misunderstand. I's the time in seconds afte...
by vrld
Thu Jul 07, 2016 6:49 pm
Forum: Support and Development
Topic: Hump & transition image effects
Replies: 14
Views: 10988

Re: Hump & transition image effects

The transition I want to replicate is the following one. Notice how the sprites are tweened across the screen before a fade to the dungeon combat state. Here's how I implemented gamestate transitions in my ludum dare 34 entry . The splash screen from that game has a similar transition effect from w...
by vrld
Mon Jun 06, 2016 1:27 pm
Forum: Support and Development
Topic: How to get the final position after multiple graphical operation
Replies: 15
Views: 8137

Re: How to get the final position after multiple graphical operation

Edit : Just another question : I'll make an MoonScript implementation of the SFML's Transform class. This class use a 4x4 matrix, for 2D, should I use a 4x4 or a 3x3 matrix ? In 2D, you can express any affine transformation besides translation (moving) using a 2x2 matrix. If you want to include tra...
by vrld
Tue May 31, 2016 7:49 pm
Forum: Support and Development
Topic: how to avoid collision missing in hardoncollider
Replies: 2
Views: 2323

Re: how to avoid collision missing in hardoncollider

This works for me: local HC = require 'HC' function love.load() r1 = HC.rectangle(200,100,300,150) r2 = HC.rectangle(275,200,150,100) end function love.draw() r1:draw() r2:draw() local collide, dx,dy = r1:collidesWith(r2) love.graphics.print(("collide? %s, d = (%f,%f)"):format(collide, dx,...
by vrld
Fri May 27, 2016 9:49 am
Forum: Support and Development
Topic: Saving Images
Replies: 1
Views: 2148

Re: Saving Images

image:[wiki=(Image):getData]getData[/wiki]():[wiki=ImageData:encode]encode[/wiki]("png", "image.png")

Or: [wiki]Canvas:newImageData[/wiki]():encode("png", "canvas.png")
by vrld
Thu May 26, 2016 8:21 pm
Forum: General
Topic: What's obey?
Replies: 18
Views: 11258

Re: What's obey?

drunken_munki wrote:It's pretty disturbing either way, I certainly don't see it as particularly smart or funny; but then maybe I'm not < 18 years old.
Ahem.
by vrld
Wed May 18, 2016 8:36 am
Forum: General
Topic: What's obey?
Replies: 18
Views: 11258

Re: What's obey?

obey (/ə(ʊ)ˈbeɪ/) from Anglo-Norman obeir , obeier et al., Old French obeir , from Latin oboedire (also obēdīre ‎(“to listen to, harken, usually in extended sense, obey, be subject to, serve”)), from ob- ‎(“before, near”) + audīre ‎(“to hear”). Compare audient . Verb: obey ‎( third-person singular ...