Page 1 of 1

Graphic Rotation and Scrolling Engine

Posted: Tue Jun 13, 2006 5:17 pm
by Brandon
I am planning on making a racing game in FB. I have some top down graphics for the cars and would like then to be able to rotate and turn but I don't want to make a whole separate image for every angle. I also will need a pixel scrolling engine to display the map. Do you know of any that are easy to use and work in FreeBASIC.

Posted: Tue Jun 13, 2006 9:27 pm
by Pritchard
but I don't want to make a whole separate image for every angle.
Use YAGL/OpenGL.
Do you know of any that are easy to use and work in FreeBASIC.
AFAIK, no one's really made stuff like that in FB yet. You don't have to worry much about clipping in FB just so you know. Using OpenGL or YAGL though, I'm not sure.

Posted: Wed Jun 14, 2006 1:02 am
by Dr_D
If you have the itme, it would be worth learning OpenGL because it'll give you more raw speed than anything else. My suggestion would be to ignore SDL, and look into GLFW for setting up the window context. If you look on http://www.freebasic.net/forum/index.php, there are plenty of examples using GLFW, by now.