15 years, 7 months ago
Highlights
Offset the sprite position by: X = -cos(Angle) * Width / 2 + sin(Angle) * Height / 2 Y = -sin(Angle) * Width / 2 - cos(Angle) * Height / 2 Should do it. Sorry, its not accurate.…
15 years, 7 months ago
15 years, 7 months ago
Hi! I'm trying to do a simple sprite rotation, but in SDL or SFML, the functions provided rotate the sprite about its top left edge. I'm sure its quite simple to mak…
15 years, 7 months ago
I'm using SDL + OpenGL for a small game. When I run the game on my PC, it runs fine, but when I tried the same in college, the output was blank white with a few bright white…
15 years, 7 months ago
[color="black"][font="Arial, sans-serif"]I was asked by a friend of mine to help him develop a path-finding algorithm which used the Depth First Search algor…
15 years, 7 months ago
Latest Activity
See all in DiscussionsOffset the sprite position by: X = -cos(Angle) * Width / 2 + sin(Angle) * Height / 2 Y = …
15 years, 7 months ago
That doesn't work in SFML.
15 years, 7 months ago
Hi! I'm trying to do a simple sprite rotation, but in SDL or SFML, the functions provided rotate the sprite …
15 years, 7 months ago