Incorrect pseudo-code

01 IF Character has reached the end of the platform

02      display “you win”

03        REPEAT

04          play music

05   UNTIL any key is pressed

06 END IF

previously the until any key is pressed  was at the bottom of the code when it needed to be above the END IF  as it was needed to control the repeating of the music, not ending the games. the music was set to repeat till you pressed any button and then it would stop playing.

 

 

Advertisements

Leave a comment

Filed under Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s