Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #FL (Slideshow variant) v1.1
- #Two quick things you'll need to get started:
- #1. A copy of mpv
- #https://sourceforge.net/projects/mpv-player-windows/files/64bit/
- #You can plop it down wherever you'd like
- #But it's easiest to store the exe in the same folder as this file
- #2. The latest version of Python
- #Just go to Python.org and grab the latest version
- #Now, if needed, you can modify the following filepaths
- #Path to MPV installation. Not required if MPV is in the same folder.
- mpv_path = r'C:/Users/Anon/mpv/'
- #Path to Fap Land videos. Not required if in the Fap Land folder.
- fl_path = r'C:/Downloads/Fap Land/Main Game/'
- #Path to intervals. Point it towards your favorite image folder.
- #You can also create a folder called "intervals" where this file is, if you want.
- #If you don't want any breaks between rounds, you can leave this alone, too.
- int_path = r'C:/Users/Anon/anime tiddies/'
- #When you're done, save this as a .py file (ie "FL.py") and run it.
- #If you have trouble, just ask in the thread
- #Good luck, hero!
- import os, random, time, datetime
- from os import path
- #automation for retards.
- if path.exists("mpv.exe"):
- mpv_path = ""
- print("mpv is here!")
- if path.exists("2.mp4"):
- fl_path = ""
- print("FL is here!")
- if path.exists("intervals"):
- int_path = "intervals/"
- print ("intervals are here!")
- def diceroll(currentval):
- roll = random.randint(1, 6)
- newval = currentval + roll
- if ((currentval < 25) and (newval >= 25)):
- newval = 25
- if ((currentval < 50) and (newval >= 50)):
- newval = 50
- if ((currentval < 75) and (newval >= 75)):
- newval = 75
- if ((currentval < 100) and (newval >= 100)):
- newval = 100
- return newval
- def video(currentval):
- #Quick automation for retards who don't want to rename the files
- file = str(currentval)
- if currentval == 1 and not path.exists("1.mp4"):
- file = "1 - Start"
- elif currentval % 25 == 0 and not path.exists("25.mp4"):
- if currentval != 100:
- file = str(currentval) + " - Checkpoint"
- else:
- file = str(currentval) + " - End"
- os.system(mpv_path + "mpv.exe -msg-level=all=no -fs " + '"' + fl_path + file + '.mp4"')
- def image():
- if path.exists(int_path):
- imageFile = os.listdir(int_path)
- random_file = random.choice(imageFile)
- fullImagePath = int_path + random_file
- os.system(mpv_path + "mpv.exe -fs --image-display-duration=10 " + '"' + fullImagePath + '"')
- def game():
- print("Game start!")
- pos = 1
- print("")
- while pos < 100:
- video(pos)
- prevpos = pos
- roll = random.randint(1, 6)
- pos += roll
- if prevpos % 25 > pos % 25:
- if pos % 25 != 0:
- video(pos - pos%25)
- elif prevpos != 1:
- print("10 second break")
- image()
- print("Rolled a " + str(roll))
- print("Position : " + str(pos))
- #if (pos % 25) != 0:
- # print("10 second break")
- # image()
- #else:
- # if pos != 100:
- # print("Checkpoint " + str(int(pos/25)))
- print("")
- print("Congratulations, you've cleared the game!")
- random.seed(int(datetime.datetime.now().strftime("%Y%m%d%H%M%S")))
- game()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement