Advertisement
drabont

Stationeers - LumiNation

Sep 23rd, 2019
2,257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #= LumiNation = v0.1 ================= by swagman =#
  2. #    .---.       ___    _  ,---.    ,---. .-./`)   #
  3. #    | ,_|     .'   |  | | |    \  /    | \ .-.')  #
  4. #  ,-./  )     |   .'  | | |  ,  \/  ,  | / `-' \  #
  5. #  \  '_ '`)   .'  '_  | | |  |\_   /|  |  `-'`"`  #
  6. #   > (_)  )   '   ( \.-.| |  _( )_/ |  |  .---.   #
  7. #  (  .  .-'   ' (`. _` /| | (_ o _) |  |  |   |   #
  8. #   `-'`-'|__  | (_ (_) _) |  (_,_)  |  |  |   |   #
  9. #    |        \ \ /  . \ / |  |      |  |  |   |   #
  10. #    `--------`  ``-'`-''  '--'      '--'  '---'   #
  11. #          __  _  ____ _____ _ ____ __  _          #
  12. #         |  \| |/ () \_   _| / () \  \| |         #
  13. #         |_|\__/__/\__\|_| |_\____/_|\__|         #
  14. #==================================================#
  15. # Write this code into ic10 chip and connect any   #
  16. # number of LEDs to the ports. LEDs only, Ok?      #
  17. #==================================================#
  18. #  |_|_||\/|| |\|/-\"|"|()|\|                      #
  19. #= 2019.09.23 16:00  https://youtu.be/-lhvR_eDGEY =#
  20.  
  21. alias color r15
  22. alias power r14
  23.  
  24. loop:
  25. rand color
  26. mul color color 12 #random color 0..11
  27. rand power
  28. slt power power 0.85 #85% chance of glow
  29.  
  30. brdns dr0 3 #if device (r0) not set - skip
  31. s dr0 Color color
  32. s dr0 On power
  33.  
  34. sub r0 r0 1 #next port
  35. bgez r0 loop #end port?
  36.  
  37. move r0 5 #start a new cycle
  38. yield
  39. j loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement