Revision f437a169 main.c

View differences:

main.c
138 138
	while(1){
139 139
		for(uint8_t delay = 0; delay < TICKS; delay++){
140 140
			drawGameArea((player_t*)player);
141
			if(delay%(TICKS/(NUMBER_OF_PLAYERS+1)) == 0){
141
			if(delay%(TICKS/(NUMBER_OF_PLAYERS)-1) == 0){
142 142
				for(uint8_t playerNumber = 0; playerNumber < NUMBER_OF_PLAYERS; playerNumber++){ //fair handing of input
143 143
					handleGamepadInput((player_t*)&player[playerNumber],
144 144
								((~PIN(CONTROLLER0_PORT))& player[playerNumber].controllerInputMask)

Also available in: Unified diff