var my_ang(var x) { x = x%360; x = (x+360)%360; if(x > 180) return x-360; return x; } void main() { fps_max = 60; while(1) { var i = 540*sinv(total_ticks*2); DEBUG_VAR((int)i,20); DEBUG_VAR((int)my_ang(i),40); DEBUG_VAR((int)ang(i),60); wait(1); } }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de