The MASM Forum

General => The Laboratory => Topic started by: PaddyO on December 21, 2015, 10:42:13 AM

Title: Simple Desktop Animation with a sprite sheet
Post by: PaddyO on December 21, 2015, 10:42:13 AM
I found this sprite sheet on the internet and plugged it around to get the guy to run across my screen. The program is small and pretty straight forward. Not optimized by any means and there's a couple spots I'm still stumped. But It runs on my Win7 and Win10 machines without any problems. It uses a layered window and a timer routine to produce the animated effect. I think the debugout.inc file came from Japheths site many years ago. You can correct my failing gray matter if I'm wrong. Please feel free to grade/correct/delete/distribute the source as desired :-)

Title: Re: Simple Desktop Animation with a sprite sheet
Post by: guga on December 21, 2015, 01:57:59 PM
Good work. Try with this image. removed the blue scratches around it.
Title: Re: Simple Desktop Animation with a sprite sheet
Post by: Siekmanski on December 21, 2015, 07:15:29 PM
Nice effect.  :t
The border of the picture has a different blue color as the rest of the blue background color.
If you cut out the picture at offset 1,1 and make the size 510 by 510 then the background color is the same in the whole picture.
And your anim X-coords are now steps of 85 instead of 85.333, Y-coords 102 instead of 102.4
Now you can start at offset 0.
Title: Re: Simple Desktop Animation with a sprite sheet
Post by: jj2007 on December 21, 2015, 07:57:16 PM
Very cute :t
Title: Re: Simple Desktop Animation with a sprite sheet
Post by: PaddyO on December 22, 2015, 07:05:43 AM
Thanks for the tips everyone. I knew it was the image. Should have looked closer :-)