Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: MenuClasses/Settings/Settings.cpp
- Revision:
- 64:540aa1602372
- Parent:
- 63:205f0ca48473
- Child:
- 76:7fa91122907f
--- a/MenuClasses/Settings/Settings.cpp Wed May 01 22:35:40 2019 +0000 +++ b/MenuClasses/Settings/Settings.cpp Thu May 02 11:30:04 2019 +0000 @@ -79,6 +79,8 @@ float * Settings::Implement(N5110 &lcd, Gamepad &pad, float cs) { Settings::info(lcd, pad); + cs_sc[0] = 4; //to initialise the control speeds + cs_sc[1] = 1; //to set show credits to a default of 1. int st = 1; //an index for settings wait(1/cs); //to avoid a race condition of the following while loop being skipped. //pad.init();