FB HGEWrapper 2D Game Engine
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.)
Check it out here: SECTOR SHOCK
(If you have trouble opening 320x240 full screen, edit settings.ini.)
-
- Posts: 2428
- Joined: Jul 19, 2006 19:17
- Location: Sunnyvale, CA
- Contact:
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 ...
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 ...
-
- Posts: 7
- Joined: May 05, 2006 7:04
- Contact:
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 ?
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 ?
-
- Posts: 7
- Joined: May 05, 2006 7:04
- Contact:
loriendesign
Good luck...
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)
-
- Posts: 7
- Joined: May 05, 2006 7:04
- Contact:
Corrected bugs...
HGEWrapper Static Lib for FreeBasic http://dalex.ucoz.ru/load/4-1-0-6
Please test...
Thank you ... Good luck ...
HGEWrapper Static Lib for FreeBasic http://dalex.ucoz.ru/load/4-1-0-6
Please test...
Thank you ... Good luck ...
-
- Posts: 55
- Joined: Sep 21, 2005 22:19
Has anyone had luck with the resource manager?
I tried this:
with my resource file looking like this:
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
I tried this:
Code: Select all
dim shared as long myres,fnt
[...]
myres=hge_resmgr("resource.res")
fnt=hge_resmgr_getfont("font1")
Code: Select all
Font font1
{
filename=font1.fnt
}
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
ups...
New code HGEWrapper.bi-hge_ResourceManager
New code for speedlemon ...
speedlemon
thank you...
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
'}
Code: Select all
Dim Shared As Long myres,fnt
[...]
myres=hge_resmgr("resource.res")
fnt=hge_resmgr_getfont(myres,"font1")
thank you...