I was thinking today about another example game to include in my book. I have a heap of ideas but I wondered if there was maybe some simple game that I could use a RenderTarget for. So I came up with an idea using a bunch of RenderTargets for game objects. I started coding and decided to use SAT (Seperating Axis Theorem) for the collision.

After a while I began to question myself and wonder shy not use one of the features of RenderTargets to detect said collisions. Therefore getPixel() will be used to detect wall collisions in this little project.

I’m quite happy that I have come up with this novel solution to a tricky collision problem. I hope it works out how I think it will 🙂

Of course today is Sunday so we should be thinking about questions..



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s