CMM2: Lunar Lander
Author | Message | ||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1126 |
I thought I would have a quick go at hacking together a lunar lander game. Here is the result: Use left/right arrows to rotate, [space bar] to fire engines. ![]() LunarLander2.zip I must say, the abilities of the Colour Maximite 2 make this a simple task in a number of ways. For example, I wanted smooth lander rotation with all lateral movement generated by the main engine. I went with 19 sprites, each turned 5 degrees from the previous. This gave me 0 to 90 degrees. Sprite orientation finished the full 360 degrees. Nice! Alas, my first attempt was a rather wobbly rotation. But then I thought, why am I doing all this image generation by hand? Duh, use the image rotate function! So the only sprite required is the lander straight up, with and without rocket flames. The program itself rotates the base image to each angle, then uses the result to make a sprite. Net result: 19 images with no burn, 19 more with engines firing. Enjoy! Edited 2020-07-07 12:42 by vegipete Visit Vegipete's *Mite Library for cool programs. |
||||