Difference between revisions of "MakeCoin"

From King Arthur's Gold Wiki
Jump to: navigation, search
 
Line 4: Line 4:
  
 
Coin style corresponds to the coin value:
 
Coin style corresponds to the coin value:
 +
 
Style = Value<br>
 
Style = Value<br>
0 = 1
+
0 = 1<br>
 
+
1 = 5<br>
1 = 5
+
2 = 10<br>
 
+
3 = 20<br>
2 = 10
+
4 = 50<br>
 
+
3 = 20
+
 
+
4 = 50
+
 
+
 
5 = 100
 
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>

Latest revision as of 11: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 )