OLPCities/Animated objects

From OLPC
< OLPCities
Revision as of 08:47, 20 September 2006 by Adamascj (talk | contribs)
Jump to: navigation, search

An "animated object" has many frames in one or both axes. We call vertical frames: "frames" and horizontal frames:"animations".

Fountain

Take a look of this object working at this LOT. It's a complement of one of the 3D objects

Fonte.gif



























Cards

Take a look of this object working at this LOT.

Hello.gif
Alo.gif


<html>
<head>
<script language="Javascript" src="../olpc/gamelib_core.js"></script>
<script language="Javascript" src="../olpc/gamelib_sprites.js"></script>
<script language="Javascript" src="../olpc/gamelib_keyboard.js"></script>
<script language="Javascript" src="../olpc/gamelib_mouse.js"></script>
<script language="Javascript" src="../olpc/gamelib_interface.js"></script>
<script language="Javascript">
var cdir=0;
var upkey=null;			// this will trap the "UP" cursor key
var downkey=null;		// this will trap the "DOWN" cursor key
var rightkey=null;			 
var leftkey=null;