Search found 63 matches
- Sun Dec 14, 2014 8:05 pm
- Forum: Support and Development
- Topic: Topdown untiled map - data structure, collisions
- Replies: 5
- Views: 2474
Re: Topdown untiled map - data structure, collisions
I'm currently using love.physics for collisions, hit detection, ray casting and plan to use it for some other things as well. Bump seems simpler and easier to use, but from what I understand it only does axis aligned collisions. I'd have to "fake" turning characters, furniture and other en...
- Sun Dec 14, 2014 7:30 pm
- Forum: Support and Development
- Topic: Topdown untiled map - data structure, collisions
- Replies: 5
- Views: 2474
Re: Topdown untiled map - data structure, collisions
OK, but wouldn't that: - require some extra calculation in order to have the map tiles align with the love.physics/love.graphics coordinate system? - restrict options for drawing walls? What are the issues that can pop up if I just save the on-screen coordinates and angles to a file? I know of at le...
- Sun Dec 14, 2014 1:57 pm
- Forum: Support and Development
- Topic: Topdown untiled map - data structure, collisions
- Replies: 5
- Views: 2474
Topdown untiled map - data structure, collisions
Hello, I'm looking to implement a topdown tactical shooter (with people, not spaceships or tanks etc. :P) and am currently trying to decide on an implementation for the map. I've got a few ideas but I've also got some questions, so I guess I'd better just put this out there. The map's particularitie...
- Sun Dec 14, 2014 12:19 pm
- Forum: Support and Development
- Topic: [SOLVED] Objects within objects. Help needed.
- Replies: 15
- Views: 10869
Re: [SOLVED] Objects within objects. Help needed.
Glad to hear it. It's a good felling when you know you can start actually coding in mechanics :D My own to-do list is currently growing faster than my codebase. I guess one good advice, if you're looking into actually coming up with a finished product and not only use this as a learn Love experience...
- Sat Dec 13, 2014 6:02 pm
- Forum: General
- Topic: Female members of LÖVE community?
- Replies: 14
- Views: 11841
Re: Female members of LÖVE community?
I think he meant sex as in genre, male or female. And I would usually ask the same question, but this subject tends to always end in an absolute shitstorm and this forum seems too civil and lovely for that. So I won't :) Best of luck with your effort Etiene and welcome to the forum. My advice would ...
- Sat Dec 13, 2014 12:47 pm
- Forum: Libraries and Tools
- Topic: A simple debug text helper
- Replies: 0
- Views: 1259
A simple debug text helper
While debugging my project, I noticed that printing to the console often spams it to hell and makes it hard to use. So I thought up a simple way to print directly to the game screen and wrote a helper to calculate the coords for you, according to how many lines you write. This will also break up you...
- Fri Dec 12, 2014 3:13 pm
- Forum: Support and Development
- Topic: [SOLVED] Objects within objects. Help needed.
- Replies: 15
- Views: 10869
Re: Objects within objects. Help needed.
No problem, I know how frustrating it is when you can't seem to figure out how to make it work :P I meant that it seems as though you are calling the constructor with 5 parameters ( uni.ent[uni.eCnt], name, faction, x, y ), but the actual spawnStation() method has only one. The last 4 of those param...
- Thu Dec 11, 2014 4:29 pm
- Forum: Support and Development
- Topic: [SOLVED] Objects within objects. Help needed.
- Replies: 15
- Views: 10869
Re: Objects within objects. Help needed.
I can't play around and debug your code atm. But I'd wager the problem is with the way you are calling the constructor. You're calling the constructor like so: uni.ent[uni.eCnt] = uni.sTypes[id]:spawnStation(uni.ent[uni.eCnt], name, faction, x, y) I guess uni.ent[uni.eCnt] is nil here, so newStat ge...
- Thu Dec 11, 2014 12:18 pm
- Forum: Support and Development
- Topic: [SOLVED] Objects within objects. Help needed.
- Replies: 15
- Views: 10869
Re: Objects within objects. Help needed.
Using classes in Lua is really weird, compared to languages that actually have built-in syntax for it. I had the same problems you have right now. What I did to debug the issue was to add a unique identifier property on the class (i.e. name - Dave, Frank, Steve, etc. :P) that you set once for each i...
- Mon Dec 08, 2014 11:16 am
- Forum: Support and Development
- Topic: Trouble understanding classes
- Replies: 15
- Views: 10067
Re: Trouble understanding classes
@AlexCalv - I don't want to discourage you in any way, but programming is hard. It's not all about "learning a language" (i.e. a particular syntax). It's about being able to understand both abstract concepts and the practical implementation, but most importantly about a continuous process ...