An Easter egg for hiding on websites. Like the Konami code but more convoluted.

UltrasonicMadness 1f23d48df6 More descriptive variable name for program states 2 months ago
LICENSE.txt aa21ade3bf Initial commit 6 years ago 963c9b6722 Update and greatly simplify README 2 months ago
demo.html dcb51739ff Merge style.css into demo.html 2 months ago
demo.js da20667b48 Remove jQuery dependency, general improvements 2 months ago
dreamcode.js 1f23d48df6 More descriptive variable name for program states 2 months ago

The Dream Code

The Dream Code is a short script intended to be used as an Easter egg on websites (happy Easter, incidentally) in a similar manner to the popular Konami code. However, instead of being based on the famous code from Contra, this script is based on the set of codes from the game Erika to Satoru no Yume Bōken (Erika and Satoru's Dream Adventure, hence the name of this script) which allow the determined player to view messages left by one of its developers.

How to Use

If JavaScript is enabled in your web browser, you should be able to test The Dream Code on the included demo.html file, which also documents how the various events are triggered. They can be added to standard event handlers using the event name, such as dreamcodeGray, as the first parameter in addEventListener().


Thanks to The Cutting Room Floor for providing instructions on how to achieve this in the original game.


All included documentation and scripts of The Dream Code are available under the Apache License 2.0.

Copyright © 2018, 2024 UltrasonicMadness.