Search found 6 matches

by totem
Wed Jul 04, 2012 7:49 pm
Forum: Support and Development
Topic: Menu Buttons
Replies: 4
Views: 3462

Re: Menu Buttons

I'm still learning myself, but Lua is flexible enough so that you can think of your own way of implementing things. Personally, I would create a new table for each button, and store relevant data about the button such as callbacks when clicked, dimensions, coordinates, colors, etc. So: button1 = {c...
by totem
Wed Jul 04, 2012 7:12 pm
Forum: Support and Development
Topic: Menu Buttons
Replies: 4
Views: 3462

Re: Menu Buttons

Just do a simple point in bounding box test (assuming that your box is a rectangle and not some funky quadrilateral). It's fast and short. A variation of this: https://love2d.org/wiki/BoundingBox.lua -- where x,y,w,h are the coordinates and dimensions of the button box and mx,my are the coordinates...
by totem
Wed Jul 04, 2012 6:54 pm
Forum: Support and Development
Topic: Menu Buttons
Replies: 4
Views: 3462

Menu Buttons

I don't have any code yet but I was just wondering if anyone had any elegant techniques for clickable buttons. I was thinking about having the corners of each button saved in a table, and then calling mouse.getPosition each frame and checking to see if the coord is within the boundaries of the butto...
by totem
Mon Jun 25, 2012 4:28 am
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1513159

Re: What's everyone working on? (tigsource inspired)

An IRC Client, that uses Love Frames.

The client will have various nefarious features such as bot scripting, channel spammers, and capabilities to allow for other dastardly deeds to be carried out,

It's a monster.
by totem
Mon May 28, 2012 8:05 pm
Forum: General
Topic: Quick Noob Question
Replies: 3
Views: 1557

Re: Quick Noob Question

fantastic, this is excellent news. I hope I didn't waste too much time/resources on such a trivial detail. I'll be sure to post here once I build something.

thanks,
love totem
by totem
Mon May 28, 2012 4:41 pm
Forum: General
Topic: Quick Noob Question
Replies: 3
Views: 1557

Quick Noob Question

I've decided to start learning lua and I was looking at love for a graphics library. I'm interesting in making games and also some web stuff, but for me to start making games, I was wondering about images. If I started using love, would I be able to use my own graphics and my own sprites? All the sc...