Dienstag, 18. Dezember 2012

OOP (Object Oriented Programming) with lua in Corona SDK

Android app on Google Play
Hey,

I stumbled over a OOP test that I've made while learning the concepts of lua. I've created a class game and tried to use OOP ideas. That for example means that I could create several unique game instaces that do not share the same variable values. The example is pretty simple, but it may give you an insight in how lua can be used in a OOP manner:

For further details, check the lua documentation: http://www.lua.org/pil/16.html



The code is not perfect since it was just for testing purposes, but I think it shows quite comprehensively how lua can be in a OOP way

best wishes,
Moccagame


Android app on Google Play

Keine Kommentare:

Kommentar veröffentlichen