Couple of questions

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Simtex
Prole
Posts: 39
Joined: Sun Dec 14, 2008 5:31 am

Couple of questions

Post by Simtex »

I'm currently working on a 2d game project using pyglet, but due to some minor irritation with Python was looking at LÖVE as an alternative. I have a couple questions though:

1. Is there any chance that mouse picking similar to what you see here will be added to LÖVE in the near future?

2. Can you/How do you get a LÖVE project into a debugger?
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: Couple of questions

Post by mike »

1. Hey, that seems pretty cool. It would simply require the use of love.graphics.getColorAt(x,y) or something like that, right? It seems like a something that would be useful to have.
Now posting IN STEREO (where available)
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Couple of questions

Post by bartbes »

1. Hmm.. might be possible to do in pure Lua just to fill the time to the next release ;)
2. Well, you can't go as far as gdb :P , however LÖVE automatically stops and gives a blue screen (sounds really bad ;)) propagating the error (in standard Lua error style). So whenever it finds an error it just stops and shows it, giving you the option to restart, continue and quit. Assert and error both trigger the screen, so that works as you'd expect it to. It might not be ideal, but it works.

FEATURE REQUEST: shake clone for LÖVE
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: Couple of questions

Post by mike »

bartbes wrote:It might not be ideal, but it works.
I find your lack of faith disturbing.

Hmm, what about love.system.error("This is an error") for causing your own errors? Is this interesting to anyone?
Now posting IN STEREO (where available)
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Couple of questions

Post by rude »

mike wrote:Hmm, what about love.system.error("This is an error") for causing your own errors? Is this interesting to anyone?
I find you lack of cognitive skills disturbing.
bartbes wrote:Assert and error both trigger the screen, so that works as you'd expect it to.
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: Couple of questions

Post by mike »

rude wrote:I find you lack of cognitive skills disturbing.
What? Did I miss something? Have I been sleeping?

Edit: Nevermind. Found it. I have a penchant for making an ass of myself.
Now posting IN STEREO (where available)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 4 guests