Search found 66 matches
- Sun Nov 23, 2014 2:04 am
- Forum: Support and Development
- Topic: Keyboard Layout Problem
- Replies: 12
- Views: 8958
Re: Keyboard Layout Problem
You know, since we're on SDL2 now, we ought to take advantage of this by allowing the developer to distinguish between scancodes and keycodes. That is, the developer could choose whether to have keys map to other layouts either by key position or by letter. This would make localization a lot easier ...
- Fri Nov 21, 2014 10:55 pm
- Forum: Support and Development
- Topic: How to remove images?
- Replies: 8
- Views: 9400
Re: How to remove images?
If you want to "erase" an image that has been drawn to the screen, all you have to do is not draw it on the next frame. Every time the game gets ready to draw, by default the screen will be cleared to the background color by calling love.graphics.clear(). This is done for you and you don't...
- Fri Nov 21, 2014 10:44 pm
- Forum: Support and Development
- Topic: How can I make my bounding box collision detection better?
- Replies: 8
- Views: 7967
Re: How can I make my bounding box collision detection bette
I think a more efficient method for this would be to keep the ImageData of your sprite and test pixels on that instead of a Canvas, since ImageData sits on the main RAM instead of the GPU.
- Thu Nov 20, 2014 6:42 pm
- Forum: Support and Development
- Topic: How can I make my bounding box collision detection better?
- Replies: 8
- Views: 7967
Re: How can I make my bounding box collision detection bette
I think the simplest way to go about this is to model collision using multiple bounding boxes and circles that conform roughly to the sprite's shape. They don't all have to treat collision differently - they would give the same response on bullet impact.
- Fri Nov 14, 2014 10:02 pm
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 474672
Re: "Questions that don't deserve their own thread" thread
If you install Wine you should be able to play it fine without leaving Linux. LOVE games work very well in Wine.
- Thu Nov 13, 2014 10:22 pm
- Forum: Support and Development
- Topic: Can't get love frames to work
- Replies: 4
- Views: 5580
Re: Can't get love frames to work
Another fix would be to make the variable local by adding "local table" at the top of the file. This will tell Lua that you are referring to a variable that exists only in that file, and that it's a different one from Lua's built-in "table". Of course, this will cause conflicts i...
- Thu Nov 13, 2014 8:19 pm
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 474672
Re: "Questions that don't deserve their own thread" thread
I was able to easily have 0.8 and 0.9 installed at the same time on Arch Linux, so it's definitely possible. I'm not sure what all it involves in Ubuntu, though. Does the PPA you're using offer a separate 0.8 package? Edit: It would probably need to be a package designed to be installed alongside ot...
- Thu Nov 13, 2014 12:52 am
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 474672
Re: "Questions that don't deserve their own thread" thread
Hey, is there currently a way to find the max number of sources that can play simultaneously, without playing as many sources as possible and calling getSourceCount()? I can't seem to find such a function in the API. My understanding is that OpenAL defaults to 256 simultaneous sources, but the user ...
- Sun Nov 09, 2014 10:46 pm
- Forum: Support and Development
- Topic: Ideal use of SpriteBatches for tiles?
- Replies: 0
- Views: 1598
Ideal use of SpriteBatches for tiles?
So after roughly a year of working on other projects, I've decided to come back to my game engine project. Right now I'm doing code cleanup, API refactoring, and performance improvements, among other things. Currently I'm looking at what my system refers to as "Tilegrids". I wrote a simple...
- Tue Dec 31, 2013 5:41 am
- Forum: General
- Topic: Stuck with local variables
- Replies: 24
- Views: 15806
Re: Stuck with local variables
Global is easier to grasp for beginners, but later on you'll want to do everything local. Otherwise you will make programming mistakes (variable gets overwritten in some completely unrelated function without you realizing it). Local is actually pretty easy once you know how to structure your code an...