Advertisement
nuggt69

Untitled

Oct 20th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. @name DVD Logo
  2. @persist A:string E:wirelink S:entity T:array C:vector W H X Y XV YV
  3.  
  4. if (first() || duped()) {
  5. runOnTick(1)
  6. T = array(vec(190,0,255),vec(0,255,255),vec(255,131,0),vec(0,38,255),vec(255,250,1),vec(255,0,139))
  7. S = entity():isWeldedTo()
  8. E = S:wirelink()
  9. W = 70
  10. H = 15
  11. XV = 3
  12. YV = 1
  13. C = vec(190,0,255)
  14. }
  15. E:egpText(1,"DVD",vec2(X,Y))
  16. E:egpSize(1,80)
  17. E:egpCircle(2,vec2(X+73,Y+85),vec2(W,H))
  18. E:egpText(3,"VIDEO",vec2(X+30,Y+70))
  19. E:egpSize(3,30)
  20. E:egpColor(1,C)
  21. E:egpColor(2,C)
  22. E:egpColor(3,vec(0,0,0))
  23. X+=XV
  24. Y+=YV
  25. XV = ((X+W)>400 || X <= 0) ? -XV : XV
  26. YV = ((Y+H)>400 || Y <= 0) ? -YV : YV
  27. if (((X+W)>=400 || X <= 0) || ((Y+H)>=400 || Y <= 0)) {
  28. C = T[randint(1,6),vector]
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement