FB HGEWrapper 2D Game Engine

User contributed sources that have become inactive, deprecated, or generally unusable. But ... we don't really want to throw them away either.
Ryan
Posts: 695
Joined: Jun 10, 2005 2:13
Location: Louisville, KY
Contact:

Post by Ryan »

Hey Dalex, just wanted to say thanks for introducing me to HGE! I was able to create a wonderful game that looks nicer than my normal creations and has some cool particle effects. I couldn't have done it without your work porting HGE to FB.

Check it out here: SECTOR SHOCK

(If you have trouble opening 320x240 full screen, edit settings.ini.)
KristopherWindsor
Posts: 2428
Joined: Jul 19, 2006 19:17
Location: Sunnyvale, CA
Contact:

Post by KristopherWindsor »

Dalex, sorry I forgot to check this thread sooner.

That's great news on the license; I wonder why this software is not more popular? :-)

And yes, I did know why my program crashed. ;-)
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Post by Dalex »

Ryan Super....good luck
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Post by Dalex »

Small news (source code)
Site of the project...
http://dalex.ucoz.ru/
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Post by Dalex »

New architecture of the project(without dll)...
HGEWrapper Static Lib for FreeBasic (tutorials,source code,wxDevC++ project)

http://dalex.ucoz.ru/load/4-1-0-6

Please test...
Thank you ... Good luck ...
badmrbox
Posts: 664
Joined: Oct 27, 2005 14:40
Location: Sweden
Contact:

Post by badmrbox »

I just downloaded and tested the tutorial exe's. This looks sweet.
loriendesign
Posts: 7
Joined: May 05, 2006 7:04
Contact:

Post by loriendesign »

Exellent work :-) But exe file is linked with bass.dll even if code is set "hge_System_SetStateInt(HGE_USESOUND,0)"

Is it possible the bass.dll not be linked with exe ? I wish to use other audio not bass.dll.

Sorry for my bad English :-(

По руский: Можно ли создать и другая версия в которой юзать только HGE и ехе файл не бил привязан к bass.dll т.е. ехе работало без наличии bass.dll, а если возможно подключи для звука вполне свободний для коммерсиалного изпользования библиотеку - либо звук в фрий бейсик, либо OpenAL, Audiere либо Squall ?
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Post by Dalex »

loriendesign wrote:Exellent work :-) But exe file is linked with bass.dll even if code is set "hge_System_SetStateInt(HGE_USESOUND,0)"

Is it possible the bass.dll not be linked with exe ? I wish to use other audio not bass.dll.
Ok... I think ...
loriendesign
Posts: 7
Joined: May 05, 2006 7:04
Contact:

Post by loriendesign »

Thank you very much. I will look eagerly forward to the future release.
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Post by Dalex »

loriendesign
Exellent work :-) But exe file is linked with bass.dll even if code is set "hge_System_SetStateInt(HGE_USESOUND,0)"

Code: Select all

hge_System_SetStateBool(HGE_USESOUND,0)
Good luck...
duke4e
Posts: 717
Joined: Dec 04, 2005 0:16
Location: Varazdin, Croatia, Europe
Contact:

Post by duke4e »

this didn't work in the past. don't know about the latest update...
loriendesign
Posts: 7
Joined: May 05, 2006 7:04
Contact:

Post by loriendesign »

this didn't work in the past. don't know about the latest update...
hge_System_SetStateBool(HGE_USESOUND,0)

Thank you very much. With last update it's work for me. Dalex thank you for fast respond.
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Post by Dalex »

Corrected bugs...
HGEWrapper Static Lib for FreeBasic http://dalex.ucoz.ru/load/4-1-0-6

Please test...
Thank you ... Good luck ...
speedlemon
Posts: 55
Joined: Sep 21, 2005 22:19

Post by speedlemon »

Has anyone had luck with the resource manager?

I tried this:

Code: Select all

dim shared as long myres,fnt
[...]
myres=hge_resmgr("resource.res")
fnt=hge_resmgr_getfont("font1")
with my resource file looking like this:

Code: Select all

Font font1
{
	filename=font1.fnt
}
Everything compiles OK and all the files are there, but I get "Program has encountered error and needs to close."

If no one has used it successfully, I suspect that there is an error with the wrapper. In all the functions (hge_resmgr_getWhatever), there is no argument to specify what manager I want to use (so then what would the purpose of being able to create multiple managers be?). That is just a guess.

Thanks
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Post by Dalex »

ups...


New code HGEWrapper.bi-hge_ResourceManager

Code: Select all

'{ hge_ResourceManager }
Declare Function hge_ResMgr                   Cdecl Alias  "hge_ResMgr" (ByVal As ZString ptr)As long
Declare Sub      hge_ResMgr_ChangeScript      Cdecl Alias  "hge_ResMgr_ChangeScript" (ByVal As Long,ByVal As ZString ptr)
Declare Function hge_ResMgr_Precache          Cdecl Alias  "hge_ResMgr_Precache" (ByVal As Long,ByVal As integer)As integer
Declare Sub      hge_ResMgr_Purge             Cdecl Alias  "hge_ResMgr_Purge" (ByVal As Long,ByVal As integer)
Declare Function hge_ResMgr_GetResource       Cdecl Alias  "hge_ResMgr_GetResource" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetTexture        Cdecl Alias  "hge_ResMgr_GetTexture" (ByVal As Long,ByVal As ZString ptr)As Dword
Declare Function hge_ResMgr_GetEffect         Cdecl Alias  "hge_ResMgr_GetEffect" (ByVal As Long,ByVal As ZString ptr)As Dword
Declare Function hge_ResMgr_GetMusic          Cdecl Alias  "hge_ResMgr_GetMusic" (ByVal As Long,ByVal As ZString ptr)As Dword
Declare Function hge_ResMgr_GetStream         Cdecl Alias  "hge_ResMgr_GetStream" (ByVal As Long,ByVal As ZString ptr)As Dword
Declare Function hge_ResMgr_GetTarget         Cdecl Alias  "hge_ResMgr_GetTarget" (ByVal As Long,ByVal As ZString ptr)As Dword
Declare Function hge_ResMgr_GetSprite         Cdecl Alias  "hge_ResMgr_GetSprite" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetAnimation      Cdecl Alias  "hge_ResMgr_GetAnimation" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetFont           Cdecl Alias  "hge_ResMgr_GetFont" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetParticleSystem Cdecl Alias  "hge_ResMgr_GetParticleSystem" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetDistortionMesh Cdecl Alias  "hge_ResMgr_GetDistortionMesh" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetStringTable    Cdecl Alias  "hge_ResMgr_GetStringTable" (ByVal As Long,ByVal As ZString ptr)As long
'}
New code for speedlemon ...

Code: Select all

Dim Shared As Long myres,fnt
[...]
myres=hge_resmgr("resource.res")
fnt=hge_resmgr_getfont(myres,"font1")
speedlemon
thank you...
Post Reply