Compare commits
2 Commits
9befd927a8
...
923384eb37
Author | SHA1 | Date | |
---|---|---|---|
923384eb37 | |||
c2d8c394a1 |
@ -73,16 +73,23 @@ python early hide:
|
||||
class chibi:
|
||||
@staticmethod
|
||||
def parse(l):
|
||||
who = l.simple_expression()
|
||||
action = l.simple_expression()
|
||||
who = l.name()
|
||||
action = l.name()
|
||||
arguments = l.arguments() # may be None
|
||||
l.expect_eol()
|
||||
|
||||
return (who, action)
|
||||
return (who, action, arguments)
|
||||
|
||||
def execute(self):
|
||||
print(self)
|
||||
who, action = self
|
||||
chibi = DollChibi.instance[who]
|
||||
getattr(chibi, action)
|
||||
who, action, arguments = self
|
||||
chibi = DollChibi.instances[who]
|
||||
method = getattr(chibi, action)
|
||||
if arguments is None:
|
||||
args, kwargs = (), {}
|
||||
else:
|
||||
args, kwargs = arguments.evaluate()
|
||||
method(*args, **kwargs)
|
||||
|
||||
# print(f"Execution: {who} {action}")
|
||||
|
||||
|
@ -374,12 +374,12 @@ default hooch_chibi = DollChibi(name="hooch", doll=hooch)
|
||||
# "Rollback block"
|
||||
# $ renpy.block_rollback()
|
||||
|
||||
# chibi tonks move (path=[(500, 421), (650, 521), (800, 421)], repeat=3, pause=False)
|
||||
# "repeat 3"
|
||||
# chibi tonks move (path=[(500, 421), (650, 521), (800, 421)], repeat=3)
|
||||
# "loop"
|
||||
# chibi tonks move (path=[(500, 421), (650, 521), (800, 421)], loop=True)
|
||||
# "doll synchronisation"
|
||||
# chibi tonks move (path=[(500, 421), (650, 521), (800, 421)], loop=True, pause=False)
|
||||
# "loop"
|
||||
# chibi tonks move (path=[(500, 421), (650, 521), (800, 421)], loop=True, pause=False)
|
||||
# "doll synchronisation"
|
||||
# ton @ hair default "Default" ("base", "base", "base", "mid")
|
||||
# ton @ hair angry "Angry" ("angry", "narrow", "angry", "mid")
|
||||
# ton @ hair scared "Scared" ("scream", "wide", "worried", "mid")
|
||||
@ -395,18 +395,18 @@ default hooch_chibi = DollChibi(name="hooch", doll=hooch)
|
||||
# "Rollback block"
|
||||
# $ renpy.block_rollback()
|
||||
|
||||
# "pos 1"
|
||||
# chibi tonks place (pos=(300,300))
|
||||
# "pos 2"
|
||||
# "pos 1"
|
||||
# chibi tonks place (pos=(400,300))
|
||||
# "pos 3"
|
||||
# "pos 2"
|
||||
# chibi tonks place (pos=(400,400))
|
||||
# "pos 4"
|
||||
# "pos 3"
|
||||
# chibi tonks place (pos=(200,400))
|
||||
# "pos 5"
|
||||
# "pos 4"
|
||||
# chibi tonks place (pos=(600,400))
|
||||
# "End"
|
||||
# "pos 5"
|
||||
# hide tonks_chibi
|
||||
# hide tonks_main
|
||||
# "End"
|
||||
|
||||
# jump main_room_menu
|
||||
|
Loading…
Reference in New Issue
Block a user