On Friday 04 September 2009, claudio canepa wrote: > On 4 sep, 13:46, Chris Laux <[email protected]> wrote: > > Well, I'm doing a hard coded scale of (1, 1.5, 1) and even that doesn't > > look right. It looks like the sprite is getting moved as well as scaled. > > > > The effect I'm trying to get is a "laser beam" style line. I have a small > > sprite that I'd like to stretch out to be the effect. Any ideas for other > > ways to implement that? I've read that the line drawing stuff isn't very > > fast, and for that matter it isn't really what I want. > > > > And no, I'm not doing pyweek. I have enough stress as-is without trying > > to code a game in a week. ;) > > > > -- > > -chris > > There are relativelly slow, but woth a try: do something like > > class SingleLine(cocos.cocosnode.CocosNode): > def __init__(self, p1,p2, color = None): > super(SingleLine,self).__init__() > self.vertexes = [point_float(*p1),point_float(*p2)]
What's point_float? I grepped cocos and pyglet's code, but didn't find anything... and google didn't help either. I assume it returns a pointer to a float? -- -chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
