Author Topic: GdiPlus last chance  (Read 7871 times)

0 Members and 1 Guest are viewing this topic.

JRS

  • Guest
Re: GdiPlus last chance
« Reply #30 on: March 18, 2013, 08:21:20 PM »
I noticed since the sound isn't providing a delay any longer after pressing a key, I was seeing a faster repeat rate than I would like. I added a 10 msec delay after a arrow key being pressed and it seems to have solved the issue for me.

Code: [Select]
 IF SW_Key(vk_right) = 0 THEN KeyR = 1
  IF SW_Key(vk_right)THEN
    KeyR = 0
    SW_Wait(10)
  END IF
  IF SW_Key(vk_left) = 0 THEN KeyL = 1
  IF SW_Key(vk_left) THEN
    KeyL = 0
    SW_Wait(10)
  END IF
  IF SW_Key(vk_up) = 0 THEN KeyU = 1
  IF SW_Key(vk_up) THEN
    KeyU = 0
    SW_Wait(10)
  END IF
  IF SW_Key(vk_down) = 0 THEN KeyD = 1
  IF SW_Key(vk_down) THEN
    KeyD = 0
    SW_Wait(10)
  END IF

@Peter: I would have never thought of using ScriptBasic for games like yours. Thanks for the cool library and putting up with me when things don't work.



« Last Edit: March 18, 2013, 09:16:44 PM by JRS »

Maxim

  • Guest
Re: GdiPlus last chance
« Reply #31 on: March 19, 2013, 01:14:04 AM »
:o
u use python + windows api for your program, uff i dont like python but
this look very cool... ;)
Thanks, but I only want say - gdiplusflat can be used for game programming, for example: tetris, lines, chess and other not massive count sprites or used only vector graphics with good effects. Also gdi+ have good distinction from gdi - internal mechanism like garbage collection, therefore memory use is optimal.
These is function GdipDisposeImage, but this was not suitable for me.

Editor from this game builder do data levels and glues with template game source, if you have possibility do OxygenBasic game template, well then this also can use OxygenBasic compiler.

Peter

  • Guest
Re: GdiPlus last chance
« Reply #32 on: March 19, 2013, 01:35:35 AM »
Hi John,

Quote
You will hold the Big Cheese

Oh man, is a long time ago when I played this game.
I had to make many attempts.
I solved some Levels and i needed 30 minutes for ten Levels.
 

X

JRS

  • Guest
Re: GdiPlus last chance
« Reply #33 on: March 19, 2013, 07:45:18 AM »
Quote
I solved some Levels and i needed 30 minutes for ten Levels.

I think that is how much time I spent on level 3 alone.  ;D

You are a true genius!

Thanks for the screen shots. It will give the other Big Cheese's the motivation to give Soko Mouse a try.