Exemplo n.º 1
0
void on_collision_power_cell(Trash* t){
  trash_clear(t);
  tick_energie += POWER_CELL_SIZE;
  if (tick_energie > POWER_MAXIMUM) {
    tick_energie = POWER_MAXIMUM;
  }
  play_powerup_sound();
}
Exemplo n.º 2
0
Arquivo: trash.c Projeto: Acknex/TUST
void trash_remove ( TrashCollector *trash )
{
	trash_clear ( trash );
	sys_free ( trash );
}