News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Simple Desktop Animation with a sprite sheet

Started by PaddyO, December 21, 2015, 10:42:13 AM

Previous topic - Next topic

PaddyO

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 :-)


guga

Good work. Try with this image. removed the blue scratches around it.
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com

Siekmanski

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.
Creative coders use backward thinking techniques as a strategy.


PaddyO

Thanks for the tips everyone. I knew it was the image. Should have looked closer :-)