Search found 8 matches
- Sun Nov 04, 2012 11:01 am
- Forum: Support and Development
- Topic: Check if point is inside a rotated rectangle
- Replies: 6
- Views: 11680
Re: Check if point is inside a rotated rectangle
Thanks for all the help, I'll take a further look at it tonight and try to figure it out
- Sat Nov 03, 2012 1:02 pm
- Forum: Support and Development
- Topic: Check if point is inside a rotated rectangle
- Replies: 6
- Views: 11680
Check if point is inside a rotated rectangle
I need a way to check if an x,y coordinate is within a rotated rectangle. The available data I have available of the rectangle is: -x,y of the centre of the rectangle -angle -width and height Now, I think that if I'm able to rotate the x,y coords I need to check and the rectangle, then I'll be able ...
- Fri Nov 02, 2012 3:29 pm
- Forum: Support and Development
- Topic: Making a file and writing to it
- Replies: 4
- Views: 3909
Re: Making a file and writing to it
Yes and no. LÖVE is designed to save in the application data specific directories, but it does lookup a environment variable for those paths on Windows and Linux. For Windows it's APPDATA and you could change it to something else in the command prompt or in a batch file and then start LÖVE. Alright...
- Fri Nov 02, 2012 2:58 pm
- Forum: Support and Development
- Topic: Making a file and writing to it
- Replies: 4
- Views: 3909
Re: Making a file and writing to it
love.filesystem.setIdentity("Dropbox/LuaTest/Level editor/Levels/") No! Like the wiki says don't set a path as the idenitity, but just one simple name. And only set it once. love.filesystem.write offers a quick way to create a file and write data to it. This function never appends data. Y...
- Fri Nov 02, 2012 2:32 pm
- Forum: Support and Development
- Topic: Making a file and writing to it
- Replies: 4
- Views: 3909
Making a file and writing to it
I've researched a lot and tried different Lua methods, and functions that are included in Love2D, but nothing seems to work for me. I've created a level editor so I can make levels for my game, but I can't get it to write to a file. All the data are in forms of tables, and I want to store them as ta...
- Wed Oct 31, 2012 6:31 pm
- Forum: Support and Development
- Topic: Get particle positions?
- Replies: 5
- Views: 3251
Re: Get particle positions?
Snip Yeah, I went with the easy/rough estimate way for now, it seems to be working good, unless you're 1 cm away from your screen and examining the fire and player :P Maybe when I get more advanced with programming and game creation I will make my own particle system (This is my first game after al...
- Wed Oct 31, 2012 5:27 pm
- Forum: Support and Development
- Topic: Get particle positions?
- Replies: 5
- Views: 3251
Re: Get particle positions?
Here's an image of what's going on:
I suppose the emitter position and some offset would be enough for a rough estimate, and probably enough accuracy for my small game. But if anyone knows a better way I could do it, I'd like to know
I suppose the emitter position and some offset would be enough for a rough estimate, and probably enough accuracy for my small game. But if anyone knows a better way I could do it, I'd like to know
- Wed Oct 31, 2012 4:42 pm
- Forum: Support and Development
- Topic: Get particle positions?
- Replies: 5
- Views: 3251
Get particle positions?
In my game I've created a fire using the ParticleSystem, however I want it so if the player touches the fire, then the player loses HP. It seems the easiest way of doing this would be getting the particles position and matching them to the player positions. But I'm having trouble as of how to get th...