Water Pipe Flash Game AS3

Activeden Water Pipe Flash Game AS3 131165
Flash Template \ Games \ Puzzles \ Educational
Section \ Circuit \ Sections \ Current \ Straight \ Through \ Circle \ Connected

Flash Template - Water Pipe Flash Game AS3 131165 by Flashippy @ Activeden

Flash Template \ Games \ Puzzles \ Educational

Water Pipe Flash Game – AS3

Connect the pump to the drain with the longest possible circuit by dropping pipe sections onto the grid before the time is up and water starts flowing.
If you successfully complete a circuit from pump to drain you score one point for every pipe section the water flows though between the pump and the drain.

There are three types of pipe section.

1) Straight

2) Bend

3) Cross-Over

Water flows through the Straight and Bend sections as you would expect, but the Cross-Over section has four openings. It is effectively two straight pipe sections crossing each other at right angles, so water only flows through it in a straight line. A Cross-Over section can be used in place of a straight section (water does not spill out of the open sides) or it can be used to create loops (see the sample layout on the opening screen)

The “Current” section appears in the circle under the “Stack” of sections. The current section also appears at the mouse pointer when the mouse hovers over the grid.

Rotate Current Section (before dropping it on grid) : Left Click on circle or press SpaceBar

Place Current Section on open grid cell (or replace section already in circuit) : Left Click on open cell or circuit section.

Discard Current Section : Press Enter or Drop section on Trash Basket icon

When a section is placed on the grid or discarded the section at the bottom of the Stack moves down into the circle and becomes the new Current Section.

When the pump and drain are connected by a valid circuit the pump starts automatically and the water flows.

If a level times-out before the pump and drain are connected the pump starts and water flows slowly through any pipe sections that are connected to the pump. You can keep adding sections until either the circuit connects pump and drain, or until the water reaches a pipe section that is open to the grid or blocked.

When a level is successfully completed one point is awarded for each pipe section the water flows through between the pump an drain. If the water flows through a “cross-over” section in both directions it scores two points.

The game has 8 levels. Higher levels allow less time to build your circuit.

Parameters that can be set (in the code).

- You can set the game board dimensions (number of rows and columns of the game board)

- You can make as many level as you want thanks to an xml

- For each level you can set the time for the countdown (how many time you have until the water tap opens)

- For each level you can set two kind of speed that the system uses for the water flow.

- the number of “stack” that are used to preview the pipe items.

An HTML file is included to help how the SWF file can be embedded into it.
AS3 only. Opens with Flash CS4 and above only.
As far as you have AS3 knowledge the game can be modified, but some parameter can be modified easily from the code that are collected into one place.

The code is well commented and instructions are included.

In settings.xml you can set the number of levels and how much time you have on each level until the tap opens automatically. And you can set the speed of the flowing water as well.

This is my first game (and not the last one) on AD so comments are specially appreciated.

Flash Files Included: ActionScript AS, Flash FLA, HTML Files, JS Files, XML Files; Opens With: Flash CS4 (10+); Resolution: 750x500; ActionScript Version: AS3; Documentation: Well Documented; Published Size: 116.8kb.

Keywords: actionscript 3, blue, classic, countdown timer, drainpipe, educational, flash, flow, game, mind, points, pump, score, tap, tube.