Silvan Li
/
mbedKart_sp
single player mbedKart
(notes)
Diff: main.cpp
- Revision:
- 2:b57d7156830c
- Parent:
- 1:ad77fbbd36cd
- Child:
- 3:6c749bff51aa
- Child:
- 4:e9bb401ef608
--- a/main.cpp Tue Nov 27 18:08:29 2018 +0000 +++ b/main.cpp Sun Dec 09 21:40:31 2018 +0000 @@ -17,11 +17,6 @@ AnalogOut DACout(p18); wave_player waver(&DACout); -// Define threads -Thread thread1; -Thread thread2; -Thread thread3; - // Global game actions bool game_paused = false; void pause_game() { @@ -51,6 +46,10 @@ } } +// Define threads +Thread thread1(item_thread); +Thread thread2(sound_thread); + int main() { // Start threads thread1.start(item_thread);