Skip to content

TrivialSolution/InvisibleCocogoat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InvisibleCocogoat

Like Find the Invisible Cow, but Cocogoat.

Test it out at cocogo.at

Inspired by: https://findtheinvisiblecow.com/
Based on the "Cocogoat" joke explained here: https://tvtropes.org/pmwiki/pmwiki.php/Memes/GenshinImpact

Unlike invisible cow which plays different sound files based on cursor distance from the cow, this game plays a single file with varying volume and L-R pan depending on position relative to the cocogoat.

The image of Ganyu is covered by a blank div "cover" because:

  • click events on hidden elements don't work
  • opacity 0 images can be interacted with in unexpected ways.

In other words, an additional element z-indexed on top of the image was required. Or I could have simply made the image not even exist and only added the content when the mouse was clicked at certain coordinates, but this way is easier to debug. I'm not terribly concerned about people using debug tools to cheat, given there's an instant win button.

The whole thing is one HTML file for no particular reason. Maybe a bit easier for the network this way since the individual JS and CSS files would be small?

About

Like Find the Invisible Cow, but Cocogoat.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages