http://www.oxeyegames.com/wiki/index.php?title=WorldToScreenCoordinates_(Harvest)&feed=atom&action=history
WorldToScreenCoordinates (Harvest) - Revision history
2024-03-29T09:10:21Z
Revision history for this page on the wiki
MediaWiki 1.16.0
http://www.oxeyegames.com/wiki/index.php?title=WorldToScreenCoordinates_(Harvest)&diff=227&oldid=prev
166 MMX at 16:15, 2 December 2009
2009-12-02T16:15:14Z
<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 16:15, 2 December 2009</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 15:</td>
<td colspan="2" class="diff-lineno">Line 15:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>harvest.drawText("I'm here", x, y - 15, 1)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>harvest.drawText("I'm here", x, y - 15, 1)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">=== Resources ===</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]</ins></div></td></tr>
</table>
166 MMX
http://www.oxeyegames.com/wiki/index.php?title=WorldToScreenCoordinates_(Harvest)&diff=199&oldid=prev
166 MMX: Created page with '{{HarvestMethod | screenX, screenY = worldToScreenCoordinates(worldX, worldY) | Converts world coordinates to screen coordinates. | {{MethodParam|worldX|Number|The x coordin...'
2009-12-01T22:51:33Z
<p>Created page with '{{HarvestMethod | screenX, screenY = worldToScreenCoordinates(worldX, worldY) | Converts world coordinates to screen coordinates. | {{MethodParam|worldX|Number|The x coordin...'</p>
<p><b>New page</b></p><div>{{HarvestMethod<br />
|<br />
screenX, screenY &#x3d; worldToScreenCoordinates(worldX, worldY)<br />
|<br />
Converts world coordinates to screen coordinates.<br />
|<br />
{{MethodParam|worldX|Number|The x coordinate of a point on the world.}}<br />
{{MethodParam|worldY|Number|The y coordinate of a point on the world.}}<br />
|<br />
Returns two values, screenX and screenY. Both are of the type Number.<br />
}}<br />
=== Example ===<br />
<pre><br />
local x,y = harvest.worldToScreenCoordinates(buildingX, buildingY)<br />
harvest.drawText("I'm here", x, y - 15, 1)<br />
</pre></div>
166 MMX