#include <acknex.h>
#include <default.c>
int testi = 0;
int** Bwater = NULL;
void world_waterORland()
{
testi++;//1
Bwater = (int**)sys_malloc( (int)1000 * sizeof(int*) ); // ###
int j;
for (j=0;j<1000;j++)
{
Bwater[j] = (int*)sys_malloc( (int)500 * sizeof(int) );
memset( Bwater[j] , (int)100 , (int)500 * sizeof(int) );
}
// int Bwater[1000][500];
int tx,ty;
testi++;//2
int temp_alpha;
testi++;//3
for(tx=0;tx<1000;tx++)
{
for(ty=0;ty<500;ty++)
{
testi=4;//4
//wait(1);
if(temp_alpha<10)
{
(Bwater[tx])[ty]=1;//yes=water
}
else
{
(Bwater[tx])[ty]=0;//no=land
}
testi=5;//5
}
}
testi=6;//6
}
void main()
{
fps_max=60;
level_load(NULL);
wait(1);
world_waterORland();
while(1)
{
wait(1);
}
}