My Background is Scrolling like a Champ
Well, I quickly created my background graphics last night. Made some changes to my Background class and I now have a successfully scrolling background.
One thing I like about my background class is that I really tried to make an effot to make it very reusable for future projects. It will take any number of background images that comprise your background and scroll through them properly.
The code isn't really that impressive, but I like that fact that I can change what backgrounds are scrolling just by passing in new images to the class.
Looking the the DevExpress metrics for my class though, I do have 3 functions that have unacceptable complexity (I try to keep everything below 100 and these three are above 300) so I want to work on lowering their complexity before I post my class code.
One thing I like about my background class is that I really tried to make an effot to make it very reusable for future projects. It will take any number of background images that comprise your background and scroll through them properly.
The code isn't really that impressive, but I like that fact that I can change what backgrounds are scrolling just by passing in new images to the class.
Looking the the DevExpress metrics for my class though, I do have 3 functions that have unacceptable complexity (I try to keep everything below 100 and these three are above 300) so I want to work on lowering their complexity before I post my class code.
1 Comments:
blaa, blaa, blaa, get me a cookie!
I don't have any idea what that means, but I am proud of you :)
By Shawna, at 1:56 PM
Post a Comment
<< Home