diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/README.md b/README.md index e355ba8..d552346 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ A game in which a 2.5 year old will hopefully look for bugs under rocks before s - Forest floor texture from [here](https://www.texturemax.com/forest-floor-terrain-0006/) - PWA template from [here](https://github.com/nikkifurls/simplepwa) +- Bugs from [here](https://www.cleanpng.com/) +- Bug icon from [here](https://www.vecteezy.com/) ## Todo - Fix all the PWA assets, some are still default -- Add things under rocks -- Add ridiculous sounds diff --git a/assets/img/ant.png b/assets/img/ant.png new file mode 100644 index 0000000..6ea650b Binary files /dev/null and b/assets/img/ant.png differ diff --git a/assets/img/bee.png b/assets/img/bee.png new file mode 100644 index 0000000..0407ef1 Binary files /dev/null and b/assets/img/bee.png differ diff --git a/assets/img/beetle.png b/assets/img/beetle.png new file mode 100644 index 0000000..c1bc2e8 Binary files /dev/null and b/assets/img/beetle.png differ diff --git a/assets/img/butterfly.png b/assets/img/butterfly.png new file mode 100644 index 0000000..7044711 Binary files /dev/null and b/assets/img/butterfly.png differ diff --git a/assets/img/cake.png b/assets/img/cake.png new file mode 100644 index 0000000..2e76298 Binary files /dev/null and b/assets/img/cake.png differ diff --git a/assets/img/cockroach.png b/assets/img/cockroach.png new file mode 100644 index 0000000..87039c9 Binary files /dev/null and b/assets/img/cockroach.png differ diff --git a/assets/img/dinosaur.png b/assets/img/dinosaur.png new file mode 100644 index 0000000..03f6dc3 Binary files /dev/null and b/assets/img/dinosaur.png differ diff --git a/assets/img/dragonfly.png b/assets/img/dragonfly.png new file mode 100644 index 0000000..0ef71a2 Binary files /dev/null and b/assets/img/dragonfly.png differ diff --git a/assets/img/flower.png b/assets/img/flower.png new file mode 100644 index 0000000..926304e Binary files /dev/null and b/assets/img/flower.png differ diff --git a/assets/img/fly.png b/assets/img/fly.png new file mode 100644 index 0000000..f0e35b3 Binary files /dev/null and b/assets/img/fly.png differ diff --git a/assets/img/grasshopper.png b/assets/img/grasshopper.png new file mode 100644 index 0000000..4162a34 Binary files /dev/null and b/assets/img/grasshopper.png differ diff --git a/assets/img/icecream.png b/assets/img/icecream.png new file mode 100644 index 0000000..7ee49e5 Binary files /dev/null and b/assets/img/icecream.png differ diff --git a/assets/img/ladybug.png b/assets/img/ladybug.png new file mode 100644 index 0000000..3d831ed Binary files /dev/null and b/assets/img/ladybug.png differ diff --git a/assets/img/mantis.png b/assets/img/mantis.png new file mode 100644 index 0000000..5269e31 Binary files /dev/null and b/assets/img/mantis.png differ diff --git a/assets/img/mosquito.png b/assets/img/mosquito.png new file mode 100644 index 0000000..3f266db Binary files /dev/null and b/assets/img/mosquito.png differ diff --git a/assets/img/moth.png b/assets/img/moth.png new file mode 100644 index 0000000..6ac406c Binary files /dev/null and b/assets/img/moth.png differ diff --git a/assets/img/pizza.png b/assets/img/pizza.png new file mode 100644 index 0000000..8b2a39f Binary files /dev/null and b/assets/img/pizza.png differ diff --git a/assets/img/rainbow.png b/assets/img/rainbow.png new file mode 100644 index 0000000..81c67e4 Binary files /dev/null and b/assets/img/rainbow.png differ diff --git a/assets/img/rock1.png b/assets/img/rock1.png index b734b5e..c106ba5 100644 Binary files a/assets/img/rock1.png and b/assets/img/rock1.png differ diff --git a/assets/img/rock2.png b/assets/img/rock2.png new file mode 100644 index 0000000..9220df4 Binary files /dev/null and b/assets/img/rock2.png differ diff --git a/assets/img/rock3.png b/assets/img/rock3.png new file mode 100644 index 0000000..1984704 Binary files /dev/null and b/assets/img/rock3.png differ diff --git a/assets/img/rock4.png b/assets/img/rock4.png new file mode 100644 index 0000000..00a56bd Binary files /dev/null and b/assets/img/rock4.png differ diff --git a/assets/img/rock5.png b/assets/img/rock5.png new file mode 100644 index 0000000..625f55e Binary files /dev/null and b/assets/img/rock5.png differ diff --git a/assets/img/scorpion.png b/assets/img/scorpion.png new file mode 100644 index 0000000..ee728fb Binary files /dev/null and b/assets/img/scorpion.png differ diff --git a/assets/img/snowman.png b/assets/img/snowman.png new file mode 100644 index 0000000..4c6253b Binary files /dev/null and b/assets/img/snowman.png differ diff --git a/assets/img/termite.png b/assets/img/termite.png new file mode 100644 index 0000000..4f330a8 Binary files /dev/null and b/assets/img/termite.png differ diff --git a/main.js b/main.js index c91301b..308af66 100644 --- a/main.js +++ b/main.js @@ -2,7 +2,7 @@ // the CSS. const numRocks = 1000; const gridSize = 51200 / 256; -const bugDanceDuration = 5000; +const bugDanceDuration = 2000; const bugAgitateDuration = 1000; // One of these is randomly played whenever a rock is flung. @@ -23,7 +23,15 @@ const rockSoundsFiles = [ "rock4.m4a", "rock5.m4a", ]; -const rockImagesFiles = ["rock1.png"]; + +const rockImagesFiles = [ + "rock1.png", + "rock2.png", + "rock3.png", + "rock4.png", + "rock5.png", +]; + const bugClickSoundsFiles = ["clickme1.m4a"]; // A list of all the types of bugs or bug-like creatures. For each one of these,