Advertisement
Guest User

movie-maker.bat

a guest
Dec 4th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 KB | None | 0 0
  1. @echo off
  2. title ScrewTheLotOfYou's Batch Movie Player
  3. echo ScrewTheLotOfYou's Batch Movie Player
  4. echo.
  5. echo.
  6. echo.
  7. echo.
  8. echo Press any key to start my pointless movie
  9. echo.
  10. echo (Note, this was made for the movie player mechanism
  11. echo not for the movie quality, I just had to make a movie
  12. echo to prove it worked)
  13.  
  14. pause >nul
  15.  
  16. set framecount=0
  17.  
  18. ::~~~~~~~~ Set the frame delay below, this is how fast the program will change frame.
  19. ::~~~~~~~~ The fastest is 1, bigger numbers means a slower frame rate.
  20. ::~~~~~~~~ Try out finding your ideal frame rate.
  21.  
  22. set framedelay=3
  23.  
  24. :CallFrameLoop
  25. set /a framecount= %framecount% + 1
  26. set /a endtime= %time:~9,1% + %framedelay%
  27. if /i %endtime% geq 10 set /a endtime= endtime - 10
  28. call :FrameCheck
  29. Call :Frame%FrameCount% 2>nul
  30. goto CallFrameLoop
  31.  
  32. :FrameCheck
  33. if /i %time:~9,1% neq %endtime% goto FrameCheck
  34. exit /b
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. ::~~~~~~~~ Replace my pointless cartoon with your own movie below here.
  46.  
  47. ::~~~~~~~~ You must label each frame ":Frame" and then the number of the frame
  48. ::~~~~~~~~ as below. Leaving gaps in the frame numbers, will make the frame before
  49. ::~~~~~~~~ the gap stay on screen for longer. This is demonstrated in frame 40.
  50.  
  51. ::~~~~~~~~ After the frame label, there should be a cls. After you are finished your
  52. ::~~~~~~~~ frame, EXIT /b must be written, as demonstrated below.
  53.  
  54. ::~~~~~~~~ You can also set the frame delay in one of your frames by writing
  55. ::~~~~~~~~ SET FRAMEDELAY=(Your Framerate Number here) before the EXIT /B as demonstrated
  56. ::~~~~~~~~ in frame 60.
  57.  
  58. ::~~~~~~~~ Potentially this could be made into a game, where videos/movies are played reflecting
  59. ::~~~~~~~~ choices made by the user, this would be a graphical RPG game.
  60.  
  61.  
  62. :Frame1
  63. cls
  64. echo ()
  65. echo /\
  66. echo /\
  67. exit /b
  68.  
  69. :frame2
  70. cls
  71. echo ()__ Who's that? []
  72. echo / /\
  73. echo /\ /\
  74. exit /b
  75.  
  76. :frame4
  77. cls
  78. echo ()__ __[] Ooh hello!
  79. echo / \
  80. echo /\ /\
  81. exit /b
  82.  
  83. :frame6
  84. cls
  85. echo ()__ []
  86. echo / /\
  87. echo /\ /\
  88. exit /b
  89.  
  90. :frame7
  91. cls
  92. echo ()__ []
  93. echo / /\
  94. echo /\ /\
  95. exit /b
  96.  
  97. :frame8
  98. cls
  99. echo ()__ []
  100. echo / /\
  101. echo /\ /\
  102. exit /b
  103.  
  104. :frame9
  105. cls
  106. echo ()__ []
  107. echo / /\
  108. echo /\ /\
  109. exit /b
  110.  
  111. :frame10
  112. cls
  113. echo ()__ [] Hey
  114. echo / /\
  115. echo /\ /\
  116. exit /b
  117.  
  118.  
  119. :frame13
  120. cls
  121. echo ()__ [] I'm Squarehead.
  122. echo / /\
  123. echo /\ /\
  124. exit /b
  125.  
  126. :frame16
  127. cls
  128. echo () Oh []
  129. echo /\ /\
  130. echo /\ /\
  131. exit /b
  132.  
  133. :frame19
  134. cls
  135. echo ()Okay... []
  136. echo /\ /\
  137. echo /\ /\
  138. echo.
  139. echo.
  140. exit /b
  141.  
  142. :frame21
  143. cls
  144. echo () [] Wanna explode?
  145. echo /\ /\
  146. echo /\ /\
  147. echo.
  148. echo.
  149. exit /b
  150.  
  151.  
  152. :frame24
  153. cls
  154. echo () What? []
  155. echo /\ No.. /\
  156. echo /\ /\
  157. echo.
  158. echo.
  159. exit /b
  160.  
  161.  
  162. :frame29
  163. cls
  164. echo () You're []
  165. echo /\ Weird. /\
  166. echo /\ /\
  167. echo.
  168. echo.
  169. exit /b
  170.  
  171.  
  172. :frame32
  173. cls
  174. echo () [] Fine, Just me then...
  175. echo /\ /\
  176. echo /\ /\
  177. echo.
  178. echo.
  179. exit /b
  180.  
  181.  
  182. :frame34
  183. cls
  184. echo () [!]
  185. echo /\ /!\
  186. echo /\ /!\
  187. echo.
  188. echo.
  189. FRAMEDELAY=1
  190. exit /b
  191.  
  192. :frame35
  193. cls
  194. echo () [!~!]
  195. echo /\ /! !\
  196. echo /\ /!v!\
  197. echo.
  198. echo.
  199. exit /b
  200.  
  201. :frame36
  202. cls
  203. echo () [ ]
  204. echo /\ / \
  205. echo /\ / \
  206. echo.
  207. echo.
  208. exit /b
  209.  
  210.  
  211. :frame37
  212. cls
  213. echo () ]
  214. echo /\ [
  215. echo /\ / / \\
  216. echo.
  217. echo.
  218. exit /b
  219.  
  220. :frame38
  221. cls
  222. echo ()
  223. echo /\ [ ]
  224. echo /\ / / \\
  225. echo.
  226. echo.
  227. exit /b
  228.  
  229.  
  230. :frame39
  231. cls
  232. echo () Weirdo.
  233. echo /\
  234. echo /\ / /[ \\ ]
  235. echo.
  236. echo.
  237. echo.
  238. echo.
  239. FRAMEDELAY=3
  240. echo Press enter for a demonstration on frame rate and gap leaving
  241. pause >nul
  242. exit /b
  243.  
  244.  
  245.  
  246. :frame40
  247. cls
  248. echo ---------------
  249. echo !This frame !
  250. echo !Will stay for !
  251. echo !Longer because!
  252. echo !There is a gap!
  253. echo !In the frame !
  254. echo !Numbers after !
  255. echo !This frame... !
  256. echo ----------------
  257. echo.
  258. echo.
  259. echo framedelay= %framedelay%
  260. exit /b
  261.  
  262. :Frame60
  263. cls
  264. echo As you can see that frame lasted longer, as
  265. echo it was frame 40 and the next specified frame
  266. echo was frame 60
  267. SET FRAMEDELAY=2
  268. echo.
  269. echo.
  270. echo framedelay= %framedelay%
  271. echo.
  272. echo.
  273. pause
  274. exit /b
  275.  
  276. :Frame80
  277. cls
  278. echo The Gap between the last frame and this frame was
  279. echo also twenty frames big, but took less time as I decreased the FrameDelay
  280. echo temporarily, you would do this to improve movement quality
  281. echo during your movie.
  282. echo.
  283. echo.
  284. echo Press any key to exit.
  285. pause >nul
  286. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement