-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|729|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs


 
power mousey
Created : 27 December 2006
Edited : 27 December 2006

more on Cobra



hey all,

I have been writing a few program snippets and testing out more of Cobra. Currently. I wrote a simple Pong game. Actually, some sprites that move and bounce on the screen with a Pong-like effect.
The first sprite is a an alien bug and the second sprite is a small picture of my cat Lissie.

I have been having a problem with the timing of the sprites on the screen. I think it has something to do with the Snakebite debugger being enabled. The sprites seem a little blurry now and then and also sometimes move at times like there is tearing and shearing effect on them.

I ported the code from Cobra to code and programs in both Blitz3d and DBPRO. I have no problems with sprite images being blurred and neither having that shear and tear effect.
In Cobra, I have tested various time variables for the Pause() command....from 5 all the way up to 300 and in increments as well.
Also, I have set up a time frame limit algortihm where you have for example a variable called start. Then assign start to the Millisecs command. And then, within the game loop--> get the current Millisecs timer and then minus start and check ot see if its greater than or equla to 5 and all the way up to 10. Then later withing the endif condition of the time frame algorithm get a new or assign a new start timer and repeat.
However, after a few hours with this algorithm I still get blurry sprites and a shear and tear movemment effect. So, I think it has to be in the debugger being enabled in Cobra that has lost performance and a roughness effect.

I wish that the debugger was not enabled in the Cobra demo. There is already a watermark logo and also a nag screen that pops up time after time. Please, Mister Cobra Creator Graham disable the debugger in future or updated Cobra demo versions.

Thank you,
cheers,
power mousey

 

Comments