Search found 100 matches

by Ross
Tue Jul 30, 2024 12:24 pm
Forum: General
Topic: script lua chunk
Replies: 5
Views: 7094

Re: script lua chunk

Another traditional way to do it is to define the table to be returned at the top and then define the functions you want to export in that table to begin with. This is a bit shorter and saves you from duplicating the names of everything. Perhaps you like the look of that better. local M = {} -- By a...
by Ross
Fri May 17, 2024 11:42 am
Forum: General
Topic: Is LÖVE good enough for a big metroidvania game?
Replies: 7
Views: 3197

Re: Is LÖVE good enough for a big metroidvania game?

I'm surprised no one mentioned Gravity Circuit here yet. It's a pretty full-sized platformer made with Löve: https://store.steampowered.com/app/858710/Gravity_Circuit/ The engine is good enough. It's more or less as fast as anything else, and since it's a fairly low-level framework, it basically nev...
by Ross
Tue Apr 02, 2024 12:11 pm
Forum: General
Topic: What exactly *is* LÖVE 2D?
Replies: 3
Views: 2097

Re: What exactly *is* LÖVE 2D?

It's more of a "framework". There is no built-in scene tree, game objects, draw ordering, GUI system, or anything like that. There are some main lifecycle callbacks (load, update, draw, etc.) and input callbacks, and then various modules with functions to help you do what you want. See: ht...
by Ross
Thu Mar 14, 2024 7:50 pm
Forum: Support and Development
Topic: Overlapping sensors - Box2D order / behavior
Replies: 8
Views: 3048

Re: Overlapping sensors - Box2D order / behavior

Here's another demo that actually uses physics bodies.
by Ross
Thu Mar 14, 2024 7:06 pm
Forum: Support and Development
Topic: Overlapping sensors - Box2D order / behavior
Replies: 8
Views: 3048

Re: Overlapping sensors - Box2D order / behavior

Aha, I think I see. So it's something like, if you had concentric circles, where the largest overlaps all smaller circles, and you want to know which "ring" a certain object is in. In that scenario it would simply be the smallest circle that the object is still overlapping. You just need t...
by Ross
Thu Mar 14, 2024 4:14 pm
Forum: Support and Development
Topic: Overlapping sensors - Box2D order / behavior
Replies: 8
Views: 3048

Re: Overlapping sensors - Box2D order / behavior

Sensor shapes will not cause preSolve and postSolve callbacks, only beginContact and endContact. Also one of the bodies must be dynamic to get any events at all. Other than that, overlapping sensors should work fine. I don't quite understand what you are trying to do from your description, maybe you...
by Ross
Sat Feb 24, 2024 1:18 pm
Forum: General
Topic: Shaders, Help!
Replies: 5
Views: 4111

Re: Shaders, Help!

You're welcome. I'm glad that helped.
by Ross
Thu Feb 22, 2024 12:51 pm
Forum: General
Topic: Shaders, Help!
Replies: 5
Views: 4111

Re: Shaders, Help!

Take a look at the documentation for love.graphics.newShader again. As the error message says, you need to provide either a "position" function or an "effect" function (or both). You are instead defining two "main" functions in the same string. Additionally, if you want...
by Ross
Mon Feb 05, 2024 3:02 pm
Forum: General
Topic: Game engines and frameworks.
Replies: 11
Views: 7691

Re: Game engines and frameworks.

Sadly, I doubt it. I think if there was something polished, it would be well(-enough) known.

It's a lot of work. I've been working on mine for...six years :death:, and it's not done yet, heh.

Are you looking for something with all the graphical editors and tools, or just extra code framework?
by Ross
Tue Jan 16, 2024 12:57 pm
Forum: Support and Development
Topic: 2D lighting engines
Replies: 12
Views: 33732

Re: 2D lighting engines

The basic lighting that many 2D games use, like so: how-to-point-light.jpg is quite simple to do. It requires very minimal shader knowledge. It's just an overlay. The lights are just images with the "add" blend mode, drawn to a separate canvas. Then you multiply the lighting canvas color w...