Search found 31 matches
- Mon Mar 30, 2015 6:02 am
- Forum: Libraries and Tools
- Topic: Löve Frames - A GUI Library
- Replies: 406
- Views: 354051
Re: Löve Frames - A GUI Library
Hello, I am greatly enjoying this library. It has saved me a lot of time. I believe I have encountered a bug or perhaps I'm not using it correctly. I have found that the SetAutoScroll method for a ColumnList does nothing. Looking at the code, it appears that the GetScrollBar method is returning noth...
- Fri Aug 30, 2013 7:08 am
- Forum: General
- Topic: Linux talk
- Replies: 11
- Views: 3903
Re: Linux talk
You should probably leave the bootloader on your primary drive, in this case your SSD. Otherwise, in order to boot into Ubuntu, you'll need to tell your BIOS to use your HDD as the first boot device. Grub is fantastic these days for booting multiple OS, including any variant of Windows, so you shoul...
- Fri Aug 30, 2013 5:04 am
- Forum: Support and Development
- Topic: lua destroying a table when i attempt to reference it
- Replies: 3
- Views: 3223
Re: lua destroying a table when i attempt to reference it
Yeah OK... I feel incredibly stupid now.
After pounding my head into my keyboard for an hour, I figure out that, two lines above where I called that function, I called it again - but forgetting to pass the table as an argument.
If only I'd wrote my unit tests first.
After pounding my head into my keyboard for an hour, I figure out that, two lines above where I called that function, I called it again - but forgetting to pass the table as an argument.
If only I'd wrote my unit tests first.
- Fri Aug 30, 2013 3:14 am
- Forum: Support and Development
- Topic: lua destroying a table when i attempt to reference it
- Replies: 3
- Views: 3223
Re: lua destroying a table when i attempt to reference it
I can't figure out how or why this is happening, but if I do anything other than just print the contents of the table, it becomes nil. Even if I try to iterate over it with pairs, it immediately becomes nil.
- Fri Aug 30, 2013 2:32 am
- Forum: Support and Development
- Topic: lua destroying a table when i attempt to reference it
- Replies: 3
- Views: 3223
lua destroying a table when i attempt to reference it
Hello, I am having an unusual issue in which a table I have passed to a function exists if I merely attempt to print it, but if I attempt to reference it, it gets destroyed(!). Observe the following: function f_give_me_a_table() local tbl = { [1] = 'data', [2] = 'more data', [3] = 'even more', } ret...
- Tue Aug 20, 2013 5:59 pm
- Forum: Support and Development
- Topic: Writing unit tests within love code
- Replies: 9
- Views: 7906
Re: Writing unit tests within love code
It looks like he took the same approach I did, and mocks all of the needed love functions. At least I know I'm on the right track.
Does anyone else here have experiencing writing unit tests for their love code?
Does anyone else here have experiencing writing unit tests for their love code?
- Sun Aug 18, 2013 9:50 am
- Forum: Support and Development
- Topic: Writing unit tests within love code
- Replies: 9
- Views: 7906
Writing unit tests within love code
Hello, I have some questions regarding best practices or at least "acceptable" practices for writing unit tests for LUA code written specifically for love. I'll preface this by saying I'm totally a goal-oriented person, so my primary interests are in producing code that does what I intend ...
- Tue Jan 29, 2013 9:24 am
- Forum: Support and Development
- Topic: Scaling accuracy and spritebatches
- Replies: 28
- Views: 16233
Re: Scaling accuracy and spritebatches
Yeah, I was afraid of that. Unfortunately, if I want to support free scaling and rotation with multiple windows present(which I do, using gamera), enforcing whole number scaling is very difficult. I tried many methods of adjusting drawing positions and scaling to nearest whole or quarter numbers but...
- Mon Jan 28, 2013 11:41 pm
- Forum: Support and Development
- Topic: Scaling accuracy and spritebatches
- Replies: 28
- Views: 16233
Scaling accuracy and spritebatches
Short and sweet: I've noticed when using scaling, even scaling with powers of 2, images drawn from quads will "bleed" in to adjacent quads, usually by 1 or 2 pixels. Is this normal behavior, and if so, what are some workarounds?" Long and lovely: In this scenario, I have a tile set co...
- Mon Jan 28, 2013 4:13 am
- Forum: Support and Development
- Topic: Writing data structures to files
- Replies: 2
- Views: 1942
Writing data structures to files
Hi there, I read the love.filesystem documentation on the wiki and tried some forum searching, but couldn't find an answer specific to my question. In short, I want to serialize a table and write it to disk. The data contains no references or metadata, it's just a long list of more tables and string...