This is my first attempt for smooth tile scrolling in Slick. The offx/offy coordinates are not entirely correct for hero, smaller than the tile image but it’s a good start the “smooth” part comes from shx/shy variables which offset the rendering position. The code is after the break:
Update: Check the project source code page at [...]
Another very simple Processing script. Nothing fancy just three points with circle orbits and blur on every step to ensure the fading of the “tails” but still looks nice.
int R = 20; //radius
int speed = 2; // speed
int t = 0;
float x;
float y;
int offx = 0;
int offy = 0;
void setup(){
size(80,80);
[...]
I continue my tests with Processing. Today’s project is simple Spirograph. The formulas are taken from here.
int R = 130; //Outer radius
int r = 15; //Iner radius
int O = 7; [...]
Here is simple processing script for generating random terrains using Perlin noise. The good thing is that Processing has integrated noise() function and all you have to do is call it with the coordinates as parameters. Then assign the colors depending on the “height” of the point and add some randomness to the snow to [...]