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, gPaused
-
- on mouseWithin
- if gPaused = 0 then
- sprite(spriteNum).ink = 0
- repeat while mouseDown()
- sprite(spriteNum).ink = 33
- updateStage()
- end repeat
- end if
- end
-
- on mouseLeave
- sprite(spriteNum).ink = 4
- end
-
- on mouseUp
- if gPaused = 0 then
- sprite(3).rewind()
- sprite(3).resume()
- repeat with gRemove = 39 to 91
- sprite(gRemove).visible = 0
- end repeat
- 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
- 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
- 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
- sprite(37).visible = 0
- sprite(36).visible = 0
- sprite(3).rewind()
- startTimer()
- end if
- end
-