https://github.com/qqwy/js1k_powder_game
https://github.com/qqwy/js1k_powder_game
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/qqwy/js1k_powder_game
- Owner: Qqwy
- Created: 2017-02-09T14:51:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-03T10:27:57.000Z (over 8 years ago)
- Last Synced: 2025-03-18T17:46:39.102Z (7 months ago)
- Language: JavaScript
- Size: 6.69 MB
- Stars: 21
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 'Magic Powder'
Submission to the 2017 edition of the Javascript 1 kilobyte contest.
[Try it here](http://js1k.com/2017-magic/details/2892).
Authors: Michiel de Jong (jmdejong) and Wiebe-Marten Wijnja (Qqwy).
# About this repository
This repository houses the unminified code, feature tests and other stuff we worked with during the creation of this demo.
_(Don't worry; The repository will be cleaned up a little bit during the coming next few days...)_The final version of the code that has been submitted, is [fallingsand/powdergame_cells.js](https://github.com/Qqwy/js1k_powder_game/blob/master/fallingsand/powdergame_cells.js).
To make sure that this (14.9kb-sized) file fits in 1024 bytes, we compressed it using the Closure Compiler, followed by a few manually crafted find-and-replace procedures to use ES6 fat-arrow lambdas and hexadecimal numeric constants, further compressing the size. And then, this was compressed using RegPack to squeeze out the final bits.
# Description
Use your mouse to place elements (and the scrollwheel to change the selected element).
Can you find all of the hidden reactions?Featuring:
- A full-fledged two-dimensional chemistry sandbox
- Many different kinds of Solids, Liquids, Gases, with interesting and complex reactions between them. In total:
- 11 placeable elements,
- And at least as many hidden elements, (How many? you'll have to find out yourself!)
- In total, more than fifty different reactions that could take place.Can you find:
- What happens when powder gets wet?
- The two different kinds of gas?
- How you can destroy a wall?
- The all-consuming VIRUS?
- The Magic Powder?
- Ice?Unleash your inner alchemist!
Are you able to build a perpetually moving reaction?
Are you able to find the magic powder?Spoiling more about what elements react in which ways would ruin half the fun,
so we'll refrain from doing so.
(if you _really_ need to know, look through the unminified source code).Magic Powder is inspired by other Falling Sand-games like World of Sand, Powder Game and The Powder Toy, but fits in one kilobyte and has some unique features.
Built with lots of einthausiasm and love by Michiel de Jong and Wiebe-Marten Wijnja