|
Post by Rooster on Apr 20, 2004 13:37:02 GMT -5
In a few (or a few more) weeks Pekka Kana Minigame V2.0 will be released ! THe difference to the prototype is that it will use SPRITES instead of Images. It will be more flexible to programm,use and play. ;D
And FASTER ! ;D
But now you have to wait.......
|
|
quiz
Full Member
Posts: 63
|
Post by quiz on Apr 20, 2004 15:26:54 GMT -5
What?! id I hear right? Yes, I did! Yeah!!! ;D
|
|
|
Post by Centurion on Apr 21, 2004 15:04:45 GMT -5
Good to hear ;D
|
|
|
Post by Rooster on Apr 22, 2004 12:41:50 GMT -5
Progress :
Graphics : 95 % Editor : 95 % Game : 25 %
Last News : Graphics almost full working ; Editor almost ready ; first steps in game....
|
|
|
Post by Centurion on Apr 23, 2004 1:12:19 GMT -5
I have some expirience with Visual Basic so i can give some tips
|
|
|
Post by Rooster on Apr 24, 2004 4:47:08 GMT -5
Ok Centurion... why are the Sprites as slow as the Images ? I will give up the second Minigame and will continue working on the old as long as this Sprites don´t accelerate !
|
|
|
Post by Centurion on Apr 24, 2004 8:34:38 GMT -5
What function you use to place sprites ?
|
|
|
Post by Rooster on Apr 24, 2004 11:01:28 GMT -5
BIT_COPY (Background) BIT_AND (Mask) BIT_INVERT (Sprite)
|
|
|
Post by Centurion on Apr 24, 2004 12:05:49 GMT -5
Try this thing. Make background - a big picture with scenery bmp and bricks in it. (i think bricks don't change position in game). and start and exit button. And try 1) make this big picture invisible and autoredraw=true (let's call it tbig); when tick of timer begins place this tbig to big (visible one) and put sprites of every animal on it. On next tick this done again so tbig is clean copy of background and big is visible one what user see 2) when you put any object copy his background to temporary picture, and when it moves restore background ( i think you know how make transparent pixels )
I dunno what of this 2 will work faster. Also you can try to make background as one big picture where you moving little pictures of pekka and animals (not using copy function)
tip. If you make autoredraw true picture you got don't changes until you invoke refresh action or until you got doevents statement. So making that may also improve speed.
You can try to optimize code of your program.
I myself got about 15-20 fps on 800Mhz processor sometime.
|
|
|
Post by Centurion on Apr 24, 2004 12:10:05 GMT -5
all i said i meant to this function
Declare Function BitBlt Lib "GDI32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal XSrc As Long, ByVal YSrc As Long, ByVal dwRop As Long) As Long
|
|
|
Post by Rooster on Apr 24, 2004 12:32:28 GMT -5
Ah... i get 11 Frames per Second
|
|