#10889 - Rikku - Fri Sep 19, 2003 12:44 pm
I'm currently working on a demo and I'm using Dovoto's Mode 7 tutorial.
In the tutorial he sets the center of scaling/rotation this way in the HBlank IRQ:
center_y = (180 * zoom)>>2; //set for the center of the screen in the x direction and slightlu
center_x = (120 * zoom)>>2; //bellow the screen for the Y (about were the observer would be standing)
This make the rotation center bellow the screen but I'd like to make it the center of the screen for example.
I tried changing the 180 and 120 value but it doesn't seem to do any good.
I would appreciate some help plz ^__^
In the tutorial he sets the center of scaling/rotation this way in the HBlank IRQ:
center_y = (180 * zoom)>>2; //set for the center of the screen in the x direction and slightlu
center_x = (120 * zoom)>>2; //bellow the screen for the Y (about were the observer would be standing)
This make the rotation center bellow the screen but I'd like to make it the center of the screen for example.
I tried changing the 180 and 120 value but it doesn't seem to do any good.
I would appreciate some help plz ^__^