Jump to content

  • Log In with Google      Sign In   
  • Create Account

L i n c k

Member Since 06 Nov 2012
Offline Last Active Jun 10 2014 11:21 AM

Topics I've Started

Questions about Polygon Intersection

29 April 2014 - 01:17 PM

Hi. I'm trying to implement polygon intersection using SAT (Separating Axis Algorithm). There is plenty of nice material on the internet, but there is one particular part of the algorithm that I couldn't understand.

 

Here are three of the articles I've been reading, just If you wanna take a glance to be sure what I'm talking about:

http://www.phailed.me/2011/02/polygonal-collision-detection/

http://www.codezealot.org/archives/55

http://www.sevenson.com.au/actionscript/sat/

 

The part I don't understand, is the projection part. You have a normal vector pointing outwards, perpendicular to each edge, and based on that normal, you have to project the shadow of the polygon. But when I read these articles, this shadow seems to be represented by only two values, a min and a max value. This is the part I don't understand.

 

To clarify. This is an Image of a projection from the third article:

 

step2.jpg

 

 

This magenta line is the line I understand is the projection, or the shadow. But how can It be represented by two values? the min an the max? This is a line, and a line as far as I know can only be represented by two points, that is, four values: x1, y1, x2, y2.

 

So my question is, how is this projection represented by two values and not two points?


Need help with right tools to use in a project

10 February 2014 - 02:54 PM

Hey good people, I need your help.

 

Me and a bunch of people are starting a project, which is an MMO game, consisting of little mini-games inside of the game itself, and it HAS to run in any computer, android phones, ios tablets, and so on. 

 

Problem is, we are very confused about what technologies to use, and I expect a little bit of help here. We are very inclined to use html5, because its very cross-platform and not player-based, like Unity. We think Unity is a bad idea because we know many users stop in the install player step.

 

Right, so to create an MMO cross-platform game, what would you recommend about Engines, IDEs, Networking Tools, and all sort of technologies. I appreciate any direct help or links to useful information about this stuff.


Get a formula from a graph

04 February 2014 - 10:12 PM

Does anyone know a good software or web service where you can draw a graph an get the formula?

 

 

Like: I input three points: (0,0), (6,9), (10,10). Then I see a curve that perfectly intersects those three points and get the formula for it.

 

There are a lot of situations in game developement when that would be useful. Like if you want the speed of something slowly start rising, and then rise faster and faster until it stabilizes and then start rising slower and slower until its not rising anymore. Things like that. If you could just visualize this variation of speed on a graph and get the formula to implement in your game would be awesome.


Flashpunk resources

07 May 2013 - 05:39 AM

Hey, I have started to learn flashpunk, but as I could see, there is a big lack of information about It.

 

I have learned some basics, but there are some things that I want to learn now that there is nowhere I can find info about.

 

To be more specific, I want to learn how to use the class called Pixelmask. I want to implement perfect pixel collision, and flashpunk does that, and It uses this class to do, but I couldn't find how to use it anywhere. I also want to know how to use animated sprites, and flashpunk has a way to do it, but couldn't find exactly how to use it.

 

Maybe there is a website that teaches that stuff, but gone unnoticed to me. So my question is, does someone know a place where I can find this info? What are the best flashpunk content located?


Some programming questions I have.

29 March 2013 - 11:14 PM

Some thoughts that I had. Not specific to any language. But if the answers depends on the language, I know c++, java and actionscript.

 

1- When you declare an integer: "int i = 0", what is int? Is it a class? How does it work inside? Is there a source code for how the int works?

2- The same doubt about structures: if, else, for, etc (I think we call them structures). What are they? How do they work? Is there a source code?

3- Is it possible to make a pointer point to a specific memory address?

int * p;

p = 0x00FF32

 

Is it possible somehow?

4- Is it possible to know what type of variable the memory address 0x00FF32 is containing? What other info I can get about this address?


PARTNERS