Page 1 of 2

HGE-Wrapper Release 1.01

Posted: Fri Jul 04, 2008 7:29 pm
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

Posted: Fri Jul 04, 2008 7:47 pm
by Morty
Thanks, that's cool. :D

Posted: Fri Jul 04, 2008 8:28 pm
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.

Posted: Fri Jul 04, 2008 8:36 pm
by eddy
It's interesting.

But the tutorial 2 does not produce any sound.

Posted: Fri Jul 04, 2008 8:37 pm
by Rook Zimbabwe
This is true... the tutorial on Mneu buttons chas a click sound, but the zoom in 2 has nothing...

Posted: Fri Jul 04, 2008 11:11 pm
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

Posted: Fri Jul 04, 2008 11:13 pm
by byo
Well done. :D

Posted: Sat Jul 05, 2008 12:18 am
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.

Posted: Sat Jul 05, 2008 6:36 am
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.

Posted: Sat Jul 05, 2008 10:20 am
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

Posted: Sun Jul 06, 2008 10:05 am
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.

Posted: Sun Jul 06, 2008 10:12 pm
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...

Ellipse (circle addon)

Posted: Sat Jul 12, 2008 12:11 am
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).

Posted: Sat Jul 12, 2008 9:19 pm
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

Posted: Sat Jul 12, 2008 9:27 pm
by byo
hey, Mike.
You're doing a great job with this wrapper.
Keep up the good work. 8)