Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
L÷VE for Lua Game Programming

You're reading from   L÷VE for Lua Game Programming If you want to create 2D games for Windows, Linux, and OS X, this guide to the L?ñVE framework is a must. Written for hobbyists and professionals, it will help you leverage Lua for fast and easy game development.

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781782161608
Length 106 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
AKINLAJA DAMILARE JOSHUA AKINLAJA DAMILARE JOSHUA
Author Profile Icon AKINLAJA DAMILARE JOSHUA
AKINLAJA DAMILARE JOSHUA
Arrow right icon
View More author details
Toc

Getting started with Tiled


Get a copy of Tiled from http://www.mapeditor.org/ and run the Tiled program because before we go ahead; you need to check that your settings are correct (navigate to Tiled | Preferences). I recommend the Base64 encoding, because it produces a smaller file; this makes your game load faster:

Now open a new file in Tiled, select Orthogonal, and choose your preferred width and height for the tile size. We'll be using the 16 x 16 tile size in this example. The level design will be scaled to screen while playing:

Load your tile set by navigating to Tiled | Map | New Tileset and selecting your preferred tile set (note that your sprites and tiles must be in the root folder of our game). Select and place the respective tiles in the grids while designing the game level:

Because we now have our tile set ready, select and place each tile in the respective grid till we form the design we imagined.

The following screenshot shows the surfaces that we would want our player or any...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime