This is an example of how to use the cosd and sind functions.
#define SCREEN_WIDH 100
#define SCREEN_HEIGHT 64
#define X_ZERO (SCREEN_WIDH / 2)
#define Y_ZERO (SCREEN_HEIGHT / 2)
#define R (Y_ZERO - 2)
#define MAX_DEG 360
inline int integer(float x)
{
}
task main()
{
while(true)
{
float angle =
Random(MAX_DEG);
float x = X_ZERO + R *
cosd(angle);
float y = Y_ZERO + R *
sind(angle);
}
}