Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernizing Project #34

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e769a8c
Fix agent.delay, which wasn't working.
balshetzer Mar 28, 2015
3b621d7
Remove border image. It doesn't seem to be used for anything.
balshetzer Mar 28, 2015
4ae298e
Make the speech bubble tip image a little smaller.
balshetzer Mar 28, 2015
e9dce28
load agents from local source rather than AWS
balshetzer Mar 28, 2015
d5a14d6
Produce build outputs, also make a minified CSS file.
balshetzer Mar 28, 2015
3181bb5
Fix handling of idle animations. Before this change idle animations w…
balshetzer Mar 28, 2015
9bd4d8c
Fix handling of idle animations around other actions like speak. They…
balshetzer Mar 28, 2015
65f3bb3
Fix delay. It was manually calling the queue empty callback even if t…
balshetzer Mar 28, 2015
3320326
Stay in idle animations until something else is done.
balshetzer Mar 28, 2015
85a2858
Pretty print agent file and then minimize to build directory.
balshetzer Mar 28, 2015
fbfba0a
Pretty print agent data
balshetzer Mar 28, 2015
98fa8dd
add a simple build script. it's not very portable though
balshetzer Mar 28, 2015
d8a290b
fix for IE
balshetzer Mar 28, 2015
b2a5320
add clippy.ask
balshetzer Mar 29, 2015
7c3830f
Make the bullets for ask choices slightly smaller
balshetzer Mar 29, 2015
bb12da4
Add agent.ask bullet src images
balshetzer Mar 29, 2015
09bc62c
Don't show "Show" or "Hide" among random animations
balshetzer Mar 29, 2015
2694a86
Check if callback is defined in ask
balshetzer Mar 29, 2015
0d2e0f1
Update build files
balshetzer Mar 29, 2015
c8e112a
Make ask safer by adding text with text()
balshetzer Mar 29, 2015
5b1c97c
Make clippy.load also take an optional path from which to load the ag…
balshetzer Mar 29, 2015
56f32f3
Oops, I broke closeBalloon with a type (self instead of this). Fixed.
Mar 30, 2015
a18ed42
The last change was wrong. This one correctly calls self and this as …
Mar 30, 2015
4ba7bbd
feature: gulp file and bower package
Jun 27, 2015
820fdaf
Wrap the choices inside a div
axypas Feb 3, 2016
12470df
Add html support in the ballon
axypas Feb 8, 2016
f91aacf
Add callbacks to speak, ask and delay methods
axypas Feb 8, 2016
d55b380
Add pause and resume methods to keep the ballon displayed
axypas Feb 8, 2016
3fe7a53
Add compiled code
axypas Feb 8, 2016
54227a2
Add the name to the path when loading an agent
axypas Feb 8, 2016
a874d5e
Fix callbacks
axypas Feb 8, 2016
b8c623c
Make animations silent by default
axypas Feb 8, 2016
1b15ad7
Fix remove global variable
axypas Feb 18, 2016
0a050b7
Minor indentation change
axypas Feb 18, 2016
4378522
Add section about the compilation of the project
axypas Mar 29, 2016
1848763
Merge pull request #1 from axypas/master
lfamorim May 15, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ All the agent actions are queued and executed by order, so you could stack them.
// play a given animation
agent.play('Searching');

// play a given animation for 2 seconds
agent.play('Searching', 2000);

// play a random animation
agent.animate();

Expand Down Expand Up @@ -67,3 +70,13 @@ Special Thanks
* The awesome [Cinnamon Software](http://www.cinnamonsoftware.com/) for developing [Double Agent](http://doubleagent.sourceforge.net/)
the program we used to unpack Clippy and his friends!
* Microsoft, for creating clippy :)

# Development

## Compilation

```
npm install
npm install -g gulp
gulp
```
3,975 changes: 3,974 additions & 1 deletion agents/Bonzi/agent.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion agents/Bonzi/sounds-mp3.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion agents/Bonzi/sounds-ogg.js

Large diffs are not rendered by default.

7,325 changes: 7,324 additions & 1 deletion agents/Clippy/agent.js

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion agents/Clippy/sounds-mp3.js

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion agents/Clippy/sounds-ogg.js

Large diffs are not rendered by default.

9,459 changes: 9,458 additions & 1 deletion agents/F1/agent.js

Large diffs are not rendered by default.

34 changes: 33 additions & 1 deletion agents/F1/sounds-mp3.js

Large diffs are not rendered by default.

34 changes: 33 additions & 1 deletion agents/F1/sounds-ogg.js

Large diffs are not rendered by default.

6,388 changes: 6,387 additions & 1 deletion agents/Genie/agent.js

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion agents/Genie/sounds-mp3.js

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion agents/Genie/sounds-ogg.js

Large diffs are not rendered by default.

8,714 changes: 8,713 additions & 1 deletion agents/Genius/agent.js

Large diffs are not rendered by default.

26 changes: 25 additions & 1 deletion agents/Genius/sounds-mp3.js

Large diffs are not rendered by default.

26 changes: 25 additions & 1 deletion agents/Genius/sounds-ogg.js

Large diffs are not rendered by default.

7,043 changes: 7,042 additions & 1 deletion agents/Links/agent.js

Large diffs are not rendered by default.

24 changes: 23 additions & 1 deletion agents/Links/sounds-mp3.js

Large diffs are not rendered by default.

24 changes: 23 additions & 1 deletion agents/Links/sounds-ogg.js

Large diffs are not rendered by default.

6,408 changes: 6,407 additions & 1 deletion agents/Merlin/agent.js

Large diffs are not rendered by default.

35 changes: 34 additions & 1 deletion agents/Merlin/sounds-mp3.js

Large diffs are not rendered by default.

35 changes: 34 additions & 1 deletion agents/Merlin/sounds-ogg.js

Large diffs are not rendered by default.

10,441 changes: 10,440 additions & 1 deletion agents/Peedy/agent.js

Large diffs are not rendered by default.

33 changes: 32 additions & 1 deletion agents/Peedy/sounds-mp3.js

Large diffs are not rendered by default.

33 changes: 32 additions & 1 deletion agents/Peedy/sounds-ogg.js

Large diffs are not rendered by default.

13,254 changes: 13,253 additions & 1 deletion agents/Rocky/agent.js

Large diffs are not rendered by default.

37 changes: 36 additions & 1 deletion agents/Rocky/sounds-mp3.js

Large diffs are not rendered by default.

37 changes: 36 additions & 1 deletion agents/Rocky/sounds-ogg.js

Large diffs are not rendered by default.

6,469 changes: 6,468 additions & 1 deletion agents/Rover/agent.js

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion agents/Rover/sounds-mp3.js

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion agents/Rover/sounds-ogg.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "clippy.js",
"version": "1.0.0",
"homepage": "https://www.smore.com/clippy-js",
"authors": [
"Lucas Fernando Amorim <lf.amorim@bipbop.com.br>"
],
"description": "Add Clippy or his friends to any website for instant nostalgia.",
"moduleType": [
"globals"
],
"keywords": [
"clippy",
"office",
"microsoft"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
1 change: 1 addition & 0 deletions build/agents/Bonzi/agent.js

Large diffs are not rendered by default.

Binary file added build/agents/Bonzi/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions build/agents/Bonzi/sounds-mp3.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/agents/Bonzi/sounds-ogg.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/agents/Clippy/agent.js

Large diffs are not rendered by default.

Binary file added build/agents/Clippy/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/agents/Clippy/sounds-mp3.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/agents/Clippy/sounds-ogg.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/agents/F1/agent.js

Large diffs are not rendered by default.

Binary file added build/agents/F1/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions build/agents/F1/sounds-mp3.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions build/agents/F1/sounds-ogg.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/agents/Genie/agent.js

Large diffs are not rendered by default.

Binary file added build/agents/Genie/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/agents/Genie/sounds-mp3.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/agents/Genie/sounds-ogg.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/agents/Genius/agent.js

Large diffs are not rendered by default.

Binary file added build/agents/Genius/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions build/agents/Genius/sounds-mp3.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions build/agents/Genius/sounds-ogg.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/agents/Links/agent.js

Large diffs are not rendered by default.

Binary file added build/agents/Links/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions build/agents/Links/sounds-mp3.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions build/agents/Links/sounds-ogg.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/agents/Merlin/agent.js

Large diffs are not rendered by default.

Binary file added build/agents/Merlin/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions build/agents/Merlin/sounds-mp3.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions build/agents/Merlin/sounds-ogg.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/agents/Peedy/agent.js

Large diffs are not rendered by default.

Binary file added build/agents/Peedy/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions build/agents/Peedy/sounds-mp3.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions build/agents/Peedy/sounds-ogg.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions build/agents/Rocky/agent.js

Large diffs are not rendered by default.

Binary file added build/agents/Rocky/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions build/agents/Rocky/sounds-mp3.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions build/agents/Rocky/sounds-ogg.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/agents/Rover/agent.js

Large diffs are not rendered by default.

Binary file added build/agents/Rover/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/agents/Rover/sounds-mp3.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/agents/Rover/sounds-ogg.js

Large diffs are not rendered by default.

63 changes: 1 addition & 62 deletions build/clippy.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading