Pixel by Pixel Scrolling Engine

Advanced game related topics
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Pixel by Pixel Scrolling Engine

Post by Shopro »

Hello,

I have completed half of my pixel by pixel engine. It doesn't support collision and a hanful of other features yet.

Can anyone please have a look at it, and tell me why it's so slow?

http://warehouse26.tripod.com/spartan.zip

I can speed it up by changing "#AnimationSmoothness = 1" to 4, which makes the movement slightly more choppy, but it's painfully slow as it is.

using the same techniques, I was able to make a much faster engine in QuickBASIC, so I figure something is wrong here.

Any advice is greatly appreciated, thanks

-Shopro
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

I can't get the file..
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

sorry

Post by Shopro »

I've uploaded it again:

http://fukuoka.cool.ne.jp/greyphantom/Spartan.zip

sorry for the trouble
freak
PureBasic Team
PureBasic Team
Posts: 5950
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Don't just click on the Link, this gives you a "Forbidden" page in japanese :)
Rightclick->Save Target as should work better.

Timo
quidquid Latine dictum sit altum videtur
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Your code is ok and works perfectly here.
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Post by Shopro »

thanks for taking a look.

After having a few people in #purebasic look at it, it seems that it's slow because my monitor has a low refresh rate, and I can do nothing about it.

I'll try to find a way to make it run at the same speed on all PCs:)

thanks

-Shopro
Post Reply