Blog

  • Lua Classes and Packages in Corona

    Lua has some diverse usage, from AI, robotics, 3D shaders, game extensions, or writing games. As such there are a variety of ways to do OOP in Corona. Specifically:

    • Classes
    • Packages
    • Access Modifiers/Namespaces/Encapsulation
    • Inheritance
    • Polymorphism
    • “dealing” with scope

    Below, I’ll show you how I do classes and packages in Corona SDK. I cover how to extend core Corona classes, what you can/can’t do, and how to implement classes, packages, & inheritance in Lua. I also briefly cover some of the OOP alternatives and compare/contrast why I chose t3h closure way.

    I do not cover, nor use metatables. If you can live without prototype in JavaScript, you’ll do just fine using only closures in Lua. I’ll give you some links at the bottom for using metatables to accomplish OOP in Lua.

    (more…)

  • Adding Achievements to Your Corona Game or App Using OpenFeint & Papaya Mobile

    Adding Achievements to Your Corona Game or App Using OpenFeint & Papaya Mobile

    Introduction

    Achievements within games can help give incentives for players to learn how to play, give them confirmation they’re on the right track, and reward their accomplishments. They can also reward experimental behavior, create engagement for challenging or secret achievements, and can even create games within games. To paraphrase Jesse Schell, you can create the meta game, experiences that exist on top of other experiences.

    (more…)

  • Five Lies They Tell You in Software

    The following are 5 things I wish someone had told me back in January of 2000.

    1. The User is the Most Important Thing
    2. If You Don’t Evolve, You’ll Die
    3. Using OOP, Design Patterns, Frameworks, and TDD with the Right IDE Will Solve All Your Problems
    4. You Can Code Something Right The First Time
    5. There is a Clearly Defined Career Path in Programming

    (more…)