feat: player runtime for goodluke and SaintlyCorruption
Text fields (`input`) with InputValue classes games can extend, continue/break in screen loops, Confirm, CaptureFocus/ClearFocus/InvertSelected, generator functions and iter/next, starred tuple items, renpy.file and json over data files loaded before the game starts, renpy.Container and register_sl_displayable, DiamondBox layout, ConditionSwitch/DynamicImage/Animation, renpy.show(what=...), callable transforms (`store.move_in(0.3)`), call_in_new_context as a call, im.matrix/im.Image/ MatrixColor, colorsys, fnmatch, FontGroup, persistent._clear and small renpy helpers. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e66160cffa
commit
e48521bdfb
12 files changed
+440
-26
No files matched your search
Vendored
+16
@@ -33,3 +33,19 @@ result_loop = [x * 2 for x in bag]
|
||||
result_item = bag[1]
|
||||
result_in = 4 in bag
|
||||
result_out = 9 in bag
|
||||
|
||||
|
||||
def walk(values, kind):
|
||||
seen = []
|
||||
for value in values:
|
||||
if isinstance(value, kind):
|
||||
yield value
|
||||
elif isinstance(value, list):
|
||||
yield from walk(value, kind)
|
||||
|
||||
|
||||
result_found = list(walk([1, "a", [2, "b", [3]], 4], int))
|
||||
result_iter = iter([7, 8])
|
||||
result_first = next(result_iter)
|
||||
result_second = next(result_iter)
|
||||
result_default = next(result_iter, "done")
|
||||
Reference in new issue
Block a user