Skip to content

Commit

Permalink
Added all the sounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDiBernardo committed Aug 28, 2024
1 parent 2e9391a commit e6e77b5
Show file tree
Hide file tree
Showing 27 changed files with 34 additions and 4 deletions.
Binary file added assets/sound/ant.m4a
Binary file not shown.
Binary file added assets/sound/bee.m4a
Binary file not shown.
Binary file added assets/sound/beetle.m4a
Binary file not shown.
Binary file added assets/sound/butterfly.m4a
Binary file not shown.
Binary file added assets/sound/cake.m4a
Binary file not shown.
Binary file added assets/sound/clickme2.m4a
Binary file not shown.
Binary file added assets/sound/clickme3.m4a
Binary file not shown.
Binary file added assets/sound/clickme4.m4a
Binary file not shown.
Binary file added assets/sound/clickme5.m4a
Binary file not shown.
Binary file added assets/sound/cockroach.m4a
Binary file not shown.
Binary file added assets/sound/dinosaur.m4a
Binary file not shown.
Binary file added assets/sound/dragonfly.m4a
Binary file not shown.
Binary file added assets/sound/flower.m4a
Binary file not shown.
Binary file added assets/sound/fly.m4a
Binary file not shown.
Binary file added assets/sound/grasshopper.m4a
Binary file not shown.
Binary file added assets/sound/icecream.m4a
Binary file not shown.
Binary file added assets/sound/ladybug.m4a
Binary file not shown.
Binary file added assets/sound/mantis.m4a
Binary file not shown.
Binary file added assets/sound/mosquito.m4a
Binary file not shown.
Binary file added assets/sound/moth.m4a
Binary file not shown.
Binary file added assets/sound/pizza.m4a
Binary file not shown.
Binary file added assets/sound/rainbow.m4a
Binary file not shown.
Binary file added assets/sound/scorpion.m4a
Binary file not shown.
Binary file added assets/sound/snowman.m4a
Binary file not shown.
Binary file added assets/sound/termite.m4a
Binary file not shown.
Binary file modified assets/sound/unicorn.m4a
Binary file not shown.
38 changes: 34 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Settings. If you change the tilesize (256px) you also have to change it in
// the CSS.
const numRocks = 1000;
const gridSize = 51200 / 256;
const numRocks = 500;
const gridSize = 25600 / 256;
const bugDanceDuration = 2000;
const bugAgitateDuration = 1000;

Expand Down Expand Up @@ -32,13 +32,43 @@ const rockImagesFiles = [
"rock5.png",
];

const bugClickSoundsFiles = ["clickme1.m4a"];
const bugClickSoundsFiles = [
"clickme1.m4a",
"clickme2.m4a",
"clickme3.m4a",
"clickme4.m4a",
"clickme5.m4a",
];

// A list of all the types of bugs or bug-like creatures. For each one of these,
// it's expected that there is an image for the bug in
// ./assets/image/{bugType}.png, and an "discovery sound" in
// ./assets/sound/{bugType}.m4a.
const bugTypes = ["unicorn"];
const bugTypes = [
"unicorn",
"ant",
"bee",
"beetle",
"butterfly",
"cake",
"cockroach",
"dinosaur",
"dragonfly",
"flower",
"fly",
"grasshopper",
"icecream",
"ladybug",
"mantis",
"mosquito",
"moth",
"pizza",
"rainbow",
"scorpion",
"snowman",
"termite",
"unicorn",
];

// A list of all the bug "prototypes" that can be included as a bug component. Each proto is like this:
// {
Expand Down

0 comments on commit e6e77b5

Please # to comment.