Search found 101 matches

by Mr. Strange
Wed Dec 03, 2008 8:10 pm
Forum: General
Topic: picky question about length operator
Replies: 3
Views: 3811

picky question about length operator

I've been using the length operator (#) lots these days, since the thread here which showed it was much faster than table.maxn. However, I've begun using structures which have both tightly-packed enumerated data, and data with string keys. For example: test = { x = 0, y = 0, name = "Funny Table...
by Mr. Strange
Wed Dec 03, 2008 6:13 pm
Forum: Support and Development
Topic: Inefficiencies with loading data
Replies: 8
Views: 6134

Inefficiencies with loading data

Alright, my latest love app is getting to the stage where I have (potentially) a whole lot of data to load. So I'm trying to get my data to be as efficient as possible. Some background: My application deals with "cards" of information. There are 2000+ cards, each with unique data, includin...
by Mr. Strange
Tue Dec 02, 2008 7:56 am
Forum: Support and Development
Topic: Fonts!
Replies: 7
Views: 6061

Re: Fonts!

I discovered the source of my performance woes - it was actually the way I was scaling my text. Since I want word wrap, I coludn't scale my text in the draw function, so I was re-loading my font dozens of time every frame with different size values. When I got rid of word wrap, and loaded the font o...
by Mr. Strange
Tue Dec 02, 2008 12:45 am
Forum: General
Topic: Is LÖVE really necessary?
Replies: 54
Views: 46522

Re: Is LÖVE really necessary?

Here is the reason I'm up to my eyeballs in LÖVE projects: 1 - I need to use lua and become proficient in it, as lua has become the big winner within professional game development. (Shipped Tomb Raider Underworld last week...) 2 - I need to prototype game ideas as part of the pre-production process....
by Mr. Strange
Tue Dec 02, 2008 12:25 am
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 225252

Re: LUBE (Networking Library)

I'm afraid you may be running pretty far afield from my original question - let me try to be very clear: I use Mon's example, with some tweaks, to basically write a little chate application. I use ipconfig to discover my local (internal) IP address, hard-code that into the client script, and then ru...
by Mr. Strange
Mon Dec 01, 2008 5:18 am
Forum: Support and Development
Topic: Windows!
Replies: 2
Views: 3091

Windows!

I believe I asked about this early on, but it's coming up again... I would really like to have the option to let users drag my application windows to be whatever size/shape they prefer. I'd also like to spawn a couple of independent windows. What's the official word on how well these concepts fit in...
by Mr. Strange
Mon Dec 01, 2008 5:14 am
Forum: Support and Development
Topic: Fonts!
Replies: 7
Views: 6061

Re: Fonts!

Is it just the wrapping text which is slow, or is text in general slow? If it's just wrapping that is a problem, I could take the time to "pre-wrap" all of my text. Lots more display calls, since I'd need one per line. But it would give me better control. That would also be a work around f...
by Mr. Strange
Mon Dec 01, 2008 5:09 am
Forum: General
Topic: API Wars
Replies: 39
Views: 25246

Re: API Wars

1 - I trust your judgement.
2 - I very much agree with this approach. Radians across all.
3 - This hasn't been a problem for me yet, but I like the forward-looking perspective.

Go LÖVE!

--Mr. Strange
by Mr. Strange
Mon Dec 01, 2008 5:05 am
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 225252

Re: LUBE (Networking Library)

Well, I was able to expand the example a bit, and make a simple chat program. I'm running client and server both on my same machine, or on two machines in my LAN, and it works fine. But of course I have my own "internal" IP address, which is useless for someone on the outside using this pr...
by Mr. Strange
Sun Nov 30, 2008 11:28 pm
Forum: Support and Development
Topic: Support for saving/loading the Lua state?
Replies: 19
Views: 11871

Re: Support for saving/loading the Lua state?

Structuring your data such that it is reasonable to save and load your game needs to be an early part of your planning. If you're having trouble, I think it would be best to restructure your program - it's the only way to deal with the save/load issue properly down the line.

--Mr. Strange