Skip to content

Add eSheep script

Adriano edited this page Nov 15, 2017 · 2 revisions

To add a sheep to your webpage, you need to add the eSheep script to your webpage.

Add this line:

<script src="https://adrianotiger.github.io/web-esheep/src/esheep.js"></script>

somewhere in your header, so:

<html>
  <head>
    ...
    <script src="https://adrianotiger.github.io/web-esheep/src/esheep.js"></script>
    ...
  </head>
  <body>
    ...
  </body>
</html>

The entire animation is inside a class.

Once you added this line, you can create one or more eSheeps. Go to the second step to find out how.

Clone this wiki locally