zyzz1995 Posted December 3, 2016 Share Posted December 3, 2016 Hi, guys I am learning leadwerks to develop a game of my own, Lua is quite good, but now I need some information about using c++. I've searched web, just found very few topics about it, and they seems to be a little outdated, since the c++ project structure of leadwerks4 has changed a lot. So I do need some help about it, anyone can show me some very basic c++ tutorials of leadwerks, like how the c++ project organized, how can I make a project file for code::blocks and how can I compile my project without leadwerks editor. Any help will be appreciated. Quote Link to comment Share on other sites More sharing options...
reepblue Posted December 3, 2016 Share Posted December 3, 2016 Sadly most people on the Leadwerks forum use lua so C++ talk is kind of scarce. You'll need to purchase the Professional Edition DLC if you haven't already. First, join the beta branch. Leadwerks is going forward with Visual Studio 2017, and you can get the IDE here. Please note that Visual Studio is for Windows, and Code::Blocks is only for Linux. When you create a project or update an existing project, the project files for both IDE's will get cloned to your project. The code is set up to launch the engine, and call Main.lua/App.lua script. Again, Leadwerks at the moment is more focused on Lua, and I personally recommend only using C++ for program management (Time, level loading, etc) over game objects. (doors, swtiches) 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
zyzz1995 Posted December 3, 2016 Author Share Posted December 3, 2016 Sadly most people on the Leadwerks forum use lua so C++ talk is kind of scarce. You'll need to purchase the Professional Edition DLC if you haven't already. First, join the beta branch. Leadwerks is going forward with Visual Studio 2017, and you can get the IDE here. Please note that Visual Studio is for Windows, and Code::Blocks is only for Linux. When you create a project or update an existing project, the project files for both IDE's will get cloned to your project. The code is set up to launch the engine, and call Main.lua/App.lua script. Again, Leadwerks at the moment is more focused on Lua, and I personally recommend only using C++ for program management (Time, level loading, etc) over game objects. (doors, swtiches) thank you for your help, I found the project file in "Projects/Linux/<your_project_name>.cbp". And I agree that using Lua together with c++ is a very good ideal. using Lua for basic game logic and game objects can improve develop efficiency, cause Lua is much easier to learn and use. However in some cases, we have to use c++ to do heavy stuff(such as some AI algorithms requiring a lot of computation) or to integrate third-party libs. All these are the reasons why I ask for c++ tutorials. Again thank for your help. Quote Link to comment Share on other sites More sharing options...
zyzz1995 Posted December 3, 2016 Author Share Posted December 3, 2016 I just compile my first c++ project in code::blocks with gcc successfully. But you should turn on the 'std=c++11' flag before you compile, or you will get some errors. Quote Link to comment Share on other sites More sharing options...
reepblue Posted December 3, 2016 Share Posted December 3, 2016 I just compile my first c++ project in code::blocks with gcc successfully. But you should turn on the 'std=c++11' flag before you compile, or you will get some errors. Odd, Josh mentioned he did that already, Maybe it didn't get pushed? Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Charrua Posted December 3, 2016 Share Posted December 3, 2016 You can look here: http://leadwerks.wikidot.com 1 Quote Paren el mundo!, me quiero bajar. Link to comment Share on other sites More sharing options...
Recommended Posts
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.