That seems like it will help, thanks.
But I have no idea how to install it or how to use it. Is it just some files that I add to my game to add a module? Sorry I'm pretty much brand new at this, I try to learn as much as I can through the wiki but I have no experience.
Right now I'm still working on a block breaker-type game, I'm almost done with all the artwork (still making everything as an exponent of 2, I don't know if that still screws up on older computers), and I'm starting to do some of the code, such as loading all the images and making a menu button to start it.
My main question is if there is some way to use direction, I think I can write my own physics if I just know how direction works.
Second question, (and I know this is probably pretty obvious,) is how do I use multiple .lua files in my game? I'm thinking the main.lua file should load all of the images, then there should be like a gameplay.lua file that works all the ball movements, the paddle control, and the level generator. How do I call the files to run? Are there specific names I have to give to the files?
Third question, this one is sort of complex. For a level generator, I want to use a grid system, and the bricks are randomly placed behind a distance from the paddle. Each level will contain more bricks, until the area is completely full and the game will display a game over screen. Would it be easier to have set levels, and just write each level specifically, or to have a random level generator and let it create levels?
I know this is a lot that I'm asking... I just really hope to learn all the basics in a game or two before I start being serious with games. Thanks to anyone who helps, it really means a lot to learn how to program games.
EDIT: I'm thinking the main.lua file should just load the images and draw them, as well as work the menu. Is that the best way to do it?
EDIT 2: For some reason I can't find how to fix the window to a certain size, I think right now it's at the default 800 x 600 and I need it to be at 512 x 512.
I hope somebody will be able to help me with some, if not all of my questions but I am really just trying to learn so I can contribute at least a little bit.
![Nyu :nyu:](./images/smilies/ms-nyu.png)