Permalink
Browse files

Update src

  • Loading branch information...
blitz-research
blitz-research committed Apr 2, 2013
1 parent 9927f5e commit bbc0a1313636fe8f2a08e4d914b4ea1beaf067ef
View
@@ -480,7 +480,7 @@ Class Docs Implements LinkResolver
Method LoadTopic:Void( path:String )
- Local src:=LoadString( "src_docs/"+path+".txt" )
+ Local src:=LoadString( "src_docs/"+path+".txt" ).Replace( "~r","" )
If Not src
Print "Can't load: "+path
Return
@@ -493,14 +493,12 @@ Class Docs Implements LinkResolver
Print "Loading: "+path
- Local src:=LoadString("src_docs/_"+path+".txt")
+ Local src:=LoadString("src_docs/_"+path+".txt").Replace( "~r","" )
If Not src
Print "Can't load: "+path
Return
End
- src=src.Replace("~r","")
-
Local decl:Decl,scope:Decl,decls:=New Stack<Decl>
Local lines:=src.Split("~n"),block:="",buf:=New StringStack
@@ -591,7 +589,7 @@ Function Main()
ChangeDir "../../"
- Local docs:=New Docs(LoadString("page_template.html"))
+ Local docs:=New Docs( LoadString( "page_template.html" ).Replace( "~r","" ) )
docs.MakeDocs
@@ -100,7 +100,7 @@ Function Main()
End
</pre>
-The [[List.AddLast|AddLast]] method is called on the list to add an entry each time the user clicks the mouse.
+The [[monkey.list.List.AddLast|AddLast]] method is called on the list to add an entry each time the user clicks the mouse.
The OnRender method draws the list of monkeys by using the enumeration
@@ -47,11 +47,11 @@ With our game object defined we extend the basic Update and Render parts of the
The minimum requirements for an animating monkey application are an [[App]] implementing the methods:
-* [[App.OnCreate]] must call [[SetUpdateRate]]
+* [[mojo.app.App.OnCreate|OnCreate]] must call [[SetUpdateRate]]
-* [[App.OnUpdate]] can use mojo input commands
+* [[mojo.app.App.OnUpdate|OnUpdate]] can use mojo input commands
-* [[App.OnRender]] can use mojo drawing commands
+* [[mojo.app.App.OnRender|OnRender]] can use mojo drawing commands
The following draws an animated spiral shape using the [[DrawRect]] command.
@@ -137,4 +137,4 @@ CHAR_RIGHT
CHAR_DOWN
CHAR_INSERT
CHAR_DELETE
-</pre>
+</pre>
@@ -185,7 +185,7 @@ End If Then Else ElseIf EndIf While Wend Repeat Until Forever
For To Step Next Return Module Interface Implements Inline Throw
</pre>
-[[keywords|Language keywords]] are case insensitive - for example, you may use the keyword function, Function or indeed even fUNCTION (not recommended) to declare a function.
+[[Keywords|Language keywords]] are case insensitive - for example, you may use the keyword function, Function or indeed even fUNCTION (not recommended) to declare a function.
The keywords Module, Inline and Array are not currently used by the Monkey language but are reserved for future use.
@@ -1,7 +1,7 @@
# Tutorials
-Start with [[First Monkey steps]] and [[Drawing with images]], some nice beginner tutorials by Simon Armstrong.
+Start with [[First monkey steps]] and [[Drawing with images]], some nice beginner tutorials by Simon Armstrong.
[Learn Monkey](http://commondatastorage.googleapis.com/monkeycoder.co.nz/blitz-wiki/learnmonkey.pdf) with this friendly beginners guide by James Boyd (pdf).
@@ -47,7 +47,7 @@ path - file path of the sound to load.
## See also
-[[Sound]], [[Resource paths]], [[File format]]
+[[Sound]], [[Resource paths]], [[File formats]]
# Function PlaySound:Int(sound:Sound,channel:Int=0,flags:Int=0)
Oops, something went wrong.

0 comments on commit bbc0a13

Please sign in to comment.