HGE-Wrapper Release 1.01

Developed or developing a new product in PureBasic? Tell the world about it.
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

HGE-Wrapper Release 1.01

Post by neotoma »

Release 1.01

#Fixed Problem with Resources / ResourceManager
#Fixed POLINK-Error with Vector
#Added Circle-Function
#Added DrawRect-Function
#Added InputField (for GUI)
#Added ButtonEx (for GUI)
#Added Splines/Path Functions
Special thanks James Poaq for his work and his permission to add
this to the HGEWrapper.
(For Info look at http://sexyfaq.jamespoag.com/SexyCurves.html#Docu )
#Added Example about embedding HGE in a Windows-Gui via PB.
#Added Example about this great Splines/Path addition

Look at the Releasenotes for more details.

Download at : http://www.noxe.de/downloads/HGEWrapper.zip

4th July - releasing at independence Day... ;-)

Mike
Morty
User
User
Posts: 35
Joined: Mon Mar 19, 2007 8:30 am
Location: Germany
Contact:

Post by Morty »

Thanks, that's cool. :D
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

You can use anything I post as long as I am given credit... :D

Now, my comment: What is being done about a MAP editor?

I have Wife 1.0 and I am restricted from fun programming a great deal of the time! SO

I have to work on my money making applications... Not things I would love.
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

It's interesting.

But the tutorial 2 does not produce any sound.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

This is true... the tutorial on Mneu buttons chas a click sound, but the zoom in 2 has nothing...
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

Post by neotoma »

eddy wrote:It's interesting.

But the tutorial 2 does not produce any sound.
Well, Sorry - i tested without Sound...

I forgot to make the Variable 'snd' shared in the Main()-Procedure.

Add at the top of the Main()-Procedure:

Code: Select all

Shared snd;
Mike
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

Well done. :D
Proud registered Purebasic user.
Because programming should be fun.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

a little snd fix for tutorial 2

Code: Select all

ProcedureCDLL boom()
   Shared x.f, y.f, dx.f, dy.f
   Shared snd
   pan.l=(x-400.0)/4.0
   pitch.f=(dx*dx+dy*dy)*0.0005+0.2;
   Static delay
   If (ElapsedMilliseconds()-delay)>20
      hge_Effect_PlayEx(snd, 100, pan, pitch, #False)
   EndIf
   delay=ElapsedMilliseconds()
EndProcedure
such a pity ...it's not crossplatform.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
zxtunes.com
Enthusiast
Enthusiast
Posts: 375
Joined: Wed Apr 23, 2008 7:51 am
Location: Saint-Petersburg, Russia
Contact:

Post by zxtunes.com »

Big thank neotoma!!

Splines is good idea!!

It very will help me with one of my games. 8)

small comments: use "quad" in tutorial 11 it bad idea, it hard understand and many text code, sprite (renderEX) simple.



Please create function like PB "Box(x, y, Width, Height [, Color])".

and small bug:
" hge_Gfx_Draw_Rect( x1.f, y1.f, x2.f, y2.f, color=#White)" white = $FFFFFF? This 100% transparency = is useless, best write $FFFFFFFF.
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

Post by neotoma »

zxtunes.com wrote:Big thank neotoma!!
Splines is good idea!!
It very will help me with one of my games. 8)
Thanks - and good to hear !
zxtunes.com wrote: small comments: use "quad" in tutorial 11 it bad idea, it hard understand and many text code, sprite (renderEX) simple.
Yes - you are right. I used a existing example as template...
zxtunes.com wrote: Please create function like PB "Box(x, y, Width, Height [, Color])".
hge_Gfx_Draw_Rect() - should do. Make a small Macro to mimic the Box-Command.
zxtunes.com wrote: and small bug:
" hge_Gfx_Draw_Rect( x1.f, y1.f, x2.f, y2.f, color=#White)" white = $FFFFFF? This 100% transparency = is useless, best write $FFFFFFFF.
Oh yes - i overseen that. thanks for mention it.

Mike
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Hi Mike

In your release note you mention:
If you use hge_gui_InputField_GetText(), you have to make a PeekS on the Result to get the String. (Ascii only !)
Is there a plan to support unicode in the future?

Regards

Michael.
untune
User
User
Posts: 56
Joined: Sun Jul 06, 2008 10:07 pm
Location: Bolton, UK

Post by untune »

Many thanks for this - I remember trying to get this running with PB a couple of years back to no avail... pretty much gave up on coding but my interests have been rekindled lately so I was just browsing around, I'm so glad you've made this wrapper and I hope you keep up the great work on it... I can experiment again :D

It's been so long I can't even remember my old password so I just had to create a new account :P

Nice to be reading about programming again :D (Doubt anyone remembers anyways but my old username was moonshine if memory serves)

edit: P.S. the physics example (tutorial 9) crashed when it hit 512 objects - not sure if it's a limitation of something...
User avatar
zxtunes.com
Enthusiast
Enthusiast
Posts: 375
Joined: Wed Apr 23, 2008 7:51 am
Location: Saint-Petersburg, Russia
Contact:

Ellipse (circle addon)

Post by zxtunes.com »

neotoma i suggest to make the operator for an ellipse, it is useful and at the same time I think to you it will be not complex to realize it (to add parameter w-radius and h-radius).
neotoma
User
User
Posts: 84
Joined: Sun Dec 14, 2003 6:38 pm
Location: Germany, Mechernich
Contact:

Post by neotoma »

@untune
nice to hear - such comment are the answer to the question why i do a wrapper instead write my own thing in c++.

The limitation is not in the wrapper - maybe in Box3D. I will have a look.

@zxtunes.com
noticed - good idea.

Mike
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

hey, Mike.
You're doing a great job with this wrapper.
Keep up the good work. 8)
Proud registered Purebasic user.
Because programming should be fun.
Post Reply