Main.gd 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. extends Spatial
  2. # governs game progression
  3. var donutmat = preload("res://Donut_basemat.tres")
  4. var icemat = preload("res://Donut_pink_icemat.tres")
  5. class_name MainNode
  6. var tried_to_escape = false
  7. var baker_feeds_girl = false
  8. var baker_feeds_drunkards = false
  9. var drunkards_fed = false
  10. var girl_fed = false
  11. var girl_promised_to_return = false
  12. var girl_didnt_return = false
  13. var parenting_explained = false
  14. var baker_secret = false
  15. var baker_confessed = false
  16. var bg_feeds_haxxor = false
  17. var haxxor_fed = false
  18. var hax_baker_init = false
  19. var hax_safety_tips = false
  20. var hax_salaryman = false
  21. var seen_security_with_donut = false
  22. var teacher_needed = false
  23. var knows_printed = false
  24. var knows_stack = false
  25. var knows_drunkards = false
  26. var knows_node = false
  27. var knows_basic_anonimity = false
  28. var security_explained = false
  29. var warp_enabled = false
  30. var knows_basic_safety = false
  31. var knows_arsenic = false
  32. var knows_lasagna_fun = false
  33. var distrowatch = false #^____________________________^
  34. var dna_scanned = false
  35. var knows_girl_galaxies = false
  36. var knows_synths = false
  37. var priest_childhood_hook = false
  38. var knows_girl_science = false
  39. #var vip_operator_uncovered = false
  40. var security_secret = false
  41. var agitator_side = false
  42. var lasagna_side = false
  43. var haxxor_found = false
  44. var security_knows = false
  45. var agitator_knows = false
  46. var girl_knows = false
  47. func _ready():
  48. loader()
  49. func loader():
  50. var counter = find_node("LOADER") # so that even if it is moved it is ok
  51. # counter can be anything really.
  52. # will probably be 3D at some point
  53. var scene_list = [
  54. "Agitator",
  55. "Donut",
  56. "HalfDonut",
  57. "Girl",
  58. "Priest",
  59. "BoozeGirl",
  60. "Haxxor",
  61. "Security",
  62. "Security Booth",
  63. "Head",
  64. "Human",
  65. "Clock",
  66. "Pads",
  67. ]
  68. counter.max_items = scene_list.size()
  69. for sc in scene_list:
  70. load("res://"+sc+".tscn")
  71. counter.current_items += 1
  72. counter.update_counter()
  73. counter.visible = false