Advertisement
fastman92

Rotated wheel

Apr 6th, 2012
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. {$CLEO}
  2. const
  3. TEXTURE_ROTATED = 1
  4.  
  5. START_X = 80.0
  6. START_Y = 100.0
  7.  
  8. END_X = 500.0
  9. END_Y = 300.0
  10.  
  11. TURN_OVER_PERIOD = 1000.0
  12. TOTAL_PERIOD = 5000.0
  13.  
  14. TEXTURE_SIZE_X = 100.0
  15. TEXTURE_SIZE_Y = 100.0
  16. end
  17.  
  18. {$INCLUDE functions/Detect_EXE_version.txt}
  19.  
  20. while true
  21. wait 0
  22. if
  23. Key.TestCheatString("TEXTURE")
  24. else_jump continue
  25. 0AB1: call_scm_func @GetXYSizeInScreen4x3ScaleBy640x480 2 XSize TEXTURE_SIZE_X YSize TEXTURE_SIZE_Y store_XSize 0@ store_YSize 1@
  26.  
  27. 2@ = END_X
  28. 2@ -= START_X
  29. 3@ = END_Y
  30. 3@ -= START_Y
  31.  
  32. 0390: load_txd_dictionary 'test'
  33. 038F: load_texture "test" as TEXTURE_ROTATED // Load dictionary with 0390 first
  34. 32@ = 0
  35.  
  36. while true
  37. 0093: 4@ = integer 32@ to_float
  38.  
  39. if
  40. 4@ < TOTAL_PERIOD
  41. jf break
  42. 03F0: enable_text_draw 1
  43.  
  44. 4@ /= TOTAL_PERIOD
  45.  
  46. 0087: 5@ = 2@ // (float)
  47. 006B: 5@ *= 4@ // (float)
  48. 5@ += START_X
  49.  
  50. 0087: 6@ = 3@ // (float)
  51. 006B: 6@ *= 4@ // (float)
  52. 6@ += START_Y
  53.  
  54.  
  55. 0093: 4@ = integer 32@ to_float
  56. 4@ /= TURN_OVER_PERIOD
  57. 4@ *= 360.0
  58.  
  59. 074B: draw_texture TEXTURE_ROTATED position 5@ 6@ scale 0@ 1@ angle 4@ color_RGBA 255 255 255 255
  60. wait 0
  61. end
  62.  
  63. while true
  64. 074B: draw_texture TEXTURE_ROTATED position END_X END_Y scale 0@ 1@ angle 4@ color_RGBA 255 255 255 255
  65. wait 0
  66. end
  67. end
  68.  
  69. {$INCLUDE functions/ArrayGetValueByIndex.txt}
  70. {$INCLUDE functions/getAdditionalVarsLabelPointedIndex.txt}
  71. {$INCLUDE functions/ScreenScale.txt}
  72. {$INCLUDE functions/GetCurrentResolution.txt}
  73. {$INCLUDE general/Addresses.txt}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement