# Can I include p5.js in a game download?

**URL:** <https://discourse.processing.org/t/can-i-include-p5-js-in-a-game-download/10268>\
**Category:** p5.js\
**Created:** [April 14, 2019, 5:04pm UTC](https://discourse.processing.org/t/can-i-include-p5-js-in-a-game-download/10268 "2019-04-14T17:04:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![burningpocket](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@burningpocket](https://discourse.processing.org/u/burningpocket)\
**Post date:** [April 14, 2019, 5:04pm UTC](https://discourse.processing.org/t/can-i-include-p5-js-in-a-game-download/10268/1 "2019-04-14T17:04:44Z")

</div>

I made a game using p5.js and have it on my website. I have a code explanation section where I link to [p5js.org](http://p5js.org) adn explane that I used it. I want to provide a download of my script so that people can check it out. Can I include p5.js in the download file so that there is no setup for the user, or should I just include my script and link them to a download?

---

<div class="post-metadata">

**Author:** ![janglee](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/janglee/32/4035_2.png) [@janglee](https://discourse.processing.org/u/janglee)\
**Post date:** [April 14, 2019, 5:28pm UTC](https://discourse.processing.org/t/can-i-include-p5-js-in-a-game-download/10268/2 "2019-04-14T17:28:03Z")

</div>

If you talking about law then p5.js is under [GNU GPL 2.1](https://github.com/processing/p5.js/blob/master/license.txt) Licence. It gives freedom to share and change the source code. So including p5.js is not an issue.

---

<div class="post-metadata">

**Author:** ![Afflospark](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Afflospark](https://discourse.processing.org/u/Afflospark)\
**Post date:** [April 14, 2019, 6:34pm UTC](https://discourse.processing.org/t/can-i-include-p5-js-in-a-game-download/10268/3 "2019-04-14T18:34:46Z")

</div>

p5.js is free to use, Its an open-source software designed by TheProcessingFoundation.  
TheProcessingFoundation wants community as open and inclusive as possible so they provide it under GNU GPL 2.1 Licence.  
You can include p5.js in your source. You can even modify it as required and redistribute it.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [April 14, 2019, 6:45pm UTC](https://discourse.processing.org/t/can-i-include-p5-js-in-a-game-download/10268/4 "2019-04-14T18:45:26Z")

</div>

> [@Afflospark](#):
>
> You can even modify it as required and redistribute it.

If we distribute any modified GPL code, we’ve gotta specify those changes as well. 🧐

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 17, 2019, 6:53pm UTC](https://discourse.processing.org/t/can-i-include-p5-js-in-a-game-download/10268/5 "2019-04-17T18:53:11Z")

</div>

Right – as github’s helpful autogenerated [license summary](https://github.com/processing/p5.js/blob/master/license.txt) says:

#### Conditions

- License and copyright notice
- Disclose source
- State changes
- Same license (library)

But those “changes” are if you are modifying the p5.js library itself. If you are just making a sketch and just using p5.js unchanged, you don’t have any changes to state. Still – you could change and redistribute p5.js if you wanted to, you just have to state what you did.
