Skip to content

Commit

Permalink
Re-enabled muted music, removed victory test!
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnlak committed Oct 29, 2021
1 parent 1c66496 commit ec83adb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions 2040-eight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ void update( uint32_t p_tick )
g_max_cell = g_moves[l_index].end_value;

/* Check to see if we've maxxed out, in which case... victory! */
if ( g_moves[l_index].end_value == 16 )
if ( g_moves[l_index].end_value == 2048 )
{
/* Remember what cell won it. */
g_victory_row = g_moves[l_index].end_row;
Expand Down Expand Up @@ -845,7 +845,10 @@ void draw( uint32_t p_tick )
if ( g_tune_note < g_tune_note_count )
{
/* If we're muted, skip to the end of the tune. */
g_tune_note = g_tune_note_count;
if ( g_muted )
{
g_tune_note = g_tune_note_count;
}

/* Play the next note if ready. */
if ( !picosystem::audio_playing() )
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ picosystem_executable(2040-eight

# Set some Pico version info
pico_set_program_name(2040-eight "2040-eight")
pico_set_program_version(2040-eight "v0.3")
pico_set_program_version(2040-eight "v0.3.1")

#pixel_double(2040-eight)
no_spritesheet(2040-eight)
Expand Down

0 comments on commit ec83adb

Please sign in to comment.