Pickle
Mega GP Mania
I finished the conversion of soulfu to opengles and it works great, but I have one problem i cant get the player character to move right, it will only move left or up. right and down always move left.
The desktop version works right. Ive been looking and i just cant find the specific problem. The key area to look is in character_local_player_control.
the final x and y seem ok compared to the desktop, but the initial x and y are not.
This would be a nice game to have on pandora and im hoping more eyes might spot the problem.
pickle.gp2x.de/source/soulfu_pandora.zip
The desktop version works right. Ive been looking and i just cant find the specific problem. The key area to look is in character_local_player_control.
Code:
// Generate gotoxy, based on camera rotation... Map_side_xy shouldn't have gotten corrupted
// by window cameras...
x = *((float*) (character_data));
y = *((float*) (character_data+4));
x+= (player_device_xy[i][X]*map_side_xy[X] - player_device_xy[i][Y]*map_side_xy[Y])*10.0f;
y+= (player_device_xy[i][X]*map_side_xy[Y] + player_device_xy[i][Y]*map_side_xy[X])*10.0f;
*((float*) (character_data+12)) = x;
*((float*) (character_data+16)) = y;
the final x and y seem ok compared to the desktop, but the initial x and y are not.
This would be a nice game to have on pandora and im hoping more eyes might spot the problem.
pickle.gp2x.de/source/soulfu_pandora.zip