Return a list of the texture squares for the top, bottom and side.
(top, bottom, side)
| 61 | |
| 62 | |
| 63 | def tex_coords(top, bottom, side): |
| 64 | """ Return a list of the texture squares for the top, bottom and side. |
| 65 | |
| 66 | """ |
| 67 | top = tex_coord(*top) |
| 68 | bottom = tex_coord(*bottom) |
| 69 | side = tex_coord(*side) |
| 70 | result = [] |
| 71 | result.extend(top) |
| 72 | result.extend(bottom) |
| 73 | result.extend(side * 4) |
| 74 | return result |
| 75 | |
| 76 | |
| 77 | TEXTURE_PATH = 'texture.png' |