Moving things in shoebot – simple particles…

OK, part 3 - now for something fun - extending parts 1 + 2 into a simple particle system. Particles, generally means - a lot of things moving around (the particles) and a way to generate them, an "emitter" Here we're going to take the code from the previous two parts and add a couple of things to make a basic particle system. Note - shoebot, isn't the fastest; but we do get nice looking results. Here's a video of our arrows as particles (arrowsplosion!): (more…)

Moving things in shoebot, adding different behaviours..

In my last post we made an arrow move around the screen, in this post we'll look to extend things so it's easy to make many things move around the screen. This will make the code a little more complex, but as usual it makes things simpler later on. Note: This python code runs in shoebot, is used to handle coordinates At the end we'll have two arrows, a blue one controlled with the keyboard and a pink one that moves on it's own: (more…)

Natural movement using polar coordinates in shoebot

Here's a little shoebot bot to experiment with natural movement. This uses polar coordinates to decide the direction and velocity of an arrow on the screen. Polar coordinates mean we can give an object a sense of 'forward', 'back', 'left' and 'right' The code below works on the current version of shoebot With to handle the directions and velocity (more…)