17,553 reputation
43580
bio website andrewrussell.net
location Brisbane, Australia
age
visits member for 3 years, 9 months
seen 3 hours ago

Hi! I am Andrew Russell. I'm an indie game developer from Australia. I'm a Microsoft MVP for XNA/DirectX.

Visit my blog at AndrewRussell.net or follow me on Twitter @_AndrewRussell.

Spending too much time procrastinating on Stack Exchange? Or wish you could block the Internet for a while, but need to whitelist Stack Exchange? Check out my Kickstarter: Connect for a Reason.


My current game dev project is Stick Ninjas A 2D multiplayer platformer-shooter. I'm doing a weekly DevLog video series about it, which you can watch on YouTube.

My previous projects include:

  • ExEn, a cross-platform port of XNA that runs on iOS, Android and Silverlight
  • Light Blocks: cross-platform falling-block game to demonstrate ExEn
  • Dark: A 2D physics-platformer with fancy lighting effects (PC and Xbox 360)

3h
comment Why is my cursor not working if I add a scaling matrix?
@Homer_Simpson Try Invert(scaleMatrix * camera.GetMatrix()). The Invert method is what you want to use - you just need to get the maths right.
19h
comment Why is my cursor not working if I add a scaling matrix?
Add the code you're using to get the cursor position, and the code you're using to draw the cursor.
1d
revised How to correctly handle collision resolving with the MTV of Separating Axis Theorem?
added 2 characters in body
1d
comment How can I use a camera matrix with different resolutions?
@Homer_Simpson That's a separate problem - please create a separate question for it (add links between the two, if you like). I've reverted your question to its original state. Please don't keep tacking additional questions onto a question that's already been answered.
1d
revised How can I use a camera matrix with different resolutions?
rolled back to a previous revision
2d
answered How to rotate vertices of 2D shape using a transform matrix?
2d
comment How can I use a camera matrix with different resolutions?
No, they are not the same. However your custom matrix does not appear to be performing any kind of sensible transformation operation. Which is another good reason to construct your transformations from the Create* methods. A translation matrix is: (1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, X, Y, Z, 1).
Apr
20
awarded  Excavator
Apr
20
comment XNA Platformer Sample: Supporting multiple resolutions?
I've updated the link in the question. The link in my previous comment no longer works (and you can't edit old comments).
Apr
20
revised XNA Platformer Sample: Supporting multiple resolutions?
Fixed the link
Apr
20
answered How can I use a camera matrix with different resolutions?
Apr
20
comment How can I use a camera matrix with different resolutions?
@Homer_Simpson I don't think Fletcher means to use that code specifically. You can multiply matrices together to combine their operations. For example: you could combine a translation matrix (as per Fletcher's example) and a scaling matrix (CreateScale) that considers the viewport size. Order is important. This will make your code far clearer and easier to work with, than creating a matrix element-by-element.
Apr
20
comment A problem with texture atlasing in Unity
What I mean is, are you using "XNA" or "Unity" or something like that? Or are you looking for something that works with the .NET framework only (System.Drawing perhaps). Although even if you provide that info, I'm not sure your question contains enough information about what you are trying to achieve to give you a good answer. Try expanding it.
Apr
19
comment A problem with texture atlasing in Unity
This question seems to be incomplete. What API are you using?
Apr
17
comment XNA - Store and define level event
(Note that I just added a quick update to my answer on the question you linked.)
Apr
17
revised Scripting engine for XNA
added 162 characters in body
Apr
17
answered How to use camera transformation without depending on (1,-1) scale during spriteBatch.draw()
Apr
17
awarded  Announcer
Apr
8
comment Farseer: How can I break a body into multiple pieces?
In the original those loops are intended to set the center position of each of several rectangles to different values. But the original doesn't have valid parameters (as the writer indicated: "off the top of my head"). Like I said: check the overloads for CreateRectangle. There is a version that takes both half-sizes and a position.
Apr
6
comment Farseer: How can I break a body into multiple pieces?
You need to learn how to debug small programs. Take a very close look at PolygonTools.CreateRectangle (look at the Farseer source, read the doc comments). What parameters does it take? With the parameters you are giving it, will it output what you expect? If you step through in the debugger and inspect the output, does it match your expectation? What about the overload that takes more parameters - are they parameters that you need to set? Repeat the process for new BreakableBody. You will find the bug.