Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add files via upload
- Loading branch information
1 parent
150fe17
commit 37c55b5
Showing
72 changed files
with
14,040 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
|
||
|
||
init -50 python: | ||
import random | ||
|
||
class CardGameRival: | ||
|
||
def __init__(self,avatar,name): | ||
self.name = name | ||
self.mood = 0 | ||
self.avatar = avatar | ||
|
||
def pick_my_card_last(self): | ||
for i in range(0,n_cards): | ||
if cards_my[i].interesting: | ||
x = i | ||
return x | ||
|
||
def allow_to_take(self): | ||
for i in range(0,n_cards): | ||
cards_rival[i].allow = True | ||
|
||
def allow_to_defend(self): | ||
return True | ||
|
||
def want_to_defend(self): | ||
return True | ||
|
||
def what_to_xchange(self): | ||
i = random.randrange(0,n_cards) | ||
j = random.randrange(0,n_cards) | ||
while i==j: | ||
j = random.randrange(0,n_cards) | ||
return (i,j) | ||
|
||
def give_away_card(self): | ||
return random.randrange(0,n_cards) | ||
|
||
class CardGameRivalUn(CardGameRival): | ||
def pick_my_card(self): | ||
x = random.randrange(0,n_cards) | ||
while cards_my[x].name == name_of_none or cards_my[x].interesting: | ||
x = random.randrange(0,n_cards) | ||
return x | ||
|
||
def pick_my_card_last(self): | ||
return self.pick_my_card() | ||
|
||
class CardGameRivalUs(CardGameRival): | ||
def pick_my_card(self): | ||
type,index = cards_interact() | ||
return index | ||
|
||
def allow_to_take(self): | ||
for i in range(0,n_cards): | ||
cards_rival[i].allow = False | ||
i = random.randrange(0,n_cards) | ||
while cards_rival[i].hot: | ||
i = random.randrange(0,n_cards) | ||
cards_rival[i].allow = True | ||
cards_rival[i].interesting = True | ||
|
||
def want_to_defend(self): | ||
return False | ||
|
||
def allow_to_defend(self): | ||
return False | ||
|
||
|
||
class CardGameRivalDv(CardGameRival): | ||
def what_to_xchange(self): | ||
i = random.randrange(0,n_cards) | ||
while not cards_rival[i].interesting: | ||
i = random.randrange(0,n_cards) | ||
j = random.randrange(0,n_cards) | ||
while i==j: | ||
j = random.randrange(0,n_cards) | ||
return (i,j) | ||
|
||
def pick_my_card(self): | ||
x_set = [] | ||
for i in range(0,n_cards): | ||
if cards_my[i].hot and cards_my[i].name != name_of_none: | ||
x_set.append(i) | ||
if x_set == []: | ||
x = random.randrange(0,n_cards) | ||
while cards_my[x].name == name_of_none: | ||
x = random.randrange(0,n_cards) | ||
return x | ||
else: | ||
return renpy.random.choice(x_set) | ||
|
||
def pick_my_card_last(self): | ||
return self.pick_my_card() | ||
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
|
||
|
||
|
||
init -1600 python: | ||
|
||
_preferences.joymap['joy_left'] = "D-PAD Left" | ||
_preferences.joymap['joy_right'] = "D-PAD Right" | ||
_preferences.joymap['joy_up'] = "D-PAD Up" | ||
_preferences.joymap['joy_down'] = "D-PAD Down" | ||
_preferences.joymap['joy_dissmiss'] = "Button 0.0" | ||
_preferences.joymap['joy_menu'] = "Button 0.7" | ||
_preferences.joymap['joy_hide'] = "Button 0.3" | ||
_preferences.joymap['joy_rollback'] = "Button 0.2" | ||
_preferences.joymap['joy_holdskip'] = "Button 0.1" | ||
_preferences.joymap['joy_toggleskip'] = "Button 0.5" | ||
|
||
config.keymap = dict( | ||
|
||
|
||
|
||
rollback = [ 'K_PAGEUP', 'mousedown_4', 'joy_rollback' ], | ||
screenshot = [ 's' ], | ||
toggle_fullscreen = [ 'f', 'alt_K_RETURN', 'alt_K_KP_ENTER', 'K_F11' ], | ||
toggle_music = [ 'm' ], | ||
game_menu = [ 'K_ESCAPE', 'mouseup_3', 'joy_menu' ], | ||
hide_windows = [ 'mouseup_2', 'h', 'joy_hide' ], | ||
launch_editor = [ 'E' ], | ||
dump_styles = [ 'Y' ], | ||
reload_game = [ 'R' ], | ||
inspector = [ 'I' ], | ||
developer = [ 'D' ], | ||
quit = [ 'meta_q', 'alt_K_F4', 'alt_q' ], | ||
iconify = [ 'meta_m', 'alt_m' ], | ||
help = [ 'K_F1', 'meta_shift_/' ], | ||
choose_renderer = [ 'G' ], | ||
self_voicing = [ 'K_F13' ], | ||
|
||
|
||
rollforward = [ 'mousedown_5', 'K_PAGEDOWN' ], | ||
dismiss = [ 'mouseup_1', 'K_RETURN', 'K_SPACE', 'K_KP_ENTER', 'joy_dismiss' ], | ||
|
||
|
||
dismiss_hard_pause = [ ], | ||
|
||
|
||
focus_left = [ 'K_LEFT', 'joy_left' ], | ||
focus_right = [ 'K_RIGHT', 'joy_right' ], | ||
focus_up = [ 'K_UP', 'joy_up' ], | ||
focus_down = [ 'K_DOWN', 'joy_down' ], | ||
|
||
|
||
button_ignore = [ 'mousedown_1' ], | ||
button_select = [ 'mouseup_1', 'K_RETURN', 'K_KP_ENTER', 'joy_dismiss', 'U' ], | ||
button_alternate = [ 'mouseup_3', 'O' ], | ||
button_alternate_ignore = [ 'mousedown_3' ], | ||
|
||
|
||
input_backspace = [ 'K_BACKSPACE' ], | ||
input_enter = [ 'K_RETURN', 'K_KP_ENTER' ], | ||
input_left = [ 'K_LEFT' ], | ||
input_right = [ 'K_RIGHT' ], | ||
input_delete = [ 'K_DELETE' ], | ||
|
||
|
||
viewport_up = [ 'mousedown_4' ], | ||
viewport_down = [ 'mousedown_5' ], | ||
viewport_drag_start = [ 'mousedown_1' ], | ||
viewport_drag_end = [ 'mouseup_1' ], | ||
|
||
|
||
skip = [ 'K_LCTRL', 'K_RCTRL', 'joy_holdskip' ], | ||
toggle_skip = [ 'K_TAB', 'joy_toggleskip' ], | ||
fast_skip = [ '>' ], | ||
|
||
|
||
bar_activate = [ 'mousedown_1', 'K_RETURN', 'K_KP_ENTER', 'joy_dismiss' ], | ||
bar_deactivate = [ 'mouseup_1', 'K_RETURN', 'K_KP_ENTER', 'joy_dismiss' ], | ||
bar_left = [ 'K_LEFT', 'joy_left' ], | ||
bar_right = [ 'K_RIGHT', 'joy_right' ], | ||
bar_up = [ 'K_UP', 'joy_up' ], | ||
bar_down = [ 'K_DOWN', 'joy_down' ], | ||
|
||
|
||
save_delete = [ 'K_DELETE' ], | ||
|
||
|
||
drag_activate = [ 'mousedown_1' ], | ||
drag_deactivate = [ 'mouseup_1' ], | ||
|
||
|
||
console = [ 'shift_O' ], | ||
console_older = [ 'K_UP' ], | ||
console_newer = [ 'K_DOWN' ], | ||
|
||
|
||
|
||
|
||
|
||
profile_once = [ 'K_F8' ], | ||
|
||
|
||
) | ||
|
||
def _screenshot_callback(fn): | ||
renpy.notify(__("Saved screenshot as \n%s.") % fn) | ||
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
|
||
|
||
init -50 python: | ||
|
||
global_map_result="error" | ||
|
||
def init_map_zones_realization(zones,default): | ||
global global_zones | ||
global_zones=zones | ||
for i,data in global_zones.iteritems(): | ||
data["chibi"] = None | ||
data["label"] = default | ||
data["available"] = True | ||
data["been_here"] = 0 | ||
|
||
class Map(renpy.Displayable): | ||
def __init__(self,pics,chibi,default): | ||
renpy.Displayable.__init__(self) | ||
self.pics=pics | ||
self.chibi=chibi | ||
self.default = default | ||
config.overlay_functions.append(self.overlay) | ||
|
||
def disable_all_zones(self): | ||
global global_zones | ||
for name,data in global_zones.iteritems(): | ||
data["label"] = self.default | ||
data["available"] = False | ||
data["been_here"] = 0 | ||
def enable_all_zones(self): | ||
global global_zones | ||
for name,data in global_zones.iteritems(): | ||
data["label"] = self.default | ||
data["available"] = True | ||
data["been_here"] = 0 | ||
def set_zone(self,name,label): | ||
global global_zones | ||
global_zones[name]["label"] = label | ||
global_zones[name]["available"] = True | ||
def reset_zone(self,name): | ||
global global_zones | ||
global_zones[name]["label"] = self.default | ||
global_zones[name]["available"] = False | ||
global_zones[name]["been_here"] = 0 | ||
def enable_empty_zone(self,name): | ||
global global_zones | ||
self.set_zone(name,self.default) | ||
global_zones[name]["available"] = True | ||
def reset_current_zone(self): | ||
self.enable_empty_zone(global_map_result) | ||
def disable_current_zone(self): | ||
global global_zones | ||
global_zones[global_map_result]["available"] = False | ||
def been_there(self): | ||
global global_zones | ||
return global_zones[global_map_result]["been_here"] | ||
def set_chibi(self,name,ch): | ||
global global_zones | ||
if ch in self.chibi: | ||
global_zones[name]["chibi"] = self.chibi[ch] | ||
else: | ||
global_zones[name]["chibi"] = None | ||
def reset_chibi(self,name): | ||
self.set_chibi(name,"") | ||
|
||
def event(self, ev, x, y, st): | ||
return | ||
def render(self, width, height, st, at): | ||
return renpy.Render(1, 1) | ||
|
||
def zoneclick(self,name): | ||
global global_zones | ||
global global_map_result | ||
store.map_enabled=False | ||
renpy.scene('mapoverlay') | ||
global_zones[name]["been_here"] += 1 | ||
global_map_result = name | ||
renpy.scene() | ||
|
||
|
||
|
||
|
||
|
||
renpy.config.skipping = False | ||
renpy.game.after_rollback = False | ||
ui.jumps(global_zones[name]["label"])() | ||
|
||
def overlay(self): | ||
if store.map_enabled: | ||
global global_zones | ||
renpy.scene('mapoverlay') | ||
ui.layer('mapoverlay') | ||
for name,data in global_zones.iteritems(): | ||
if data["available"]: | ||
pos = data["position"] | ||
ui.imagebutton( | ||
im.Crop(self.pics["available"],pos[0],pos[1],pos[2]-pos[0],pos[3]-pos[1]), | ||
im.Crop(self.pics["selected"], pos[0],pos[1],pos[2]-pos[0],pos[3]-pos[1]), | ||
clicked = renpy.curry(self.zoneclick)(name), | ||
xpos = pos[0], | ||
ypos = pos[1] | ||
) | ||
if data["chibi"] != None: | ||
ui.imagebutton( | ||
anim.Blink(data["chibi"]), | ||
anim.Blink(data["chibi"]), | ||
clicked = renpy.curry(self.zoneclick)(name), | ||
xpos = pos[0], | ||
ypos = pos[1] | ||
) | ||
ui.close() | ||
|
||
store.map = Map(store.map_pics, store.map_chibi, default) | ||
|
||
|
||
label _show_map: | ||
scene widget map | ||
$ store.map_enabled = True | ||
$ ui.interact() | ||
jump _show_map | ||
|
||
label nothing_here: | ||
python: | ||
random = renpy.random.choice([ | ||
u"Тут ничего нет", | ||
u"Мне нечего тут делать", | ||
u"Пойду-ка я лучше еще куда-нибудь" | ||
]) | ||
"%(random)s" | ||
jump _show_map | ||
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
init: | ||
$ filters["image__filter_sepia"] = u"Ностальгическое Лето" | ||
$ filters["image__filter_gray"] = u"Чёрно-белое Лето" | ||
$ filters["image__filter_map"] = u"27-цветное Лето" | ||
|
||
python early: | ||
def lb__recolor(im_op): | ||
for id, img in renpy.display.image.images.iteritems(): | ||
try: | ||
for i,(c,sub) in enumerate(img.child.args[0]): | ||
img.child.args[0][i] = (c,im_op(sub)) | ||
except: | ||
try: | ||
renpy.display.image.images[id] = im_op(img) | ||
except: | ||
"TODO" | ||
for id in store.map_pics: | ||
store.map_pics[id] = im_op(store.map_pics[id]) | ||
|
||
|
||
def image__filter_sepia(): | ||
lb__recolor(im.Sepia) | ||
config.overlay_functions.append(lambda:ui.image("filters/sepia.png")) | ||
|
||
m = chr(0)*85+chr(128)*86+chr(255)*85 | ||
image__filter_map = lambda: lb__recolor(lambda i: im.Map(i,m,m,m)) | ||
|
||
image__filter_gray = lambda: lb__recolor(im.Grayscale) | ||
image__filter_hue = lambda: lb__recolor(lambda i: im.MatrixColor(i,im.matrix.hue(180))) | ||
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc |
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.