counter 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # counter
  2. if music_on <> music_on_prev or $music_theme <> $music_theme_prev:
  3. close $cur_theme[track[$music_theme_prev]]
  4. music_on_prev = music_on
  5. $music_theme_prev = $music_theme
  6. if $music_theme <> '':
  7. ! WD: Numeric arrays 'cur_theme' & 'tracklist_*' don''t exist use string arrays
  8. copyarr '$cur_theme', '$tracklist_<<$music_theme>>'
  9. track[$music_theme] = track[$music_theme] - 1
  10. if track[$music_theme] < 0:track[$music_theme] = arrsize('$cur_theme')
  11. end
  12. end
  13. if music_on = 1 and $music_theme <> '':
  14. if no isplay ($cur_theme[track[$music_theme]]):
  15. track[$music_theme] += 1
  16. if arrsize('$cur_theme') <= track[$music_theme]:track[$music_theme] = 0
  17. end
  18. play $cur_theme[track[$music_theme]], volume
  19. end
  20. ! WD: Code not called
  21. ! WD: Uninitialised~ '$race1[]', '$showcar'
  22. ! {
  23. if race_start = 1:
  24. if night_mode = 1:
  25. bcolor = rgb(0, 0, 0)
  26. else
  27. bcolor = rgb(255, 255, 255)
  28. end
  29. refint
  30. *clr
  31. if race_hit = 0:
  32. race_miss += 1
  33. race_hit = 1
  34. elseif [race_row] <> ' ' and race_row > 0:
  35. race_hit = 0
  36. end
  37. '<center><b><<$car>></b></center>'
  38. !!interior of the vehicle and the line route
  39. *pl $showcar
  40. *p $race1[race_row]
  41. if $race1[race_row] = '<center>-------FINISH--------</center>':
  42. race_start = 0
  43. !!return timer
  44. settimer 500
  45. wait 2000
  46. $metka = 'finish'
  47. $loc = 'RACE_COUNT'
  48. gt $loc, $metka
  49. end
  50. race_row += 1
  51. end
  52. } !
  53. --- counter ---------------------------------