SlipperyBrick Posted February 11, 2014 Share Posted February 11, 2014 Hi Guys, I want to work on a small project in Leadwerks for a 2D game. I was wondering how I would start this in the editor and how to script this (I have the Steam version of Leadwerks) Quote Link to comment Share on other sites More sharing options...
Rick Posted February 11, 2014 Share Posted February 11, 2014 LE is really a 3D engine. It does have some 2D functions though so if you wanted you could make a 2D game with it Your drawing commands: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/context/ The most lacking functionality would be drawing a sub image from a texture file. You could put in a pivot into your scene, and attach an entity script to it. Then you can use PostRender(context) to draw all your stuff. You could also do all the drawing in App:Loop() after the world is drawn. 1 Quote Link to comment Share on other sites More sharing options...
YouGroove Posted February 11, 2014 Share Posted February 11, 2014 No Leadwerks is a 3D engine. It can display 2D stuff , but it's mainly for HUD purposes and otehr similar stuff. --------------------- There are different type of 2D games : Pure 2D with 2D tiles and 2D collisions is specific (not LE3 features) In this case this means lot fo 2D specific tools , specific optimized 2D collision system, tile level editor and optimized 2D drawing and features.You should better look at some product dedicaced to 2D like Construct 2 , Multi Media Fusion stuff ,or Unity and it's plugins. -------------- With LE3 what you can do is a mix of 2D and 3D 2D Animated Characters using 3D planes : 2D draw level stuff in game using 3D planes, below houses are not 3D models but textured 3D planes. You will need a 3D floor and walls as LE3 uses only 3D collisions. For houses using a 3D plane you will have to place an invisible 3D BSP cube behind for collision. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
gamecreator Posted February 11, 2014 Share Posted February 11, 2014 The most lacking functionality would be drawing a sub image from a texture file. I think this can help with that... http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/texture/texturesetpixels-r338 Quote Link to comment Share on other sites More sharing options...
SlipperyBrick Posted February 11, 2014 Author Share Posted February 11, 2014 Cheers Rick! I will check out these commands and learn them. In regards to what YouGroove was saying, I would need to make 3D planes in LE and then put my 2D textures on those 3D planes? Would I still need to do UV mapping for these 3D planes or could I simply use the LE brushes? I will be using Black Ink to draw my images (I feel most comfortable in there doing digital art). Gamecreator, I have the Steam version of LE so unfortunately I cannot code in C++ Is there a way to do a similar command with similar or even the same effect as the 'Texture::SetPixels' command for C++? I would like to also know if in the near future Josh plans on releasing an update for us Steam users to have the ability to code in C++ aswell, I would love to see that! Quote Link to comment Share on other sites More sharing options...
gamecreator Posted February 12, 2014 Share Posted February 12, 2014 Ah, sorry; I didn't see that the function didn't have a Lua option. I don't know an alternative. And yeah, seems like a lot of people are looking forward to C++. Josh has been regularly working on the Linux release but there's no ETA on it or the Windows version. 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.