Skip to content

lighterletter/Theostasis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Theostasis

A javascript three-dimensional application.

Intro

The objective of the game is simple. A minimalistic sandbox where the user can play with an assortment of floating cubes, turn the gravity on/off and/or reset the canvas at their will.

The game randomizes the color and position of elements on the canvas creating a dynamic and interesting sense of space. The user can grab and hold, or throw the cubes that randomly generate each time the game is reset. The application can be mounted to a single touch display as a piece of interactive art, or played with with the mouse.

Instructions

Click and hold to drag the boxes
Use the black button to toggle the gravity. 
Use the white button to reset the canvas.

Set-UP

Unless you know how to set up your own server, use a program like MAMP that helps you set up a local server.

For MAMP, Installation is simple.

Drop theostasis into:  Mamp/htdocs/ 
Start your server. 
In your browser, type: Localhost:8888
Click on the 'theostasis' link, and if necessary, 'app', that should start the application in your browser. 

Detailed: Open your MAMP folder and drop Theostasis into 'htdocs'. Make sure your server is running by opening MAMP as an application and clicking start on the server. Then simply go into your browser (I recommend google Chrome) and type localhost:8888 on the address bar(port 8888 is the default MAMP port. You can verify this on the MAMP home page which should open when you open the application.) In your localhost you should see a link with the theostasis application name on it. Click that and you're done. Enjoy.

Code

All libraries are wired in index.html

There are a couple of simple ways in which you can customize your experience with a text editor, like SublimeText. I've noted it in the code. Feel free to ask questions.

Some interesting things to try:

Change gravity's effect on the cubes. 
A timer which you can turn on by simply un-commenting the denoted section. 
Different lighting and fog parameters.
Changing the values for the Sphere's wireframes can also create some interesting effects.  

Screenshots

Notes

Theostasis is an R&D project developed for NYC's MTA as a proof of concept for what the MTA kiosks could do. It is licenced under the standard MIT Licence and free to use with proper attribution.

About

A javascript three-dimensional application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published