Fixed the input and score

This commit is contained in:
Maschell 2017-12-31 19:00:14 +01:00
parent e71fac665b
commit d4eeaed636
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ int main(){
game_state = RESULT;
}
}else if(game_state == RESULT){
drawStringf(g, x, y, "Score: %d", button_count);
drawStringf(g, x, y, "Score: %d", score);
drawStringf(g, x, y+2,"Press MINUS to try again.");
if(isHighscore){
drawStringf(g, x, y+4,"NEW HIGHSCORE!");

View File

@ -26,7 +26,7 @@ void PADRead(struct PADData* data){
// scan for controller
hid_controller_t* num = hid_get_shared_memory()->controllers;
hid_controller_t* num8 = hid_get_shared_memory()->controllers;
hid_controller_t* num8 = hid_get_shared_memory()->controllers + 8 ;
hid_controller_state_entry_t ent = num->main.entries[num->main.latest_idx];
hid_controller_state_entry_t ent8 = num8->main.entries[num8->main.latest_idx];