Difference between revisions of "MakeCoin"
From King Arthur's Gold Wiki
Shadlington (Talk | contribs) (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...") |
Shadlington (Talk | contribs) |
||
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 | ||
+ | |||
+ | 0 = 1 | ||
+ | |||
+ | 1 = 5 | ||
+ | |||
+ | 2 = 10 | ||
+ | |||
+ | 3 = 20 | ||
+ | |||
+ | 4 = 50 | ||
+ | |||
+ | 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]] |
Revision as of 10:37, 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 )