Import mojo Class MyGame Extends App Method OnCreate() SetUpdateRate(1) ' create a array with array with the character codes of each ' character in a string. Local a:Int[] Local b:String="abcdefghijklmnopqrstuvwxyz" a = b.ToChars() Local deb:String For Local i=0 Until a.Length deb+=b[i..i+1]+"="+a[i]+"," Next DebugLog deb End Method Method OnUpdate() End Method Method OnRender() End Method End Class Function Main() New MyGame() End Function
Artificial intelligence/templates/examples/rts/rpg/strategy ect. in MonkeyX/CerberusX language. You can download the free version of MonkeyX from itch.io or Cerberus-x.com The Flash applets will stop working in around 2020.
Monday, December 19, 2016
Monkey-X - Beginners - String - ToChars - code example
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.