当前位置: 首页>>代码示例>>Python>>正文


Python Level._text方法代码示例

本文整理汇总了Python中Level.Level._text方法的典型用法代码示例。如果您正苦于以下问题:Python Level._text方法的具体用法?Python Level._text怎么用?Python Level._text使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Level.Level的用法示例。


在下文中一共展示了Level._text方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Level

# 需要导入模块: from Level import Level [as 别名]
# 或者: from Level.Level import _text [as 别名]
'''
Level info storage

Created on 2 Mar 2014

@author: samgeen
'''

import Animals
from Level import Level

# 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:
开发者ID:samgeen,项目名称:hackandslash,代码行数:33,代码来源:LevelData.py


注:本文中的Level.Level._text方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。