Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: Tr4nt0r on August 07, 2009

Title: Wiggle It
Post 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. >>
Title: Re: Wiggle It
Post by: Hotshot on August 07, 2009
very good :)
Title: Re: Wiggle It
Post by: Shockwave on August 07, 2009
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.
Title: Re: Wiggle It
Post by: zawran on August 07, 2009
I don't have freebasic installed, so I can't view it :(
Title: Re: Wiggle It
Post by: hellfire on August 07, 2009
Attached an exe for win32.
Title: Re: Wiggle It
Post by: Tr4nt0r on August 07, 2009
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 >>
Title: Re: Wiggle It
Post by: benny! on August 07, 2009
N1 wobble wiggle stuff!
Title: Re: Wiggle It
Post by: Shockwave on August 08, 2009
/\ My reply above is no longer relevant because Trantor edited his first post so please disregard it.
Title: Re: Wiggle It
Post by: Tr4nt0r on August 08, 2009
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. >>
Title: Re: Wiggle It
Post by: Clyde on August 10, 2009
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.