Tick Action: "u" Subscript, "p" "d" "a" "t" "e" "B" "i" "r" "d" , Baseline left parenthesis, dt left parenthesis, 1 minus "P" Subscript, "a" "u" "s" "e" "d" , Baseline , right parenthesis , right parenthesis , "u" Subscript, "p" "d" "a" "t" "e" "B" "i" "r" "d" "V" "e" "l" , Baseline left parenthesis, dt left parenthesis, 1 minus "P" Subscript, "a" "u" "s" "e" "d" , Baseline , right parenthesis , right parenthesis , "u" Subscript, "p" "d" "a" "t" "e" "d" "p" "i" "p" "e" "s" , Baseline left parenthesis, , right parenthesis , "g" to "g" plus left parenthesis, 1 minus "P" Subscript, "a" "u" "s" "e" "d" , Baseline , right parenthesis times dt times 1000 to the negative 1st power , "U" Subscript, "p" "d" "a" "t" "e" "D" "e" "a" "t" "h" "S" "t" "a" "t" "e" , Baseline , "P" Subscript, "a" "u" "s" "e" "d" , Baseline to left brace, "D" Subscript, "e" "a" "d" , Baseline equals 1 : 1 , "P" Subscript, "a" "u" "s" "e" "d" , Baseline , right braceupdateBirddt1−Paused,updateBirdVeldt1−Paused,updatedpipesdt,g→g+1−Paused·dt·1000−1,UpdateDeathState,Paused→Dead=1:1,Paused