Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: Tr4nt0r on August 07, 2009
-
this is my go at something a bit demo-ish.
<< edit. >> thanks to Clyde ( who has told me to say, about how he has a form of ecsma on his palms, and will be out of action for a bit till it clears up ) for hints with the pointer type method. I've used Blitz Plus for an insight with banks.
it makes an image wiggle across and down using rectangles.
1 - does not draw properly on the screen. some how it still uses 256 x 256 size that the image is, it should draw to the necassary screen area without that frame.
2 - i'd really like help with making the routine muchos quicker, if you use asm and / or ptr maths would you be able to comment on it please and thanks.
<< end of transmission. >>
-
very good :)
-
Need to install the latest freebasic again to test it, what is is about pointers that you need help with by the way? You've used them throughout this listing and they seem fine at a glance.
-
I don't have freebasic installed, so I can't view it :(
-
Attached an exe for win32.
-
Mike - thanks man. ive picked up alot from your suggestions and aid.
Hotshot - thankyou. however it is not displaying as it's supposed to do.
Shockwave - I understand most of using a pointer type, and i was thinking that maybe star pointer name might make it faster; not sure how to use it in this. i have seen it in some ezamples.
Hellfire - thanks for putting up an exe
<< end of transmission >>
-
N1 wobble wiggle stuff!
-
/\ My reply above is no longer relevant because Trantor edited his first post so please disregard it.
-
fixed the issue with the width and height area, had to draw the image centred into another that was 256+ sin_width and cos_height.
working lates next week, will check back next weekend if any updates to improve it.
<< end of transmission. >>
-
Great that you sussed it and fixed that mate.
I'd be interested in improvements too, if there's a way to make this quicker. As using this does take up some speed, especially if you use it on other images ( logos for example ), and bitmap scrollers. Some people call this image strips. I had a look on the net, but it only had stuff for an inbuilt command in C++.
Cheers and dont give up dude,
Clyde.