default:
if(i != -1)
{
- printf("%d",i);
- printf("Load %s\n",level_subsets[i-2]);
subset_load(&le_level_subset,level_subsets[i-2]);
leveleditor_menu.item[3].kind = MN_GOTO;
le_level = 1;
arrays_init();
loadshared();
- printf("%s\n",le_level_subset.name);
le_current_level = (st_level*) malloc(sizeof(st_level));
if(level_load(le_current_level, le_level_subset.name, le_level) != 0)
{
{
physic_set_state(&pplayer->vphysic,PH_VT);
physic_set_start_vy(&pplayer->vphysic,0.);
- DEBUG_MSG("Ich bin jetzt ordentlich am Punkten");
}
pplayer->base.ym = physic_get_velocity(&pplayer->vphysic);
}
if (pplayer->base.ym > 0)
{
pplayer->base.y = (int)(((int)(pplayer->base.y +1) / 32) * 32);
- printf("%f",pplayer->base.y);
pplayer->base.ym = 0;
}
physic_init(&pplayer->vphysic);
if (isbrick(pplayer->base.x, pplayer->base.y) ||
isfullbox(pplayer->base.x, pplayer->base.y))
{
- DEBUG_MSG("My sear");
trygrabdistro(pplayer->base.x, pplayer->base.y - 32,BOUNCE);
trybumpbadguy(pplayer->base.x, pplayer->base.y - 64);
add_bouncy_distro((((int)pplayer->base.x)
/ 32) * 32,
((int)pplayer->base.y / 32) * 32);
- DEBUG_MSG("should work");
if (counting_distros == NO)
{
counting_distros = YES;
add_bouncy_distro((((int)pplayer->base.x + 31)
/ 32) * 32,
((int)pplayer->base.y / 32) * 32);
- DEBUG_MSG("+31?");
if (counting_distros == NO)
{
counting_distros = YES;
if(physic_get_velocity(&pplayer->vphysic) < 0.)
{
physic_set_state(&pplayer->vphysic,PH_VT);
- DEBUG_MSG("DUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUDE");
physic_set_start_vy(&pplayer->vphysic,0);
}
}
else
{
- DEBUG_MSG("CHUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUHHHHAAA");
if(!physic_is_set(&pplayer->vphysic))
{
- DEBUG_MSG("CHUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUHHHHAAA");
physic_set_state(&pplayer->vphysic,PH_VT);
}
}