Archives for September 2012

Custom Cursors in Love2D

Posted on September 20, 2012 in Tutorials

When making a game in LÖVE, you'll probably end up needing to customise the mouse cursor. As I recently had to do just that, I thought I'd make a quick tutorial on it. If you want an example cursor, here's the crosshair I'm using in a game right now. Now, all of what we need is contained within the love.mouse module. The first step is to hide the mouse with love.mouse.setVisible. You'll probably want to...

Read more...

Lua for Programmers Part 4: Tips and Tricks

Posted on September 09, 2012 in Tutorials

If you haven't read the previous parts (one, two and three), then I'd highly recommend doing so. For reference, here's a list of the parts in this series: Part 1: Language Essentials, covers fundamental syntax and concepts such as operators, loops, and functions. Part 2: Data and Standard Libraries, covers Lua's built-in data types and some of the standard libraries. Part 3: More Advanced Concepts, deals with things like variable scope, advanced functions, and file...

Read more...

Lua for Programmers Part 3: More Advanced Concepts

Posted on September 07, 2012 in Tutorials

If you haven't read part one and two already, I'd highly recommend doing so. For reference, here's a list of the parts in this series: Part 1: Language Essentials, covers fundamental syntax and concepts such as operators, loops, and functions. Part 2: Data and Standard Libraries, covers Lua's built-in data types and some of the standard libraries. Part 3: More Advanced Concepts, the current part; deals with things like variable scope, advanced functions, and file...

Read more...