Search found 445 matches

by Ulydev
Mon Sep 10, 2018 1:24 pm
Forum: Support and Development
Topic: mouse_enter signals like godot?
Replies: 10
Views: 8626

Re: mouse_enter signals like godot?

girng wrote: Mon Sep 10, 2018 9:13 am ...
I've been using love-imgui for the past few months and it's been working fine for me. Have you built the binaries on your computer? What's your OS? (NewFrame() takes no arguments)
by Ulydev
Sun Sep 09, 2018 3:49 pm
Forum: Support and Development
Topic: mouse_enter signals like godot?
Replies: 10
Views: 8626

Re: mouse_enter signals like godot?

girng wrote: Sat Sep 08, 2018 9:33 pmthe latest imgui doesn't work with love2d,
What makes you say this?
by Ulydev
Sat Sep 08, 2018 12:32 pm
Forum: Support and Development
Topic: mouse_enter signals like godot?
Replies: 10
Views: 8626

Re: mouse_enter signals like godot?

I think you've answered the question yourself.

Here's some pseudo-code that would implement your idea (which is the simplest way to achieve what you want):

Code: Select all

update {
  for each object {
    if object:is_on_screen() and object:is_overlap(mouse) {
      object:mouse_entered()
    }
  }
}
by Ulydev
Fri Aug 24, 2018 12:07 pm
Forum: General
Topic: How do you specify the entry file?
Replies: 8
Views: 5656

Re: How do you specify the entry file?

LÖVE automatically reads a main.lua file at the root, but nothing prevents you from require-ing any other file from there. You could go for an architecture like this: / main.lua lib/ app1/ main.lua app2/ main.lua and then require your libraries from the main.lua of each app. just my 2 cents
by Ulydev
Mon Jul 16, 2018 2:57 pm
Forum: Support and Development
Topic: [Box2D] Polygon triangulation - area > b2_epsilon
Replies: 2
Views: 2627

Re: [Box2D] Polygon triangulation - area > b2_epsilon

If anyone is looking for a quick solution, in case your polygons are static you can use love.physics.newChainShape (which entirely removes the need for triangulation / order check).
Else you could tessellate and proceed like HC, which merges triangles together.
by Ulydev
Mon Jul 16, 2018 2:33 pm
Forum: Support and Development
Topic: [Box2D] Polygon triangulation - area > b2_epsilon
Replies: 2
Views: 2627

[Box2D] Polygon triangulation - area > b2_epsilon

Hello everyone, I'm trying to make a level editor where users can create polygons to be placed in a Box2D world. Because there are Bézier curves involved, there can be hundreds of vertices on a single polygon. love.physics.newPolygonShape is limited to 8 vertices, so I decided to use love.math.trian...
by Ulydev
Sun Jul 01, 2018 2:26 pm
Forum: General
Topic: SAT collision
Replies: 2
Views: 3354

Re: SAT collision

Tjakka5 wrote: Sun Jul 01, 2018 12:23 pm Okay with what exactly?
No you don’t get it!!! He’s trying to make advanced collisions!!!! HE NEEDS HELP!!!!!
by Ulydev
Mon Jun 18, 2018 8:21 pm
Forum: Ports
Topic: iOS Side scrolling port
Replies: 2
Views: 34685

Re: iOS Side scrolling port

Hello, you need to configure your project in Xcode. Set the orientation to "landscape".
https://stackoverflow.com/questions/358 ... wift-xcode
by Ulydev
Wed May 30, 2018 3:28 pm
Forum: General
Topic: Searching for an awesome logo for the löve2d documentation
Replies: 5
Views: 6048

Re: Searching for a awesome logo for the löve2d documentation

I really like the current LÖVE logo (split circle with a white heart inside) - you can find the official logos on the wiki https://love2d.org/wiki/L%C3%B6ve_Logo_Graphics