本文整理汇总了Python中Level.Level._death方法的典型用法代码示例。如果您正苦于以下问题:Python Level._death方法的具体用法?Python Level._death怎么用?Python Level._death使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Level.Level
的用法示例。
在下文中一共展示了Level._death方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Level
# 需要导入模块: from Level import Level [as 别名]
# 或者: from Level.Level import _death [as 别名]
# LEVELS
intro = Level("intro")
intro._text = '''You are standing atop a cybertower. The cityscape is a swimming mirage of
hot pinks and ice-slick blues. Sirens wail, a dark, dense forest of
screaming sine functions. You watch as two cyberogres leap into the
bit-choked streets below. The air smells faintly of antifreeze, thermal
paste and $ANIMALNAME piss.
Just another day for you, $PLAYERNAME, in Cybercity.
'''
intro._look = '''The mean streets of Cybercity swim below, glistening rain-flecked cars rushing in either direction,
traffic appearing and disappearing like ones and zeroes in the bitstream, insert serial bus joke. On the other side of the street, hackers hang out by the neon-lit "Import-Export",
hacking fingers itchy from underuse, ready for a fight. Just another day in Cybercity. Except it looks like it's night because cyberpunk.'''
intro._death = '''A cyberpigeon craps on you, rancid droppings seeping into a cut inflicted by the barber as they shaved your cool cyber-do.
Weeks later, in hospital, you succumb to the bit rot.'''
def introsetup(game):
vars = game.Vars()
vars["inventory"] = ["sword", "haxsnax"]
if "trex" in vars:
vars.pop("trex")
if "cyberogres" in vars:
vars.pop("cyberogres")
if "llama" in vars:
vars.pop("llama")
intro.Setup = introsetup
# -------------------------------------------------- #