Page 1 of 1

Happy Birthday Gift!!

Posted: Mon Feb 13, 2006 4:17 pm
by newart
I make gift for Happy Birthday of my girlfriend - Alexandra aka VitaminC =)

http://www.n-discovery.spb.ru/pc/vitagift_eng.rar (750kb)

Others my gift & intro on purebasic: http://www.n-discovery.spb.ru/pc.php

Image

Image

Posted: Mon Feb 13, 2006 5:17 pm
by Num3
Ehehehe

Happy birthday!

Nice program! Funky graphics!!!

Posted: Mon Feb 13, 2006 6:59 pm
by Comtois
Bon anniversaire VitaminC :P

Posted: Wed Feb 15, 2006 11:06 am
by newart
Somebody knows why after start Gift the window becomes not active and the cursor disappears?
It can be avoided?
Here a source code:

Code: Select all

If OpenWindow(0,0,0,#scrw,#scrh,#PB_Window_ScreenCentered, title$) = 0
   MessageBox_ (0,"Could not open Window", title$, #MB_ICONINFORMATION|#MB_OK): End                                                                                     
EndIf
                          
If OpenWindowedScreen(WindowID(),0,0,#scrw,#scrh,0,0,0) = 0
   MessageBox_ (0,"Could not open 800x600x"+Str(#scrd)+"screen", title$, #MB_ICONINFORMATION|#MB_OK) : End                                                                                     
EndIf
          
  
SetFrameRate(#frate) 
 
Gosub loadsprite

PlayModule(0) 
ModuleVolume(0,100)


Repeat
FlipBuffers():ExamineKeyboard():ExamineMouse()

Event = WindowEvent()         
If Event=#PB_Event_CloseWindow: fade = 1: EndIf                                     
ETC...

Posted: Wed Feb 15, 2006 10:52 pm
by Comtois
for the cursor dont use ExamineMouse()
if you need mouse

Code: Select all

 Event = WindowEvent()
       
 If Event = #WM_LBUTTONDOWN
 Debug "Down"
ElseIf Event = #WM_LBUTTONUP 
Debug "Up"
endif

Posted: Thu Feb 16, 2006 12:17 pm
by newart
Comtois wrote:for the cursor dont use ExamineMouse()
if you need mouse
Big thanks!! :lol:

But the window on former loses focus. :cry:

Posted: Sat Feb 18, 2006 9:51 pm
by newart
Really nobody knows in what the reason (window lost focus)?
:cry: