-
as seen on Game Development
- Search for 'Game Development'
i seem to have a conceptual misunderstanding of the surface and rect object in pygame.
I currently observe these objects this way:
Surface
Just the loaded image
rect
the 'hard' representation of the ingame object (sprite). Used for simplifying object moment and collision detection
sprite
rect…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
I am using the Jitter Physics engine which gives a rotation matrix:
M11 M12 M13
M21 M22 M23
M21 M32 M33
And I need it so OpenGL can use it for rotation
GL.Rotate(xr, 1, 0, 0)
GL.Rotate(yr, 0, 1, 0)
GL.Rotate(zr, 0, 0, 1)
Initially I Tried
xr = M11
yr = M22
zr = M33
[1 0 0]
[0 1 0]
[0 0 1]
Which…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
I have an object which moves towards a target destination by gradually adjusting its facing while moving forwards. If the target destination is in a "blind spot", then the object is incapable of reaching it.
This problem is ilustrated in the picture below. When the arrow is ordered to move to point…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
Hi!
I'm making a simple top-down tank game on the ipad where the user controls the movement of the tank with the left "joystick" and the rotation of the turret with the right one. I've spent several hours just trying to get it to work decently but now I turn to the pros :)
I have two referencial…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
Hi!
I'm making a simple top-down tank game on the ipad where the user controls the movement of the tank with the left "joystick" and the rotation of the turret with the right one. I've spent several hours just trying to get it to work decently but now I turn to the pros :)
I have two referencial…
>>> More