Cruising Thru Space
Use this as a template for space-ship games where you go through space. It works like this: There are 3 variables, ecks(x), wye(y) and zedd(z), when you press the directional arrows, x and y change. z is constantly increasing. The block moves according to these variables in a complicated, if not fluky, equation. The stars are painted on three sprites which get bigger according to (z-(repeat1/2/3*100)). once they have gotten bigger than a set size, they change a'repeat 1/2/3' variable by one. You cannot go diagonally. You can die if you hit the block (with a weird sound effect).