Search found 26 matches
- Fri Jun 05, 2020 6:38 pm
- Forum: Libraries and Tools
- Topic: sfxr.lua - Generate sounds dynamically at runtime
- Replies: 32
- Views: 48280
Re: sfxr.lua - Generate sounds dynamically at runtime
Sorry if it's bad form to resurrect this thread. If so, let me know and I will start a new one. I was excited to find this because I wanted similar functionality in a project I'm working on. So I spent some time over the past couple of nights getting it to work nicely with 11.3. After building the o...
- Thu Jun 04, 2020 8:27 pm
- Forum: Support and Development
- Topic: [SOLVED] Table referenced between scripts is "nil". Why?
- Replies: 4
- Views: 8782
Re: Table referenced between scripts is "nil". Why?
floorplan is local and not returned anywhere, so it's not accessible outside the scope where it's declared.
You need to add
before you return the home table.
You need to add
Code: Select all
home.floorplan = floorplan
- Mon Jun 01, 2020 10:57 pm
- Forum: Support and Development
- Topic: Object orientation & code complexity [Multiplayer 4X]
- Replies: 13
- Views: 18460
Re: Object orientation & code complexity [Multiplayer 4X]
You were only showing the first sub-table. I modified your program so that the x positions of the boxes are each different, it prints the values for each box, and so that the box colors are different. (I stored the colors as a sub-table of each box.) That should make it easier to get a mental pictur...
- Mon Jun 01, 2020 2:04 pm
- Forum: Support and Development
- Topic: Cannot open a game in 0.10.2
- Replies: 3
- Views: 5168
Re: Cannot open a game in 0.10.2
In that case, try using the second method on the wiki page to run it and see if you can get a better error message. /Applications/love.app/Contents/MacOS/love /Users/[My username]/Desktop/assignment0 I don't have a mac handy to try on right now, but I just re-downloaded the zip and confirmed that 0....
- Mon Jun 01, 2020 1:52 pm
- Forum: Libraries and Tools
- Topic: Hot Particles - particle editor
- Replies: 70
- Views: 141155
- Mon Jun 01, 2020 7:11 am
- Forum: Libraries and Tools
- Topic: Hot Particles - particle editor
- Replies: 70
- Views: 141155
Re: Hot Particles - particle editor
Very nice work. Works great here. (Love 11.3, Fedora 32.)
I'm happy to take this to PM if you think it's a distraction here... but what is up with the source? It's not quite lua, and googling gloa in various combinations with lua is not enlightening me yet.
I'm happy to take this to PM if you think it's a distraction here... but what is up with the source? It's not quite lua, and googling gloa in various combinations with lua is not enlightening me yet.
- Mon Jun 01, 2020 7:03 am
- Forum: Support and Development
- Topic: Cannot open a game in 0.10.2
- Replies: 3
- Views: 5168
Re: Cannot open a game in 0.10.2
I'm doing that course too. Definitely stick to 0.10.2 until you are very comfortable with the differences. I'm probably going to use 11.3 for my final project, now that I am getting ready to start that, FWIW. Does '/Users/[My username]/Desktop/assignment0' directly contain main.lua? The folder you o...
- Sun May 31, 2020 8:29 am
- Forum: Support and Development
- Topic: Object orientation & code complexity [Multiplayer 4X]
- Replies: 13
- Views: 18460
Re: Object orientation & code complexity [Multiplayer 4X]
(Aside: you probably want a new topic for this instead of attaching it to a very old thread...) I don't exactly understand your goal, but I see one problem: In you second loop, each v is a table, not a field. If you want to display field values, you need something like for ii, vv in pairs(v) do -- p...
- Fri May 29, 2020 6:24 pm
- Forum: Support and Development
- Topic: Attempt to perform arithmetic on "color" a nil value.
- Replies: 4
- Views: 3426
Re: Attempt to perform arithmetic on "color" a nil value.
Check to see if you're accidentally calling brick.render() instead of brick:render(). self isn't passed as an implicit first parameter with . the same way it is with : .
- Thu May 28, 2020 3:42 am
- Forum: Support and Development
- Topic: Advancing animation frames manually?
- Replies: 2
- Views: 2561
Re: Advancing animation frames manually?
Thanks for posting this. I was debugging something kind of adjacent to this, and reading/thinking about your question helped clarify things for me. Even though I'm not 100% certain I understand your question. Here's the little program I made to help me understand things: key_quads.love Note that the...