Re: [xmoto-dev] Fwd: layers |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/xmoto-dev Archives
]
- To: xmoto-dev@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [xmoto-dev] Fwd: layers
- From: "me i am" <e.gorse@xxxxxxxxx>
- Date: Thu, 22 Feb 2007 14:27:44 +0100
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=atB/aFOeHOR15nMhfPIcYTVT/Eti4DeF5YIqUQiG2fOhIEKL2KggE+YKUEtJe2pee5adA3FZ3nYyhb+0hRYIvjPjzyYPKFAuq4tu0NAuC5hJDSlFD884nBGuevVcMOVTbenad+SQ3yIJUdUdPM/krVN9SfWcp4lCv8KThtPjYLg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=irnRDprE64/yNvqPDHpYuTy1sApBoQASCJ29TymWbqCt0rPBvFGcvT49lBC3OJICjOab4GTQI5/tfpm+dSlw/AXTKqOvpNLeTpHEZslt0/snvbnaOoSjl0nNbxglnys3tCxL9zfv5Y89WTfVh3WIDPyBZGb7AKupsYQfVe/0BBM=
i've just finished to develop it.
now you can put differents x and y offset for a layer.
(example of an .lvl file:
<layeroffsets>
<layeroffset x="0.2" y="1.0"/>
<layeroffset x="0.3" y="1.0"/>
<layeroffset x="0.5" y="1.0"/>
<layeroffset x="0.7" y="1.0"/>
<layeroffset x="0.9" y="1.0"/>
<layeroffset x="1.9" y="1.0"/>
</layeroffsets>
In this example, there's only x scrolling.)
i've also correct the zoom, so layers don't get ouside of the level
anymore when you zoom out.
i'll commit this evening.
(strawberries which becomes bigger while zooming out is not a bug,
it's coded like that on purpose)
On 2/22/07, Jens <mothbox@xxxxxxx> wrote:
LayerBug?
About the frontlayer: is it possible, that it is decreased in x-size,
but enlarged in y-size, when you increase its value ?
gaivota