Here's a little creative coding I did with processingjs a while back. Move the mouse to move the skulls.
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…)
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, planar.py is used to handle coordinates https://github.com/shoebot planar.py 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…)
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 https://github.com/shoebot/shoebot.git With planar.py to handle the directions and velocity https://pypi.python.org/pypi/planar (more…)