Tagged Questions
1
vote
1answer
45 views
How to make camera rotation independent from frame rate?
I multiply the mouse movement by a given number to get camera rotation of a desired speed. But it only works at 60 FPS. When I don't limit the frame rate I get around 350 FPS and the camera rotation ...
2
votes
1answer
416 views
Rotating To Face a Point
I am trying to rotate a line to point to the mouse's world coordinates (rather where the mouse lies on the plane where y=0).
I am running into a couple of problems though:
Whilst it follows the ...
2
votes
1answer
544 views
Allegro 5 Mouse Look
I found good tutorial on how to do mouse look for 2D game here: http://www.atburrow.com/2010/03/08/objects-facing-the-cursor/
My code looks like this:
w = (double)mouse_x - (double)pos_x;
h = ...
1
vote
1answer
1k views
XNA - Use Mouse To Rotate & Arrow Keys To Scroll A Linearly Wrapped Texture:
Using XNA I'm working on my first, relatively simple, videogame for the PC.
At the moment my game window is 1024 X 768 and I have a 'Starfield' linearly wrapped background texture 1280 X 1280 in ...