Jump to content

C++ Tutorial for Leadwerks 4


ivanodintsoff
 Share

Recommended Posts

Hi,

 

First of all, I already did a search for what I'm going to ask on the forums/Google and had no luck.

 

So, I have the Professional Edition of Leadwerks and want to start using C++ for my games, but looks like every version of Leadwerks the code and the place for the cpp files changes. Now, looks like it doesn't include the project files for VS2013. When I create a new project I have 2 cpp and a header file on a "Source" folder under the project folder.

 

I just want a starting point for working with these files, how is the lifecycle, what libraries to use, etc. But every tutorial that I see is different from what I actually have.

 

I want to make some features like split-screen multiplayer, dynamic map generation and UI. Is that possible with just Lua?

 

Thanks for any help to get started

 

- Ivan

Link to comment
Share on other sites

Yes, C++ hasn't been given much love these days it seems, but to answer your question, yes you can do what you want in Lua except, the multiplayer part. You'll need to get into C++ for that. at this time. If you find a Lua networking library you may be able to load that from Lua. I generally just use C++.

Link to comment
Share on other sites

I want to make some features like split-screen multiplayer, dynamic map generation and UI. Is that possible with just Lua?

 

Split-screen local multiplayer can be done with lua using the render target option on two (or more) cameras. There is also Buffer class but for some reason it's never been documented so I never bothered with it. But as Rick said you would need a library or c++ to do remote multiplayer.

 

Dynamic map generation can be done with lua, typically you start with with a few generic pieces, load them and place them based on whatever algorithm you like. I think someone added something to the workshop about procedural map generation, never tried it, dunno how far they got. http://steamcommunity.com/sharedfiles/filedetails/?id=634318904

 

UI is easily done in lua, I built this a while back, http://steamcommunity.com/sharedfiles/filedetails/?id=653673604

Link to comment
Share on other sites

The c++ tutorials by aggror still work with le 4 if you can find them.Otherwise you can start with app.cpp in the source folder and take a look at the c++ api examples.

I have aggrors tutorials in a zip file but can't remember where I got them.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

Does not seem to be available. Aggrors actual code is more usefull than the videos minus the code

I think it would be good to have at least a first person example in c++ and it could probably be written in less than one hour.

c++ userers may be in the minority but should not be ignored.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

Thank you all for the replies, much appreciated!

 

 

Aggrors videos looks unavailable. Roland video is working, I'm gonna watch them, thanks! Funny that I did a search in YouTube but didn't find those.

 

Split-screen local multiplayer can be done with lua using the render target option on two (or more) cameras. There is also Buffer class but for some reason it's never been documented so I never bothered with it. But as Rick said you would need a library or c++ to do remote multiplayer.

 

Dynamic map generation can be done with lua, typically you start with with a few generic pieces, load them and place them based on whatever algorithm you like. I think someone added something to the workshop about procedural map generation, never tried it, dunno how far they got. http://steamcommunity.com/sharedfiles/filedetails/?id=634318904

 

UI is easily done in lua, I built this a while back, http://steamcommunity.com/sharedfiles/filedetails/?id=653673604

 

Thanks for the reference links, I will check them out. I found something related to split-screen Lua here: http://leadwerks.wikidot.com/wiki:render-to-texture-security-cam

 

Yes, C++ hasn't been given much love these days it seems

 

It's sad because I see much potential in this engine using C++. I know it's a big project in progress, but maybe some official documentation, at least some basics to get your feet wet, would be nice.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...