BadMasterUA Posted February 16, 2014 Share Posted February 16, 2014 Good afternoon. I want to know when documentation on the use of Lua in the engine? I read what I suggested Josh in steam (http://steamcommunity.com/sharedfiles/filedetails/?id=221869951#-1) but I still did not understand, looked lessons Aggror ( https://www.youtube.com/channel/UCv4v6y2NZCUazHrXnama37w ) but still did not understand. I read lessons Lua but I do not know how to use them with the engine. Please help, I'm very bad speak English and it is very difficult to understand is that there are now in the documentation and video of me than that it is clear. Even zhdya order that would write this, I used a Goole translator. P.s. Sorry if again made a stupid topic. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted February 16, 2014 Share Posted February 16, 2014 Dig reference , theres is code example in Lua at bottom. http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/entity/entitysetcolor-r162 And check all tutorials : http://www.leadwerks.com/werkspace/page/tutorials/ You have two other game demos : http://www.leadwerks.com/werkspace/files/file/492-bombkiller/ http://www.leadwerks.com/werkspace/files/file/475-darkness-awaits-project-31/ But begin simple rotating cube , than simple cube with character controller you move using keys and continue until you have all you need to make a game Quote Stop toying and make games Link to comment Share on other sites More sharing options...
BadMasterUA Posted February 16, 2014 Author Share Posted February 16, 2014 Dig reference , theres is code example in Lua at bottom. http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/entity/entitysetcolor-r162 And check all tutorials : http://www.leadwerks.com/werkspace/page/tutorials/ You have two other game demos : http://www.leadwerks.com/werkspace/files/file/492-bombkiller/ http://www.leadwerks.com/werkspace/files/file/475-darkness-awaits-project-31/ But begin simple rotating cube , than simple cube with character controller you move using keys and continue until you have all you need to make a game Thank you'll understand next weekend Quote Link to comment Share on other sites More sharing options...
BadMasterUA Posted February 17, 2014 Author Share Posted February 17, 2014 have someone else may have more information? Quote Link to comment Share on other sites More sharing options...
Rick Posted February 17, 2014 Share Posted February 17, 2014 I've been doing some Lua training with TeamViewer, but I'm not sure if the language issue will be a big obstacle or not between you and myself. If you're having to use google translator I fear it will be an issue. Quote Link to comment Share on other sites More sharing options...
BadMasterUA Posted February 17, 2014 Author Share Posted February 17, 2014 Well to be honest I was doing English, but without practice understand some things are forgotten but you can try Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 17, 2014 Share Posted February 17, 2014 Can you explain what it exactly is what you do not understand? can you define what you do understand? Quote Link to comment Share on other sites More sharing options...
BadMasterUA Posted February 17, 2014 Author Share Posted February 17, 2014 how to create and manage the game window, how to control and other Quote Link to comment Share on other sites More sharing options...
BadMasterUA Posted February 17, 2014 Author Share Posted February 17, 2014 the basic principles of programming in this engine. I chose it iza fact that in previous versions was to use C # okazalost that it is not in the third... Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted February 17, 2014 Share Posted February 17, 2014 for the beginnung just open leadwerks and load the demos and play around. open App.lua and try to manipulate some stuff. for window manipulation there is the window class http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/window/ Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
BadMasterUA Posted February 21, 2014 Author Share Posted February 21, 2014 LUA most horrible language. I spent the whole evening, and so did not understand how to do that would even be the screen was full size. Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted February 21, 2014 Share Posted February 21, 2014 maybe you should ask the right questions if you have problems to create a fullscreen its just one line to edit. if you have your first coding experiences with leadwerks and lua try some tutorials to learn how you use lua in leadwerks. Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
BadMasterUA Posted February 21, 2014 Author Share Posted February 21, 2014 I added one line. documentation does not suit me, there are no examples. simply a description of all Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted February 21, 2014 Share Posted February 21, 2014 there are: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/window/windowcreate-r462 if you read the text it should be clear how to create a fullscreen. Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
BadMasterUA Posted February 21, 2014 Author Share Posted February 21, 2014 i added self.window = Window::FullScreen Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted February 21, 2014 Share Posted February 21, 2014 you dont have understand the syntax. you cant create a window with just saying FULLSCREEN Syntax: static Window* Create(const std::string& title="Leadwerks", int x=0, int y=0, int width=1024, int height=768, int style=Titlebar) --Create a window fullscreen self.window=Window:Create(title, x, y, w, h, Window.FullScreen) like HD self.window=Window:Create('MYWINDOW', 0, 0, 1920, 1080, Window.FullScreen) parameters can also be variables. which type you can see in the syntax description Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
BadMasterUA Posted February 21, 2014 Author Share Posted February 21, 2014 finally turned self.window=Window:Create(self.title,0,0,1280,1024, Window.FullScreen) Quote 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.