Import mojo
Global Dictionary : StringMap<StringMap<StringObject>> = New StringMap<StringMap<StringObject>>
Global SubDictionary : StringMap<StringObject> = New StringMap<StringObject>
Class myTest Extends App
Method OnCreate()
SetUpdateRate( 60 )
Dictionary.Set( "Cube", SubDictionary )
SubDictionary.Set( "X", "150" )
SubDictionary.Set( "Y", "100" )
End Method
Method OnUpdate()
End Method
Method OnRender()
Cls 0, 0, 0
SetColor 255, 255, 255
Local this : StringMap<StringObject> = Dictionary.Get( "Cube" )
DrawText this.Get( "X" ), 10, 10
DrawText this.Get( "Y" ), 10, 25
End Method
End Class
Function Main()
New myTest
End Function
|