gmSDL 0.1 (preview)

Published January 16, 2006
Advertisement
First: Part 1 of my GameMonkey Script article went up over the weekend. It's linked on the front page [smile] - you'll want to read it before the next one goes up as part 2 assumes you know the info in the first article.

Second: I released a 0.1 preview of gmSDL, my SDL binding for GameMonkey Script. If you hook this up to your application you add the abilities of SDL to your scripting environment, allowing you to use graphics and input (and eventually sound). This binding is pretty early, hence the journal release but is already usable. I'm hoping that I can bind the majority of SDL with this thing and provide a simple exe for people to 'just run it'. It's like a lower level of GMGX right now...
Previous Entry GMScript 1.24c
Next Entry ...oh noes
0 likes 4 comments

Comments

Rob Loach
GameMonkey is pretty awesome, I really should try it out one day.

As for the .NET bindings, why would you rather a port then P/Invoked functions? If we do port it, I'd wait until GM2.0.
January 16, 2006 04:45 AM
evolutional
Not really looked into the P/Invoked stuff - I might have to. I did try to write a wrapper in C++/CLI (or whatever it was) and I found it a pain because we needed to pass around instances of various classes too much. I'll look into P/Invoke now... Cheers!

I'm curious about GM2 - I hope Greg releases a preview soon!

EDIT: P/Invoke - now I remember why I never used it - GMScript doesn't work too well as a DLL right now - mainly because it's C++ based and everything is in classes. I have no idea how to use P/Invoke on the stuff from the DLL without writing a C/DLL wrapper first and THEN using P/Invoke - but that sounds like a ballache to me.
January 16, 2006 06:00 AM
Rob Loach
Ahhh, it might be better to do a full port instead anyway. Giving GM bindings to .NET and vise versa would be pretty cool. You could even then give it access to the Tao Framework making GM able to use OpenGL, SDL, GLFW, etc.

Speaking of whic, how are you going about making gmSDL?
January 16, 2006 10:37 AM
evolutional
gmSDL is just a straight binding to GMScript. Pretty easy once you know the GM API and how to bind types and functions. The binding is compiled into an exe (really simple, literally says "load this script and run until GM has no more threads running") and linked with SDL. I'm probably going to expand the simple exe to allow you to specify which scripts to load, etc. That is, after I've quashed some of the many outstanding TODO items for gmSDL.

I've got a simple pacman style level renderer knocked up in GM script with the SDL bindings right now - pretty cool [cool].
January 16, 2006 11:04 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement