OLPCities/Sprites: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
<script language="Javascript" src="http://www.dmu.com/olpc/gamelib_sprites.js"></script> |
<script language="Javascript" src="http://www.dmu.com/olpc/gamelib_sprites.js"></script> |
||
</pre> |
</pre> |
||
Better to click this link and "save" the library at the same folder of the web page or put it at another folder at the same server and make a reference: |
|||
[http://www.dmu.com/olpc/gamelib_sprites.js gamelib_sprites.js ] |
[http://www.dmu.com/olpc/gamelib_sprites.js gamelib_sprites.js ] |
||
At the same folder the line would be: |
|||
<pre> |
|||
<script language="Javascript" src="gamelib_sprites.js"></script> |
|||
</pre> |
Revision as of 13:12, 20 September 2006
By definition the sprite has "frames" (vertical frames) and "animations" (horizontal frames). It can have only one frame so it will have 1 "frame" and 1 "animation" that are the same. To understand this better take a look at the many sprites at:
To use this library (this Class) add this line to the <HEAD> section of the web page of the Lot:
<script language="Javascript" src="http://www.dmu.com/olpc/gamelib_sprites.js"></script>
Better to click this link and "save" the library at the same folder of the web page or put it at another folder at the same server and make a reference:
At the same folder the line would be:
<script language="Javascript" src="gamelib_sprites.js"></script>