Exemplo n.º 1
0
	def draw(self):

		if parser.OPTIONS['game']['debug'] is True:
			name = self.obj_type
			try:
				name = self.name
			except: pass
			barf.debug('Drawing %s at (%d, %d)' % (name, self.x, self.y))
		
		tcod.console_set_default_foreground(self.con, tcod.Color(self.color[0],self.color[1],self.color[2]))
		tcod.console_put_char(self.con, self.x, self.y, self.char, self.bgcolor)
Exemplo n.º 2
0
	def clear(self):

		if parser.OPTIONS['game']['debug'] is True:
			name = self.obj_type

			try:
				name = self.name
			except:
				pass

			barf.Barf('DBG', 'Clearing %s at (%d, %d)' % (name, self.x, self.y))

		tcod.console_set_default_foreground(self.con, self.bgcolor)
		tcod.console_put_char(self.con, self.x, self.y, tcod.CHAR_BLOCK1, tcod.BKGND_NONE)
	def clear(self):
		ltc.console_put_char(self.con,self.pos_x,self.pos_y,' ',ltc.BKGND_NONE)
	def draw(self):
		ltc.console_set_default_foreground(0,ltc.white)
		ltc.console_put_char(self.con,self.pos_x,self.pos_y,self.char,ltc.BKGND_NONE)