Search found 1154 matches

by davisdude
Wed May 24, 2017 3:02 am
Forum: Libraries and Tools
Topic: love-release - in Lua ! - makes LÖVE game release easier
Replies: 143
Views: 45299

Re: love-release - in Lua ! - makes LÖVE game release easier

Does the script have to be for Lua 5.1? For various reasons, I'm unable to install luarocks with lua 5.1 and get it to work, yet with 5.2 it works without any issues.
by davisdude
Sat May 20, 2017 9:16 pm
Forum: Support and Development
Topic: Bullets Disappearing when removing them during ipairs loop.
Replies: 2
Views: 521

Re: Bullets Disappearing when removing them during ipairs loop.

What you need to do is loop over the table backwards. This is because the length of the table changes over the course of iteration, so you can't use it as the ending point.

Code: Select all

for i = #tab, 1, -1 do
    -- code
end
by davisdude
Mon May 08, 2017 8:55 pm
Forum: Support and Development
Topic: How to setup VIM
Replies: 34
Views: 6539

Re: How to setup VIM

Edit: Oh hey, that start cmd /c might be useful here. I guess I'll be doing that from now on. (This is the life of being a vim user, you're always learning a new tip) Yeah, it took me a while to figure out something that really worked for my needs. For running single files, I actually use "!start c...
by davisdude
Fri Apr 28, 2017 3:01 am
Forum: Support and Development
Topic: Choose from a list of numbers?
Replies: 3
Views: 921

Re: Choose from a list of numbers?

Sure. It depends on what you mean by "random list of numbers," though. For instance, if you want a random integer, try love.math.random( lowest, highest ) where lowest and highest are the (inclusive) range of the values you would expect. If you have a "list" (integer-indexed table) of pre-generated ...
by davisdude
Tue Apr 25, 2017 11:56 am
Forum: General
Topic: Tutorial on making a complete game with LÖVE
Replies: 4
Views: 2230

Re: Tutorial on making a complete game with LÖVE

These are really great! They explain everything really very well, but are still concise. I like how you're explaining the implementation of things from the ground-up. It helps people understand why you're doing something a certain way. One random question: what is the name of the font you're using i...
by davisdude
Tue Apr 18, 2017 12:45 pm
Forum: General
Topic: An Awesome List Of One-Person-Games
Replies: 14
Views: 3793

Re: An Awesome List Of One-Person-Games

Would a game like this count? It's a huge game and he made pretty much the entirety of it by himself. He recently (around the end of last year if I remember) added two more people: one for art and one for sound effects, but he has done all the programming by himself. It's not released commercially y...
by davisdude
Wed Apr 05, 2017 2:07 pm
Forum: Support and Development
Topic: "Attempt to index global x a (a nil value)" error
Replies: 7
Views: 1290

Re: "Attempt to index global x a (a nil value)" error

To me, it looks like the library sets the variable to whatever is passed as the string. So you would access it using something like this:

Code: Select all

x = _G["button" .. i]
x.position = { 1, 1 }
by davisdude
Wed Mar 29, 2017 8:18 pm
Forum: Support and Development
Topic: How to setup VIM
Replies: 34
Views: 6539

Re: How to setup VIM

Edit: Oh hey, that start cmd /c might be useful here. I guess I'll be doing that from now on. (This is the life of being a vim user, you're always learning a new tip) Yeah, it took me a while to figure out something that really worked for my needs. For running single files, I actually use "!start c...
by davisdude
Wed Mar 29, 2017 3:15 am
Forum: Support and Development
Topic: How to setup VIM
Replies: 34
Views: 6539

Re: How to setup VIM

Messing around with this today I figured something out. If the " &" solution doesn't do the trick, this may help: the Vim "!start" command (which is different from "! start", the command which is Windows only), does NOT work the same way as the command line. In other words, if you use a shell file t...
by davisdude
Tue Mar 28, 2017 6:57 pm
Forum: Games and Creations
Topic: Light - destructive dark platformer
Replies: 5
Views: 1656

Re: Light - destructive dark platformer

That's actually a really neat mechanic :)

Nice job