So I am playing around with the Game Module and I have enjoyed swapping out coins for snowflakes and then slowed them down for a beautiful snowy day, but I want to do this with a ShapeNode and can't seem to figure it out..
class Coin (SpriteNode):
def __init__(self, **kwargs):
SpriteNode.__init__(self, 'emj:Snowflake', **kwargs)
If anyone can point me in the right direction to use a circle (ui.Path.oval) instead of a texture.
It tried this
class Ball(ShapeNode):
def __init__(self, **kwargs):
circle = ui.Path.oval (0, 0, 20, 20)
theball = ShapeNode(circle,'red', stroke_color='clear', shadow=None)
ShapeNode.__init__(self, theball, *kwargs)
And it tells me the ShapeNode object has no attribute bounds.
Thanks in advance to anyone who can help.