home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
- global gFlagRotation, gGameCountries, gFlag, gCountY, gCountX, gRemove, gCount, gNumSelected, gSelectNum1X, gSelectNum1Y, gSelectNum2X, gSelectNum2Y, gSelectNum3X, gSelectNum3Y, gScore, gLevel, pAdd, gTimeLoop, gPaused
-
- on beginSprite
- if gLevel <= 3 then
- puppetSound(5, "gameoverSound")
- else
- puppetSound(5, "youwin")
- sprite(36).blend = 100
- sprite(37).blend = 100
- member("GameOver_Score").text = "Total Score:" & RETURN & RETURN & string(gScore)
- sprite(3).rewind()
- sprite(3).pause()
- end if
- end
-
- on mouseEnter
- puppetSound(3, "ButtonOver")
- end
-
- on mouseWithin
- sprite(spriteNum).member = "restartOver"
- end
-
- on mouseLeave
- sprite(spriteNum).member = "RestartNorm"
- puppetSound(4, "ButtonOver")
- end
-
- on mouseUp
- puppetSound(2, "resetSound")
- repeat with gRemove = 25 to 28
- sprite(gRemove).ink = 4
- end repeat
- repeat with gRemove = 36 to 91
- sprite(gRemove).visible = 0
- end repeat
- sprite(3).rewind()
- sprite(3).resume()
- gTimeLoop = 0
- gNumSelected = 0
- gScore = 0
- member("score_text").text = string(gScore)
- gLevel = 1
- member("level_text").text = string(gLevel)
- gGameCountries = [[1, 2, 3, 4], [5, 6, 1, 2], [3, 4, 5, 6], [1, 2, 4, 6]]
- gFlagRotation = [[0, 1, 2, 3], [0, 1, 2, 3], [0, 1, 2, 3], [0, 1, 2, 3]]
- repeat with gCountY = 0 to 3
- repeat with gCountX = 0 to 3
- if gLevel = 1 then
- gFlag = random(6)
- case gFlag of
- 1:
- sprite(5 + gCountX + (gCountY * 4)).member = "us_flag_animation"
- 2:
- sprite(5 + gCountX + (gCountY * 4)).member = "can_flag_animation"
- 3:
- sprite(5 + gCountX + (gCountY * 4)).member = "mexico_flag_animation"
- 4:
- sprite(5 + gCountX + (gCountY * 4)).member = "uk_flag_animation"
- 5:
- sprite(5 + gCountX + (gCountY * 4)).member = "french_flag_animation"
- 6:
- sprite(5 + gCountX + (gCountY * 4)).member = "german_flag_animation"
- end case
- else
- if gLevel = 2 then
- gFlag = random(9)
- case gFlag of
- 1:
- sprite(5 + gCountX + (gCountY * 4)).member = "us_flag_animation"
- 2:
- sprite(5 + gCountX + (gCountY * 4)).member = "can_flag_animation"
- 3:
- sprite(5 + gCountX + (gCountY * 4)).member = "mexico_flag_animation"
- 4:
- sprite(5 + gCountX + (gCountY * 4)).member = "uk_flag_animation"
- 5:
- sprite(5 + gCountX + (gCountY * 4)).member = "french_flag_animation"
- 6:
- sprite(5 + gCountX + (gCountY * 4)).member = "german_flag_animation"
- 7:
- sprite(5 + gCountX + (gCountY * 4)).member = "zimbabwe_flag_animation"
- 8:
- sprite(5 + gCountX + (gCountY * 4)).member = "sAfrica_flag_animation"
- 9:
- sprite(5 + gCountX + (gCountY * 4)).member = "Kenya_flag_animation"
- end case
- else
- if gLevel = 3 then
- gFlag = random(12)
- case gFlag of
- 1:
- sprite(5 + gCountX + (gCountY * 4)).member = "us_flag_animation"
- 2:
- sprite(5 + gCountX + (gCountY * 4)).member = "can_flag_animation"
- 3:
- sprite(5 + gCountX + (gCountY * 4)).member = "mexico_flag_animation"
- 4:
- sprite(5 + gCountX + (gCountY * 4)).member = "uk_flag_animation"
- 5:
- sprite(5 + gCountX + (gCountY * 4)).member = "french_flag_animation"
- 6:
- sprite(5 + gCountX + (gCountY * 4)).member = "german_flag_animation"
- 7:
- sprite(5 + gCountX + (gCountY * 4)).member = "zimbabwe_flag_animation"
- 8:
- sprite(5 + gCountX + (gCountY * 4)).member = "sAfrica_flag_animation"
- 9:
- sprite(5 + gCountX + (gCountY * 4)).member = "Kenya_flag_animation"
- 10:
- sprite(5 + gCountX + (gCountY * 4)).member = "china_flag_animation"
- 11:
- sprite(5 + gCountX + (gCountY * 4)).member = "japan_flag_animation"
- 12:
- sprite(5 + gCountX + (gCountY * 4)).member = "sKorea_flag_animation"
- end case
- end if
- end if
- end if
- gGameCountries[gCountY + 1][gCountX + 1] = gFlag
- gFlagRotation[gCountY + 1][gCountX + 1] = random(4) - 1
- sprite(5 + gCountX + (gCountY * 4)).rotation = gFlagRotation[gCountY + 1][gCountX + 1] * 90
- sprite(5 + gCountX + (gCountY * 4)).visible = 1
- sprite(5 + gCountX + (gCountY * 4)).loc = point(194 + (gCountX * 109), 59 + (gCountY * 107))
- end repeat
- end repeat
- gPaused = 0
- startTimer()
- go(1)
- end
-