Mercurial > touhou
comparison pytouhou/formats/sht.py @ 590:e15672733c93
Switch to Python 3.x instead of 2.7.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 30 Sep 2014 17:14:24 +0200 |
parents | e59bd7979ddc |
children | d1f0bb0b7a17 |
comparison
equal
deleted
inserted
replaced
589:0768122da817 | 590:e15672733c93 |
---|---|
66 sht.percentage_of_cherry_loss_on_die, sht.point_of_collection, | 66 sht.percentage_of_cherry_loss_on_die, sht.point_of_collection, |
67 sht.horizontal_vertical_speed, sht.horizontal_vertical_focused_speed, | 67 sht.horizontal_vertical_speed, sht.horizontal_vertical_focused_speed, |
68 sht.diagonal_speed, sht.diagonal_focused_speed) = data | 68 sht.diagonal_speed, sht.diagonal_focused_speed) = data |
69 | 69 |
70 levels = [] | 70 levels = [] |
71 for i in xrange(level_count): | 71 for i in range(level_count): |
72 offset, power = unpack('<II', file.read(8)) | 72 offset, power = unpack('<II', file.read(8)) |
73 levels.append((power, offset)) | 73 levels.append((power, offset)) |
74 | 74 |
75 sht.shots = {} | 75 sht.shots = {} |
76 | 76 |