Search found 21 matches

by dbltnk
Tue Dec 22, 2009 12:08 pm
Forum: General
Topic: multidimensional tables/arrays
Replies: 12
Views: 9705

Re: multidimensional tables/arrays

I'm currently trying to understand 2d-tables as well and I've got a problem when referring to a field in the same table. In line 5 I'm trying to set a variable depending on what the variable in line 4 is. I've tried r = 78*s , r = 78*circle.s and r = 78*object.circle.s but I always get the same erro...
by dbltnk
Sat Dec 19, 2009 9:26 pm
Forum: Support and Development
Topic: Framework/code for entities?
Replies: 18
Views: 6772

Re: Framework/code for entities?

I'm done with the first version of my collision "framework". So far it's not very useful as it only checks for collisions between hard-coded objects. My next step will be the creation of a object table with whom I'll be able to spawn circle and rectangle objects. The collision framework wi...
by dbltnk
Sat Dec 19, 2009 3:43 pm
Forum: Support and Development
Topic: (help) how do you compile your game to be a double click exe
Replies: 22
Views: 16197

Re: (help) how do you compile your game to be a double click exe

Someone should sticky this post and add the missing plus sign to the tutorial in post. You get a syntax error if you forget to add that.
by dbltnk
Tue Dec 15, 2009 10:54 pm
Forum: Support and Development
Topic: Framework/code for entities?
Replies: 18
Views: 6772

Re: Framework/code for entities?

Functions for collisions between two rectangles or two circles are done. Now I'm trying to find a way to combine those into a function that does good collision detection between a circle and a box. This is pretty hard as my math skills are way to rusty. *g* Anyways, here are my current collision fun...
by dbltnk
Tue Dec 15, 2009 9:31 am
Forum: Support and Development
Topic: Framework/code for entities?
Replies: 18
Views: 6772

Re: Framework/code for entities?

Thanks for the input guys. I've written that circle collision detection yesterday and wanted to to implement boxes today. Then it's time for combining those and I'm all set-up. Maybe I'll post the code here so that not everyone has to re-invent the wheel for something supposedly simple as collision ...
by dbltnk
Mon Dec 14, 2009 1:04 pm
Forum: Support and Development
Topic: Framework/code for entities?
Replies: 18
Views: 6772

Re: Framework/code for entities?

You were right, collision detection via Box2D is really tedious and not really what I'm looking for.

Is there an equivalent for the Actionscript 3.0 function hitTestObject() in LÖVE/LUA? The only thing I need to know is if two images collide. A simple true/false is all I'm looking for. =D
by dbltnk
Sun Dec 13, 2009 6:38 pm
Forum: Support and Development
Topic: Framework/code for entities?
Replies: 18
Views: 6772

Re: Framework/code for entities?

@bartbes
Thanks, that worked for what I wanted.

@Robin
There's a tutorial game that does what I want to do, destruction.love: I need to remove a entity from the game. Now I just need to find out how this works. =D
by dbltnk
Sun Dec 13, 2009 3:51 pm
Forum: Support and Development
Topic: Framework/code for entities?
Replies: 18
Views: 6772

Re: Framework/code for entities?

What I want to do is stop the game from moving sprites or playing music while I'm showing the player a "you lose" screen where he can either restart or quit it. So far I've just put a blanket over the game which is still running in the background but that just seems wrong to me. =D PS: Is ...
by dbltnk
Sun Dec 13, 2009 1:15 pm
Forum: Support and Development
Topic: Framework/code for entities?
Replies: 18
Views: 6772

Re: Framework/code for entities?

Hey Robin, thanks to your input, the game is coming together rapidly. Now my enemies are spawning randomly outside the playfield, attacking the castle and damaging it. What I want to do now is freeze/stop the game's timer when HP are down to zero. For that I'm changing the state of the game from &qu...
by dbltnk
Sat Dec 12, 2009 8:20 pm
Forum: Support and Development
Topic: Framework/code for entities?
Replies: 18
Views: 6772

Re: Framework/code for entities?

Thanks for the file, Robin. You were right, it's better for the to build my own code first. Not only because the learning curve is smoother then but also because ËNVY has no documentation (I know of ) and so I wasn't able to find out which parts i needed. =D Anyways, I've got a bit close on my goal ...