Author Topic: Wiggle It  (Read 4798 times)

0 Members and 1 Guest are viewing this topic.

Offline Tr4nt0r

  • The Last Storm Trooper
  • ZX 81
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Wiggle It
« 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. >>
« Last Edit: August 07, 2009 by Tr4nt0r »

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Wiggle It
« Reply #1 on: August 07, 2009 »
very good :)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Wiggle It
« Reply #2 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.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 909
  • Karma: 67
    • View Profile
Re: Wiggle It
« Reply #3 on: August 07, 2009 »
I don't have freebasic installed, so I can't view it :(

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: Wiggle It
« Reply #4 on: August 07, 2009 »
Attached an exe for win32.
Challenge Trophies Won:

Offline Tr4nt0r

  • The Last Storm Trooper
  • ZX 81
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Wiggle It
« Reply #5 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 >>
« Last Edit: August 07, 2009 by Tr4nt0r »

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Wiggle It
« Reply #6 on: August 07, 2009 »
N1 wobble wiggle stuff!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Wiggle It
« Reply #7 on: August 08, 2009 »
/\ My reply above is no longer relevant because Trantor edited his first post so please disregard it.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Tr4nt0r

  • The Last Storm Trooper
  • ZX 81
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Wiggle It
« Reply #8 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. >>

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Wiggle It
« Reply #9 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.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won: