29 lines
599 B
Markdown
29 lines
599 B
Markdown
# neko
|
|
|
|
Rough Javascript implementation of the infamous Neko Cat
|
|
|
|
## Usage
|
|
|
|
```html
|
|
<script src="/neko/neko.js"></script>
|
|
<script language="javascript" type="text/javascript" defer>
|
|
$(function() {
|
|
// neko defaults to bottom right of screen
|
|
const neko = new Neko();
|
|
// here is another in the top right
|
|
const neko2 = new Neko(0, 0);
|
|
});
|
|
</script>
|
|
```
|
|
|
|
## Credits
|
|
|
|
Thanks to Evert Pot's post for some inspiration on the structure of
|
|
Neko's state machine.
|
|
https://evertpot.com/neko/
|
|
|
|
The images (which I believe are public domain at this point) were
|
|
taken from here:
|
|
https://webneko.net/?white
|
|
|