class - Calling a Lua function from within an object instance -
I think that creates a scene and within the visual function it creates a deck object and a function is wonGame A main lua file () that checks the play when the game has won My question - I need deck class How can I call the function () within the file? For example, I have a function deck class You can always try and apply a representative to ex: Basically this means you have a property in the 'deck' which combines back into 'view' when you make your deck you will decide something like < Then you can just say in the deck
local musician = ("composer") function view:. "Deck" myDeck = deck: New () function wonGame () print ("You have won the game") and end
function checkCondition (e) if (somethingTrue) wonGame () --This main file should be the end function at the end >
Deck.SceneDelegate = self
View the scene. Von game ()
Comments
Post a Comment