GroundInit Actionscript
Table of contents | Previous document | Download GroundInit.as | SWF!T Homepage RCSfile: GroundInit.as,v Revision: 1.1 Date: 2003/04/20 13:13:18
Copyright 2003 Orgdot AS. All Rights Reserved. http://dev.swfit.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Init script for a 'pixelicious' landscape generator.
author Olaf Havnes
version Revision: 1.1 Date: 2003/04/20 13:13:18
since SWFIT1.0
Hide the original particles
up._visible = false;
down._visible = false;
level._visible = false;
Init some values
STEP = level._width + 1;
Override the following three values by placing other values after the script is included...
The number of particles we use to draw the noise
NUM_CLIPS = 45;
A size for the landscape
SCALE_FACTOR = 0.4;
In how many steps should we interpolate between two points of the noise generator?
GRID_SIZE = 10;
Init some values
clip_counter = 0;
grid_counter = 0;
step_counter = 0;
which_point = 0;
clip_x = 0;
prev_clip_y = 0;
do_init = true;
|
|