Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/g/a/GameDev-HEAD/level.py   GameDev(Download)
	def __init__(self, terrian = None):
		if terrian is None:
			cols = constants.COLS # we want 26 cols of tiles to cover a width of 624
			rows = constants.ROWS # we want 18 rows of tiles to cover a height of 480
 
 
		for col in range (0,constants.COLS):
			for row in range (0,constants.ROWS):
				location = 0+col*twidth,0+row*theight, twidth, theight
				tilestring = "" + str(self.terrian[col][row])+str(self.terrian[col+1][row])+str(self.terrian[col][row+1])+str(self.terrian[col+1][row+1])
		self.rect = self.image.get_rect()
 
		self.yoffset = constants.ROWS*theight - 480