Here is my test case:
from scene import Scene, SpriteNode, run, Point
class pt(SpriteNode):
def __init__(self, **kargs):
SpriteNode.__init__(self, 'plf:HudX', **kargs)
scale_x = 0.5
scale_y = 0.5
class plot (SpriteNode):
anchor_point = Point(0,0)
color = '#8989ff'
class test(Scene):
def setup(self):
pane = plot(parent=self)
pane.size = (self.size.x / 2, self.size.y / 2)
pane.position = (50,50)
for x in (50, 100, 150, 200, 250, 300):
p = pt(parent=pane)
p.position = (x, x)
if __name__ == '__main__':
tst = test()
run(tst)
Questions:
1. Why doesn't the color work on my plot class?
2. Why isn't the plot 50 px from the lower left corner?
3. Why are the x gifs not half size?
4. Why doesn't the plot Sprite clip its children?