This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>>>+>+++>+++>>>>>+++[ | |
| >,+>++++[>++++<-]>[<<[-[->]]>[<]>-]<<[ | |
| >+>+>>+>+[<<<<]<+>>[+<]<[>]>+[[>>>]>>+[<<<<]>-]+<+>>>-[ | |
| <<+[>]>>+<<<+<+<--------[ | |
| <<-<<+[>]>+<<-<<-[ | |
| <<<+<-[>>]<-<-<<<-<----[ | |
| <<<->>>>+<-[ | |
| <<<+[>]>+<<+<-<-[ | |
| <<+<-<+[>>]<+<<<<+<-[ | |
| <<-[>]>>-<<<-<-<-[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pygame | |
| class PackNode(object): | |
| """ | |
| Creates an area which can recursively pack images into itself. | |
| """ | |
| def __init__(self, area): | |
| # if tuple contains two elements, assume they are width and height, | |
| # and origin is (0,0) | |
| if len(area) == 2: |
NewerOlder