Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- option.rpy
- init -1 python hide:
- config.developer=True
- config.rollback_enabled=False
- config.hard_rollback_limit=0
- config.rollback_length=0
- config.screen_width=1280
- config.screen_height=720
- config.window_title=u"Lights 0.2"
- config.name="Lights"
- config.version="0.2"
- theme.bordered(widget="#99997796",widget_hover="#79999790",widget_text="#b8b8b8",widget_selected="#3f8da3",disabled="#77777790",disabled_text="#8C8C70",label="#1A0001",frame="#00000000",mm_root="#1A0001",gm_root="#1A0001",rounded_window=False)
- style.default.size=20
- style.window.background=None
- config.has_sound=True
- config.has_music=True
- config.has_voice=False
- config.has_autosave=False
- config.autosave_on_quit=False
- config.allow_skipping=False
- config.default_fullscreen=False
- config.quicksave_slots=0
- config.autosave_slots=0
- config.has_autosave=False
- config.thumbnail_width=300
- config.thumbnail_height=180
- python early:
- config.save_directory="lig-1471825764"
- init python:
- build.directory_name="Lights-0.2"
- build.executable_name="test"
- build.include_update=False
- build.classify('**~',None)
- build.classify('**.bak',None)
- build.classify('**/.**',None)
- build.classify('**/#**',None)
- build.classify('**/thumbs.db',None)
- build.classify('**.rpy',None)
- build.classify('**/cache/**',None)
- build.classify('**/saves/**',None)
- build.classify('**','archive')
- init:
- $config.keymap=dict(
- rollback=[],
- screenshot=[],
- toggle_afm=[],
- toggle_fullscreen=[],
- game_menu=['K_ESCAPE','mouseup_3'],
- hide_windows=[],
- launch_editor=[],
- dump_styles=[],
- reload_game=['R'],
- inspector=[],
- full_inspector=[],
- developer=[],
- quit=[],
- iconify=[],
- help=[],
- choose_renderer=[],
- progress_screen=[],
- self_voicing=[],
- clipboard_voicing=[],
- debug_voicing=[],
- rollforward=[],
- dismiss=['mousedown_1'],
- dismiss_unfocused=[],
- dismiss_hard_pause=[],
- focus_left=[],
- focus_right=[],
- focus_up=[],
- focus_down=[],
- button_ignore=['mousedown_1'],
- button_select=['mouseup_1'],
- button_alternate=['mouseup_3'],
- button_alternate_ignore=['mousedown_3'],
- viewport_leftarrow=[],
- viewport_rightarrow=[],
- viewport_uparrow=[],
- viewport_downarrow=[],
- viewport_wheelup=['mousedown_4'],
- viewport_wheeldown=['mousedown_5'],
- viewport_drag_start=['mousedown_1'],
- viewport_drag_end=['mouseup_1'],
- skip=[],
- stop_skipping=[],
- toggle_skip=[],
- fast_skip=[],
- bar_activate=['mousedown_1'],
- bar_deactivate=['mouseup_1'],
- bar_left=[],
- bar_right=[],
- bar_up=[],
- bar_down=[],
- save_delete=[],
- drag_activate=[],
- drag_deactivate=[],
- console=[],
- console_older=[],
- console_newer=[],
- toggle_music=[],
- viewport_up=[],
- viewport_down=[],
- profile_once=[],
- memory_profile=[],
- )
- script.rpy
- # You can place your game script in this file.
- # Declare images here using the image statement.
- # For example, image eileen happy = "eileen_happy.png"
- # Define the characters of the game.
- image b sky="sky.webp"
- image b uw="uw.webp"
- image b vit="vit.webp"
- image b nl="nl.webp"
- image b gir="gir.webp"
- image b uc="uc.webp"
- image b per="per.webp"
- image b day="day.webp"
- image b kuz="kuz.webp"
- image b sset=im.Scale("sset.webp",1280,720)
- image sprt1=ConditionSwitch("sprt1==0","ech.webp","sprt1==1","r_pri1le.webp","sprt1==2","u_23.webp","sprt1==3","n_3.webp","sprt1==4","b_7.webp","sprt1==5","z_1.webp")
- init:
- $r=Character(_('Rin'),color="#ffc000",what_color="#ffc000",what_slow_cps=60,what_outlines=[(3,"#0008",1,1),(2,"#0008"),(1,"#ffc000")],who_outlines=[(2,"#0008",1,1),(1,"#2c2c2c")],what_size=30,who_size=48,window_left_padding=10,afm=False)
- # The game starts here.
- label start:
- $sprt1=3
- show screen lights2
- $lights2("l/rne.webp",0.03,0.78,0.44,1.0,alpi2)
- scene b nl with dissolve
- show screen lights1(_layer="master")
- $lights1("l/ire.webp",0.77,0.31,0.76,0.74,alpi2)
- show sprt1
- r "Glare"
- $sprt1=0
- label ag:
- show screen lights3
- scene b gir with dissolve
- show screen lights1(_layer="master")
- show sprt1 at left
- r "Fairy lights"
- show b uw with dissolve
- r "Undersea world"
- show b sset with dissolve
- r "Sunset"
- show b vit with dissolve
- r "stained glass windows"
- show b uc with dissolve
- r "A cave"
- show b per with dissolve
- r "lane"
- show b day with dissolve
- r "Field"
- show b kuz with dissolve
- r "Forge"
- show b sky with dissolve
- r "Sky"
- jump ag
- return
- lights.rpy
- transform alpi08:
- alpha.8
- transform alpi05:
- alpha.5
- transform alpi03:
- alpha.3
- transform alpi1:
- choice:
- linear 1 alpha.3
- ease 2 alpha.4
- choice:
- linear 2 alpha.4
- ease 1 alpha.3
- choice:
- linear 1 alpha.5
- ease 2 alpha.7
- choice:
- linear 2 alpha.5
- ease 1 alpha.3
- choice:
- linear 2 alpha.8
- ease 2 alpha.4
- choice:
- linear 3 alpha.4
- ease 1 alpha.6
- pause (renpy.random.randint(3,6))
- choice:
- linear 1.5 alpha.6
- linear 3 alpha.3
- choice:
- linear 1.5 alpha.7
- linear 3 alpha.5
- choice:
- ease 1 alpha.3
- ease 2 alpha.7
- pause (renpy.random.randint(3,6))
- choice:
- linear 1 alpha.2
- linear 2 alpha.6
- choice:
- linear 1 alpha.6
- linear 2 alpha.4
- choice:
- ease 1 alpha.6
- ease 2 alpha.2
- pause (renpy.random.randint(3,6))
- repeat
- transform alpi2:
- choice:
- linear 3 alpha.3
- ease 2 alpha.4
- choice:
- linear 2 alpha.1
- ease 2 alpha.3
- choice:
- linear 3 alpha.4
- ease 2 alpha.2
- choice:
- linear 2 alpha.0
- ease 2 alpha.3
- choice:
- linear 2 alpha.1
- ease 3 alpha.3
- choice:
- linear 2 alpha.2
- ease 2 alpha.0
- choice:
- linear 3 alpha.2
- ease 2 alpha.1
- choice:
- linear 3 alpha.4
- ease 1 alpha.3
- pause (renpy.random.randint(3,6))
- choice:
- linear 2 alpha.2
- linear 3 alpha.3
- choice:
- linear 1.5 alpha.3
- linear 3 alpha.2
- choice:
- ease 3 alpha.1
- ease 2 alpha.3
- choice:
- linear 4 alpha.3
- linear 3 alpha.0
- pause (renpy.random.randint(3,6))
- choice:
- linear 1 alpha.2
- linear 2 alpha.4
- choice:
- linear 3 alpha.3
- linear 2 alpha.1
- choice:
- ease 1 alpha.4
- ease 2 alpha.2
- choice:
- ease 3 alpha.0
- ease 2 alpha.2
- pause (renpy.random.randint(3,6))
- repeat
- transform alpi2z:
- choice:
- linear 3 alpha.3 zoom 1.08
- ease 2 alpha.4 zoom 1
- choice:
- linear 2 alpha.1 zoom 1.0
- ease 2 alpha.3 zoom 1
- choice:
- linear 3 alpha.4 zoom 1.04
- ease 2 alpha.2 zoom 1
- choice:
- linear 2 alpha.0 zoom 1.06
- ease 2 alpha.3 zoom 1.03
- choice:
- linear 2 alpha.1 zoom 1.0
- ease 3 alpha.3 zoom 1.1
- choice:
- linear 2 alpha.2 zoom 1
- ease 2 alpha.0 zoom 1.06
- choice:
- linear 3 alpha.2 zoom 1.0
- ease 2 alpha.1 zoom 1.12
- choice:
- linear 3 alpha.4 zoom 1.14
- ease 1 alpha.3 zoom 1
- pause (renpy.random.randint(3,6))
- choice:
- linear 2 alpha.2 zoom 1.0
- linear 3 alpha.3 zoom 1.04
- choice:
- linear 1.5 alpha.3 zoom 1.06
- linear 3 alpha.2 zoom 1.0
- choice:
- ease 3 alpha.1 zoom 1.06
- ease 2 alpha.3 zoom 1
- choice:
- linear 4 alpha.3 zoom 1.0
- linear 3 alpha.0 zoom 1.14
- pause (renpy.random.randint(3,6))
- choice:
- linear 1 alpha.2 zoom 1
- linear 2 alpha.4 zoom 1.02
- choice:
- linear 3 alpha.3 zoom 1.07
- linear 2 alpha.1 zoom 1.0
- choice:
- ease 1 alpha.4 zoom 1
- ease 2 alpha.2 zoom 1.02
- choice:
- ease 3 alpha.0 zoom 1.1
- ease 2 alpha.2 zoom 1
- pause (renpy.random.randint(3,6))
- repeat
- init python:
- alpiss=[alpi08,alpi05,alpi03,alpi1,alpi2,alpi2z]
- alpisn=["alpi08","alpi05","alpi03","alpi1","alpi2","alpi2z"]
- sprt1=0
- lig_imgs=[]
- alpi_numb=0
- lig_numb=0
- lig_null=0
- alpi_numb1=0
- lig_numb1=0
- lig_show=1
- for fn in renpy.list_files():
- if fn.startswith("l/") and fn.endswith((".webp")):
- lig_imgs.append(fn)
- lig_img,lig_blur,lig_2r,lig_2g,lig_2b,alpi=lig_imgs[lig_numb],0.9,0.9,0.9,0.9,alpiss[alpi_numb]
- lig_img1,lig_blur1,lig_1r,lig_1g,lig_1b,alpi1=lig_imgs[lig_numb1],0.9,0.9,0.9,0.9,alpiss[alpi_numb1]
- def lights2(img,blur,red,green,blue,alp):
- global lig_img,lig_blur,lig_2r,lig_2g,lig_2b,alpi
- lig_img=img
- lig_blur=blur
- lig_2r=red
- lig_2g=green
- lig_2b=blue
- alpi=alp
- def lights1(img,blur,red,green,blue,alp):
- global lig_img1,lig_blur1,lig_1r,lig_1g,lig_1b,alpi1
- lig_img1=img
- lig_blur1=blur
- lig_1r=red
- lig_1g=green
- lig_1b=blue
- alpi1=alp
- screen lights1:
- image im.MatrixColor(im.Scale(im.FactorScale(lig_img1,lig_blur1),1400,800),im.matrix.tint(lig_1r,lig_1g,lig_1b)) at alpi1
- screen lights2:
- image im.MatrixColor(im.Scale(im.FactorScale(lig_img,lig_blur),1400,800),im.matrix.tint(lig_2r,lig_2g,lig_2b)) at alpi
- screen lights3:
- if lig_show==1:
- use lights3a
- else:
- textbutton"Show"xalign 1.0 action SetVariable('lig_show',1)
- screen lights3a:
- imagebutton idle"l/em.webp" action SetVariable('lig_null',0)
- vbox:
- hbox:
- text"Rays "
- textbutton" <<<<< "action[SensitiveIf(lig_numb>0),SetVariable('lig_numb',lig_numb-1),ui.callsinnewcontext("lig_img")]
- textbutton" >>>>> "action[SensitiveIf(lig_numb<len(lig_imgs)-1),SetVariable('lig_numb',lig_numb+1),ui.callsinnewcontext("lig_img")]
- textbutton"0"action SetVariable('sprt1',0)
- textbutton"1"action SetVariable('sprt1',1)
- textbutton"2"action SetVariable('sprt1',2)
- textbutton"3"action SetVariable('sprt1',3)
- textbutton"4"action SetVariable('sprt1',4)
- textbutton"5"action SetVariable('sprt1',5)
- hbox:
- text"Blur"
- bar value VariableValue("lig_blur",1.0)yalign.75 xmaximum 428
- hbox:
- text"Red "
- bar value VariableValue("lig_2r",1.0)yalign.75 xmaximum 428
- hbox:
- text"Green "
- bar value VariableValue("lig_2g",1.0)yalign.75 xmaximum 428
- hbox:
- text"Blue "
- bar value VariableValue("lig_2b",1.0)yalign.75 xmaximum 428
- hbox:
- text"Transform "
- textbutton" <<<<< "action[SensitiveIf(alpi_numb>0),SetVariable('alpi_numb',alpi_numb-1),ui.callsinnewcontext("lig_transforma")]
- textbutton" >>>>> "action[SensitiveIf(alpi_numb<len(alpiss)-1),SetVariable('alpi_numb',alpi_numb+1),ui.callsinnewcontext("lig_transforma")]
- text" "
- text"$lights2([lig_img],"+str(round(lig_blur,2))+","+str(round(lig_2r,2))+","+str(round(lig_2g,2))+","+str(round(lig_2b,2))+","+str(alpisn[alpi_numb])+")"
- vbox xalign 1.0:
- hbox:
- text"Rays "
- textbutton" <<<<< "action[SensitiveIf(lig_numb1>0),SetVariable('lig_numb1',lig_numb1-1),ui.callsinnewcontext("lig_img1")]
- textbutton" >>>>> "action[SensitiveIf(lig_numb1<len(lig_imgs)-1),SetVariable('lig_numb1',lig_numb1+1),ui.callsinnewcontext("lig_img1")]
- hbox:
- text"Blur"
- bar value VariableValue("lig_blur1",1.0)yalign.75 xmaximum 428
- hbox:
- text"Red "
- bar value VariableValue("lig_1r",1.0)yalign.75 xmaximum 428
- hbox:
- text"Green "
- bar value VariableValue("lig_1g",1.0)yalign.75 xmaximum 428
- hbox:
- text"Blue "
- bar value VariableValue("lig_1b",1.0)yalign.75 xmaximum 428
- hbox:
- text"Transform "
- textbutton" <<<<< "action[SensitiveIf(alpi_numb1>0),SetVariable('alpi_numb1',alpi_numb1-1),ui.callsinnewcontext("lig_transforma1")]
- textbutton" >>>>> "action[SensitiveIf(alpi_numb1<len(alpiss)-1),SetVariable('alpi_numb1',alpi_numb1+1),ui.callsinnewcontext("lig_transforma1")]
- text" "
- text"$lights1([lig_img1],"+str(round(lig_blur1,2))+","+str(round(lig_1r,2))+","+str(round(lig_1g,2))+","+str(round(lig_1b,2))+","+str(alpisn[alpi_numb1])+")"
- textbutton"Hide"xalign 1.0 action SetVariable('lig_show',0)
- label lig_transforma:
- $alpi=alpiss[alpi_numb]
- return
- label lig_img:
- $lig_img=lig_imgs[lig_numb]
- return
- label lig_transforma1:
- $alpi1=alpiss[alpi_numb1]
- return
- label lig_img1:
- $lig_img1=lig_imgs[lig_numb1]
- return
- screen.rpy
- screen say:
- window:
- id"window"
- has vbox:
- style"say_vbox"
- text who id"who"
- text what id"what"
- screen choice:
- window:
- style"menu_window"xalign.5 yalign.5
- vbox:
- style"menu"
- spacing 1
- for caption,action,chosen in items:
- if action:
- button:
- action action
- style"menu_choice_button"
- text caption style"menu_choice"
- else:
- text caption style"menu_caption"
- screen input:
- window style"input_window":
- has vbox
- text prompt style"input_prompt"
- input id"input"style"input_text"
- screen main_menu:
- image im.Scale(im.FactorScale("l/rnf.webp",0.06),1400,800)
- textbutton"{size=60}Lights 0.2"xalign.5 yalign.5 action Start()
- screen navigation:
- pass
- screen file_picker:
- frame:
- style"file_picker_frame"
- has vbox
- $columns=4
- grid columns 1:
- transpose True
- xfill True
- style_group"file_picker"
- for i in range(1,columns+1):
- button:
- action FileAction(i)
- xfill True
- has vbox
- add FileScreenshot(i)
- $file_name=FileSlotName(i,columns)
- $file_time=FileTime(i,empty=_(""))
- $save_name=FileSaveName(i)
- text"{size=24} [file_time!t] [save_name!t]"
- key"save_delete"action FileDelete(i)
- hbox:
- textbutton _("Save")action ShowMenu("save")
- for i in range(1,7):
- textbutton str(" "):
- action FilePage(i)
- textbutton _("Load")action ShowMenu("load")
- hbox yalign 1.0:
- textbutton _(" ")action Preference("display","window")
- textbutton _(" ")action Preference("display","fullscreen")
- screen save:
- tag menu
- add"#12060290"
- use navigation
- use file_picker
- screen load:
- tag menu
- add"#12060290"
- use navigation
- use file_picker
- screen preferences:
- pass
- screen yesno_prompt:
- modal True
- timer.1 action(yes_action)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement