<commit_before>#poly

Amber demo with polygons and a physics simulator.

**Warning**: Barely working naugthy code hacked in minutes before a screencast! Sharing because it might have educational value

##Want to play with it locally?

  1. in your git root directory do:     git clone https://github.com/sebastianconcept/poly
  2. cd poly
  3. bower install
  4. amber serve
  5. localhost:4000
  6. add things
  7. add motion to things
  8. add gravity
  9. open Helios or legacy IDE
  10. The code is in the Poly package

Did you learn something or have questions? Join the [Amber group](https://groups.google.com/forum/#!forum/amber-lang)

Did you improve something? thank you for your pull request!<commit_msg>Extended ReadMe<commit_after>#poly

Amber Smalltalk demo with polygons and a physics simulator.

**Warning**: Barely working naugthy code hacked in minutes before a screencast! Sharing because it might have educational value

##Prerequisites

You have installed [nodejs](http://www.nodejs.org/).  With *nodejs* comes the node package manager *npm*. The execute


    npm install -g amber-cli
    
or

    sudo npm install -g amber-cli

to get the [Amber Smalltalk](http://amber-lang.net/) command line version.


##Local installation?

  1. in your git root directory do:     

            git clone https://github.com/sebastianconcept/poly

  2. 
            cd poly

  3. 
            bower install

  4. 
            amber serve

  5. Point your web browser to `localhost:4000`
  6. click on *add things*
  7. add motion to things
  8. add gravity
  9. open Helios or legacy IDE
  10. The code is in the Poly package


##Feedback

Did you learn something or have questions? Join the [Amber group](https://groups.google.com/forum/#!forum/amber-lang)

Did you improve something? thank you for your pull request!


##Notes

1. The file `bower.json` contains the dependancy on http://wellcaffeinated.net/PhysicsJS/. Thus `bower install` pulls in this JavaScript framework.

2. This project shows how a third party JavaScript library is used in Amber Smalltalk. See file `index.html` how it is loaded. 
{'fraction_non_alphanumeric': 0.076158940397351, 'fraction_numerical': 0.015137180700094607, 'mean_word_length': 3.2215568862275448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3031347', 'n_tokens_mistral': 651, 'n_tokens_neox': 599, 'n_words': 278}