Jump to content

roving-robots

  • entries
    2
  • comments
    3
  • views
    14,913

Roving-Robots


admalledd

687 views

 Share

currently working on the programming worker interface and working on the problems of the dockable/dragable code blocks.

current method of dockable items is thus:



    def dragged(self,btn):

        print 'button dragged'


        d = dist(self.hub_rect,btn.rect)#find distance between midtop and midbottom

        print d

        if d < 15:

            btn.rect.midtop=self.hub_rect.midbottom

        

where "self.hub_rect" is my experimental dockable item, eventually to become the first seed code block.

next hurdle will be to have the buttons stack downwards, and also have them notice if a block already has a docked item (so that they don't try to stack)

to test this branch of code go to my github and clone the code, run menu.py using python 2.6 and pygame

 Share

1 Comment


Recommended Comments

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.