ScratchData LogoScratchData
Back to gotrhythm's profile

Flood it clone

GOgotrhythm•Created July 24, 2014
Flood it clone
1428
1205
29147 views
View on Scratch

Instructions

Click the flag to load the grid. **Use Shift-click to run in Turbo mode and it will be really fast!** Use the colored boxes on the left to "flood" from the top left, or use the NEW hotkeys to flood each color. You are done when the whole grid is one color. It typically takes about 21-25 turns. Any faster than that and you are doing well! NOTE: Don't click on the next box until the first one has finished flooding. You will interrupt it.

Description

10/6/2014 - Featured!!! Thanks so much for all the likes and the comments!! Great suggestions! - Added best score cloud variable - Added music score by @djgriffith from freesound.org - Added color adjustments (**only in Turbo mode**) for those who don't like bright colors :) Code to detect Turbo mode from @HyperPixel - Added hotkeys for each color - Added TIPS and confirmed that space key is a reset hotkey To do: Add levels and best score by level To do: option to turn the music off ******************************** The flooding uses a Flood Fill algorithm called stack-based recursive implementation (see Wikipedia entry for Flood Fill) It is a clone to practice my Scratch - see http://floodit.appspot.com/ Thanks to @drmcw and @MegaApuTurkUltra for helping me speed it up. It turns out there is an option in custom blocks to run without screen refresh. That made initial load nearly instant and floods much faster. UPDATE: Aug 7/14 - changed from sensing to a list of values, which improved speed further; prevented user from wasting turn on color already in upper left corner; know when player wins

Project Details

Project ID24999293
CreatedJuly 24, 2014
Last ModifiedMay 5, 2020
SharedJuly 26, 2014
Visibilityvisible
CommentsAllowed