I'm looking into scripting languages to embed in my game.
I've always assumed Lua was the best choice, but I've read some recent news about embedding V8 as was considering using it instead.
My question is two fold:
How does it compare with embedding Lua?
I like that v8 has a c++ embedding API. However Lua API has had lots of time to be refined (newer isn't always better and all that).
Note: At this point I'm not too concerned with which is better language or which library has better performance. I'm only asking about ease of embedding.
I'm developing some algorithms in Lua which are run mostly in Lua (few calls to C++) and I'm noticing a huge slowdown when I'm running them from my app rather than the default Lua interpreter. The script returns in about 11 seconds with the interpreter, and about 5+ minutes with my program. I don't think it is a problem with calling the C++ function, overruling that function with an empty function in the script has no noticeable effect for time. Both Lua and the program are compiled with Visual Studio 2010 (I created a new solution for Lua, with projects for both the interpreter and static
I'm using Irrlicht(C++) for a 3D engine, and it has a built in GUI system. The GUI events are something like this: switch(eventtype) case button_pressed: stuff case editbox_edited: stuff So far I have begun writing a system that allows me to create the GUIs with Lua scripts. It was very easy to make it so it creates the GUI controls from Lua, but I can not think of a good way to define what should happen when control events occur from Lua too. Here's an example of what I have so far: Lua: local button = create_button("button label
) Where should I place the messaging system for my game engine? Lua? C++? I'm tempted to just have C++ object to behave as servers, offering services to lua business logic. Things like physics system... language, in my case Lua. On the other hand I want to use a component based design for my entities, and here starts my questions: 1) Should I define my componentes in C++? If I do this in C++ won't I... to accomplish this? And which approach is better? Sorry for the late response James, I did go to sleep. I have prefered to create a new response becaue I'm going to write a somehow long text. I
I'm looking for a GUI library built on top of DirectX- preferably 9, but I can also do 11. I've looked at stuff like DXUT, but it's way too much for me- I'm only needing some UI controls which I would rather not write (and debug) myself, and their need to keep a C-compatible API is definitely a big downside. I'd rather look at UI libs that are designed to be integrated into an existing DirectX...? The purpose of not using DXUT was because using their API was worse than writing my own, and the documentation that starts with namespace::type::GetInstance() is not qualifying as "better than DXUT".
I am interfacing with the controller using the windows HID API. It seems that its output report length, as provided by the HID driver, is 0, which means I can't send it anything (e.g. make the rumble work). I've also noticed that the input report doesn't include the state of the big "X" button. Am I wrong about this? Is there a workaround, a better API, a workable filter driver that doesn't involve making .infs, etc...? As I need to support an arbitrary number of controllers (keyboards, mice, and anything for that matter), xinput isn't an option. Installing drivers is also not an option
on it in the same way, then do the same for joints; re-set all the velocities; and if it's a "move" rather than a "copy" delete the original one. I was wondering if someone has already written this code (and if so, was it actually a workable design or not?), or if Box2D has some affordance for doing this within its API which I am missing. ...I'm working on a platformer where I'd like to be able to move or copy bodies between multiple Box2D b2Worlds. The desire has cropped up three times now - moving objects between documents in my editor
created on the native side. So I feel that the timestamp is my best solution. If anyone has any better ideas, it would be great to hear them. ... that I have generated. I handle the threads by using turn-based concurrency. My problem is I worry about lag of the input events when there are fast moving objects, and I am curious to see if there are better ways of handling the input events then currently? My current idea, of handling the simple hit test of fast moving objects with user input, is that I try and use the timestamp generated
I'm looking for the most capable C++ model loading API. So far I've found tons of ply, obj, and other such file format loaders. But the libraries I've found tend to load just one model type, and this requires you to learn quite a few api interfaces? Is there One API To Load Them All, One API To Parse Them, One API To Bring Them All, And In the Vertex Buffer, Bind Them?
have no experience with C++ whatsoever nor DirectX. During my education most focus was placed on C# and Java. As I much prefer C# over Java. My skill set for C# isn't bad. As I recently graduated I wouldn't call myself a C# wizard however. The main questions I have are: Where do I start with my goal to create overlays for games? Does anyone here have any experience with it? How steep would...Greetings I've recently created some interest in Overlays for games. Examples can be Steam/Xfire which use these overlays ingame so the user can access their programs while being in a game. I love