Hi everybody,
I realize this is a *very* newbie question, so sorry about that, but
I'm new at cocos2d and new at Python and I'm a little lost. In the
events handling sample code (here:
http://www.cocos2d.org/doc/programming_guide/handling_events.py)
there is the following code:
class KeyDisplay(cocos.layer.Layer):
....
def__init__(self):
super( KeyDisplay, self).__init__()
self.text = cocos.text.Label(...)
...
My question is: where does KeyDisplay.text come from? It is clearly a
property of KeyDisplay, and I can see that it's a label, but where is
it defined? Here's where I've looked so far:
1) The class definition of KeyDisplay
2) The API reference document for cocos.layer.base_layers.Layer
3) base_layers.py
4) cocosnode.py because Layer inherits from CocosNode
5) scene.py because Layer inherits from Scene
I can't find it in any of these places. Where else can I look? Or,
maybe I'm just missing it?
There are many other properties like these and it's hard to get
started without knowing what exists.
Can someone help this poor lost neophyte?
Thanks,
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---