Difference between revisions of "MakeCoin"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Creates a coin with a given position on-screen, velocity and a style(???). </onlyinclude> <syntaxhighlight lang="cpp">void MakeCoin( Vec2f pos, Vec2f vel, int style...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
Creates a coin with a given position on-screen, velocity and a style(???).
+
Creates a coin with a given position on-screen, velocity and a style.
 
</onlyinclude>
 
</onlyinclude>
 +
 +
Coin style corresponds to the coin value:
 +
 +
Style = Value<br>
 +
0 = 1<br>
 +
1 = 5<br>
 +
2 = 10<br>
 +
3 = 20<br>
 +
4 = 50<br>
 +
5 = 100
 
<syntaxhighlight lang="cpp">void MakeCoin( Vec2f pos, Vec2f vel, int style )</syntaxhighlight>
 
<syntaxhighlight lang="cpp">void MakeCoin( Vec2f pos, Vec2f vel, int style )</syntaxhighlight>
  
 
[[Category:Scripting]]
 
[[Category:Scripting]]
 
[[Category:Global Functions]]
 
[[Category:Global Functions]]

Latest revision as of 10:38, 10 September 2012

Creates a coin with a given position on-screen, velocity and a style.


Coin style corresponds to the coin value:

Style = Value
0 = 1
1 = 5
2 = 10
3 = 20
4 = 50
5 = 100

void MakeCoin( Vec2f pos, Vec2f vel, int style )