290 reputation
110
bio website
location United Kingdom
age 40
visits member for 4 years
seen Apr 4 at 5:29

Sep
4
awarded  Popular Question
May
1
answered Why does this LUA code not render any objects on the screen?
Feb
19
comment How to use LuaJIT the same that Lua in a C++ program?
It's not so simple on Mac OS X
Aug
3
awarded  Yearling
Oct
19
comment Tangible benefits to speed-coding your personal game projects
What kind of game can you produce in a week?
Oct
11
comment What are your favourite game-specific coding gems?
Almost works in C# (you need to declare a delegate type and insert at least one cast)
Oct
11
comment What are your favourite game-specific coding gems?
That link is now broken, so it would help to have an explanation here.
Sep
20
comment Conversion of a number from Single precision floating point representation to a Half precision floating point
Related: stackoverflow.com/questions/6162651/…
Sep
5
awarded  Excavator
Sep
5
awarded  Editor
Sep
5
revised Physics library internals
Hyperlinked all references
Sep
5
comment How to implement 2d explosions that will cause damage taking into account covers and distance?
Related: gamedev.stackexchange.com/questions/14171/…
Sep
5
suggested suggested edit on Physics library internals
Jul
1
awarded  Commentator
Jul
1
comment OpenGL Performance Questions
If you are rendering 28 million triangles to a display with only 4 million pixels then some of the computation must be wasted.
Jun
30
comment How to find 2D grid cells swept by a moving circle?
@FxIII, that does not happen in this example. Lets say the central vertex (between cells 2,3,4 & 5) is called X, the circle collides with cell 5 when |C X| = r. The corresponding value of t is a solution of a quadratic equation (so it cannot be found by your linear equations.)
Jun
30
comment How to find 2D grid cells swept by a moving circle?
I think you must also check when the circle covers a grid vertex, because the circle will collide with the diagonally-adjacent cell at its corner but it will not necessarily be the top/left/bottom/rightmost point on the circle that touches it first (and you will detect the collision too early.) Example: squares 3,4,5 in the example diagram in the question. They are hit in order (3 then 4 then 5) but your algorithm would detect 4 & 5 simultaneously.
Jun
30
comment Should an object in a 2D game render itself?
Just making an actor invisible does not remove it from the scene. It must also stop participating in collisions etc.
Jun
30
comment Should an object in a 2D game render itself?
+1 Interesting. I've used this approach for sound while using the Visitor Pattern for graphics. I thought this made more sense for sound because while the graphics and AI are running on the same clock, the audio mixer is running on another so an event model is easier. Also its not critical if a movement event (that causes the pan/reverb of an audio channel to change) arrives a few milliseconds late but it is critical if a sprite is drawn in the wrong state.
Jun
30
answered Should actors in a game be responsible for drawing themselves?